mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Update grammars
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/444971648e9e1e41c54c62f41d1310f2816965c4",
|
||||
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/a42e5cbe14945ccc0493f62b1e2d63eddcdaa6f6",
|
||||
"name": "JavaScript (with React support)",
|
||||
"scopeName": "source.js",
|
||||
"patterns": [
|
||||
@@ -1581,7 +1581,7 @@
|
||||
"include": "#parameter-name"
|
||||
},
|
||||
{
|
||||
"include": "#type-annotation"
|
||||
"include": "#parameter-type-annotation"
|
||||
},
|
||||
{
|
||||
"include": "#variable-initializer"
|
||||
@@ -3579,6 +3579,25 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"parameter-type-annotation": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.type.annotation.js",
|
||||
"begin": "(:)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.type.annotation.js"
|
||||
}
|
||||
},
|
||||
"end": "(?=[,)])|(?==[^>])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"return-type": {
|
||||
"patterns": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user