mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 04:09:28 +00:00
[ts] update grammar. Fixes #19403
This commit is contained in:
@@ -1811,7 +1811,7 @@
|
||||
},
|
||||
"type-builtin-literals": {
|
||||
"name": "support.type.builtin.js",
|
||||
"match": "(?<!\\.|\\$)\\b(this|true|false|undefined|null)\\b(?!\\$)"
|
||||
"match": "(?<!\\.|\\$)\\b(this|true|false|undefined|null|object)\\b(?!\\$)"
|
||||
},
|
||||
"type-paren-or-function-parameters": {
|
||||
"name": "meta.type.paren.cover.js",
|
||||
@@ -1994,6 +1994,10 @@
|
||||
"name": "storage.modifier.js",
|
||||
"match": "(?<!\\.|\\$)\\b(extends)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.assignment.js",
|
||||
"match": "\\=(?!>)"
|
||||
},
|
||||
{
|
||||
"include": "#type"
|
||||
},
|
||||
@@ -2250,10 +2254,6 @@
|
||||
"name": "support.class.node.js",
|
||||
"match": "(?x)(?<!\\.|\\$)\\b(Buffer|EventEmitter|Server|Pipe|Socket|REPLServer|ReadStream|WriteStream|Stream\n |Inflate|Deflate|InflateRaw|DeflateRaw|GZip|GUnzip|Unzip|Zip)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "support.module.node.js",
|
||||
"match": "(?x)(?<!\\.|\\$)\\b(assert|buffer|child_process|cluster|constants|crypto|dgram|dns|domain|events|fs|http|https|net\n |os|path|punycode|querystring|readline|repl|stream|string_decoder|timers|tls|tty|url|util|vm|zlib)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"match": "(?x)(?<!\\.|\\$)\\b(process)(?:(\\.)(?:\n (arch|argv|config|connected|env|execArgv|execPath|exitCode|mainModule|pid|platform|release|stderr|stdin|stdout|title|version|versions)\n |\n (abort|chdir|cwd|disconnect|exit|[sg]ete?[gu]id|send|[sg]etgroups|initgroups|kill|memoryUsage|nextTick|umask|uptime|hrtime)\n))?\\b(?!\\$)",
|
||||
"captures": {
|
||||
@@ -2874,7 +2874,7 @@
|
||||
"regex": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.regex.js",
|
||||
"name": "string.regexp.js",
|
||||
"begin": "(?<=[=(:,\\[?+!]|return|case|=>|&&|\\|\\||\\*\\/)\\s*(/)(?![/*])(?=(?:[^/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+/(?![/*])[gimy]*(?!\\s*[a-zA-Z0-9_$]))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
@@ -2897,7 +2897,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.regex.js",
|
||||
"name": "string.regexp.js",
|
||||
"begin": "(?<![_$[:alnum:]])/(?![/*])(?=(?:[^/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+/(?![/*])[gimy]*(?!\\s*[a-zA-Z0-9_$]))",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
@@ -3706,5 +3706,5 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/e47681d06a4db46d286c53b14ab0a5ab17e71cd8"
|
||||
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/5c16c3ce4ede362f39fca054d7b25d85b25ecc68"
|
||||
}
|
||||
Reference in New Issue
Block a user