mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Update ts grammar
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user