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"
},