Update JS/TS grammars

This commit is contained in:
Matt Bierner 2020-06-10 12:11:28 -07:00
parent 1275b918be
commit 86a9e31ccc
5 changed files with 77 additions and 5 deletions

View file

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/84422d92e164c379ed817ef8e1d6c35b61de233e",
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/fa4e0d3a918db0eab8e5c5be952f3bd649968456",
"name": "JavaScript (with React support)",
"scopeName": "source.js",
"patterns": [
@ -4039,6 +4039,24 @@
}
},
"patterns": [
{
"name": "keyword.operator.rest.js",
"match": "\\.\\.\\."
},
{
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\?)?\\s*(:)",
"captures": {
"1": {
"name": "entity.name.label.js"
},
"2": {
"name": "keyword.operator.optional.js"
},
"3": {
"name": "punctuation.separator.label.js"
}
}
},
{
"include": "#type"
},

View file

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/84422d92e164c379ed817ef8e1d6c35b61de233e",
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/fa4e0d3a918db0eab8e5c5be952f3bd649968456",
"name": "JavaScript (with React support)",
"scopeName": "source.js.jsx",
"patterns": [
@ -4039,6 +4039,24 @@
}
},
"patterns": [
{
"name": "keyword.operator.rest.js.jsx",
"match": "\\.\\.\\."
},
{
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\?)?\\s*(:)",
"captures": {
"1": {
"name": "entity.name.label.js.jsx"
},
"2": {
"name": "keyword.operator.optional.js.jsx"
},
"3": {
"name": "punctuation.separator.label.js.jsx"
}
}
},
{
"include": "#type"
},

View file

@ -6,7 +6,7 @@
"git": {
"name": "TypeScript-TmLanguage",
"repositoryUrl": "https://github.com/Microsoft/TypeScript-TmLanguage",
"commitHash": "84422d92e164c379ed817ef8e1d6c35b61de233e"
"commitHash": "fa4e0d3a918db0eab8e5c5be952f3bd649968456"
}
},
"license": "MIT",

View file

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/84422d92e164c379ed817ef8e1d6c35b61de233e",
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/fa4e0d3a918db0eab8e5c5be952f3bd649968456",
"name": "TypeScript",
"scopeName": "source.ts",
"patterns": [
@ -4088,6 +4088,24 @@
}
},
"patterns": [
{
"name": "keyword.operator.rest.ts",
"match": "\\.\\.\\."
},
{
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\?)?\\s*(:)",
"captures": {
"1": {
"name": "entity.name.label.ts"
},
"2": {
"name": "keyword.operator.optional.ts"
},
"3": {
"name": "punctuation.separator.label.ts"
}
}
},
{
"include": "#type"
},

View file

@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/84422d92e164c379ed817ef8e1d6c35b61de233e",
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/fa4e0d3a918db0eab8e5c5be952f3bd649968456",
"name": "TypeScriptReact",
"scopeName": "source.tsx",
"patterns": [
@ -4039,6 +4039,24 @@
}
},
"patterns": [
{
"name": "keyword.operator.rest.tsx",
"match": "\\.\\.\\."
},
{
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\?)?\\s*(:)",
"captures": {
"1": {
"name": "entity.name.label.tsx"
},
"2": {
"name": "keyword.operator.optional.tsx"
},
"3": {
"name": "punctuation.separator.label.tsx"
}
}
},
{
"include": "#type"
},