Commit graph

16 commits

Author SHA1 Message Date
Matt Bierner c1498b35dd
Fix includes check on jsdoc patching (#169446) 2022-12-16 23:36:22 +01:00
Matt Bierner 1da08937d8
Remove text mate highlighting of more JS/TS built-ins
Identifying specific symbols is a better fit for semantic highlighting instead of textmate as semantic highlighting prevents false positives

This keeps around a few of the most built-ins for now but we may revisit these in the future
2022-03-01 16:17:16 -08:00
Matt Bierner b391749606
Move update grammar script to mjs 2022-03-01 15:56:27 -08:00
Matt Bierner 76a647c33c
Fix tested pattern 2022-02-28 14:49:29 -08:00
Matt Bierner 062b82c1bc
Use .test instead of .match 2022-02-28 14:27:47 -08:00
João Moreno c3b556727e
fix update-grammars script 2021-02-02 12:30:08 +01:00
João Moreno 3b03189afa
Restore extensions in core (#114921)
* bring back grammar extensions

* fix hygiene

* Revert "pull themes from the marketplace"

This reverts commit 0738f76dac.
2021-01-25 17:07:56 +01:00
João Moreno bc7d3c9ea6
remove grammar extensions 2021-01-15 12:35:17 +01:00
ChaseKnowlden e8760a5d6c Fix capitalization of GitHub org 2020-09-17 11:43:03 +02:00
Matt Bierner a877e0528e Remove special grammar rules for console in js/ts
Fixes #101802

These can be better handled by semantic highlighting
2020-07-07 13:24:23 -07:00
Matt Bierner 75c625d421 Patch js/ts grammars to remove special scopes for node
Fixes #94284

Now the we have semantic highlighting, we should use that to identify if a variable is really from node or not
2020-04-03 14:11:47 -07:00
ZHAO Jinxiang 352d641042 Add .cjs to known JavaScript file extensions (#85460) 2019-11-25 19:46:09 -08:00
Matt Bierner 0ae3ecbf15 Fix multiline jsdoc type highlightingFixes #27777 2019-04-11 10:05:36 -07:00
Matt Bierner 5a96f231c1 Enable ts-check 2019-04-08 17:13:10 -07:00
Matt Bierner 5ed55a8606 Don't treat dom properties as special for syntax highlighting
See https://github.com/Microsoft/TypeScript-TmLanguage/issues/691

Assuming that properties named `label` or `name` are dom properties is incorrect and causes a lot of false positives. This results in weirdly inconsistent colorization
2019-01-02 17:33:50 -08:00
Matt Bierner e23c58b3ab Split out ts syntax and grammar to ts basics 2018-02-23 13:29:52 -08:00