Update ts grammar

This commit is contained in:
Matt Bierner
2017-10-13 14:46:12 -07:00
parent 3a54e32291
commit 9613018ef0
5 changed files with 37 additions and 50 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/4109ddc9e27186afcf7263a448c86a59e9aa7d9e",
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/824f47ea6e98590ac2e75db5bebdf6eff71421ad",
"name": "JavaScript (with React support)",
"scopeName": "source.js.jsx",
"fileTypes": [
@@ -1707,8 +1707,7 @@
"include": "#comment"
},
{
"comment": "(default|*|name) as alias",
"match": "(?x) (?: \\b(default)\\b | (\\*) | ([_$[:alpha:]][_$[:alnum:]]*)) \\s+\n (as) \\s+ (?: (\\b default \\b | \\*) | ([_$[:alpha:]][_$[:alnum:]]*))",
"match": "(?<!\\.|\\$)(?:(\\bdefault)|(\\*)|(\\b[_$[:alpha:]][_$[:alnum:]]*))\\s+(as)\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*)",
"captures": {
"1": {
"name": "keyword.control.default.js.jsx"
@@ -1723,9 +1722,6 @@
"name": "keyword.control.as.js.jsx"
},
"5": {
"name": "invalid.illegal.js.jsx"
},
"6": {
"name": "variable.other.readwrite.alias.js.jsx"
}
}
@@ -4104,6 +4100,7 @@
}
},
"end": "(?=[/]?>)",
"contentName": "meta.tag.attributes.js.jsx",
"patterns": [
{
"include": "#comment"