Skip to content

Commit 86a9e31

Browse files
committed
Update JS/TS grammars
1 parent 1275b91 commit 86a9e31

5 files changed

Lines changed: 77 additions & 5 deletions

File tree

extensions/javascript/syntaxes/JavaScript.tmLanguage.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/84422d92e164c379ed817ef8e1d6c35b61de233e",
7+
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/fa4e0d3a918db0eab8e5c5be952f3bd649968456",
88
"name": "JavaScript (with React support)",
99
"scopeName": "source.js",
1010
"patterns": [
@@ -4039,6 +4039,24 @@
40394039
}
40404040
},
40414041
"patterns": [
4042+
{
4043+
"name": "keyword.operator.rest.js",
4044+
"match": "\\.\\.\\."
4045+
},
4046+
{
4047+
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\?)?\\s*(:)",
4048+
"captures": {
4049+
"1": {
4050+
"name": "entity.name.label.js"
4051+
},
4052+
"2": {
4053+
"name": "keyword.operator.optional.js"
4054+
},
4055+
"3": {
4056+
"name": "punctuation.separator.label.js"
4057+
}
4058+
}
4059+
},
40424060
{
40434061
"include": "#type"
40444062
},

extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/84422d92e164c379ed817ef8e1d6c35b61de233e",
7+
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/fa4e0d3a918db0eab8e5c5be952f3bd649968456",
88
"name": "JavaScript (with React support)",
99
"scopeName": "source.js.jsx",
1010
"patterns": [
@@ -4039,6 +4039,24 @@
40394039
}
40404040
},
40414041
"patterns": [
4042+
{
4043+
"name": "keyword.operator.rest.js.jsx",
4044+
"match": "\\.\\.\\."
4045+
},
4046+
{
4047+
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\?)?\\s*(:)",
4048+
"captures": {
4049+
"1": {
4050+
"name": "entity.name.label.js.jsx"
4051+
},
4052+
"2": {
4053+
"name": "keyword.operator.optional.js.jsx"
4054+
},
4055+
"3": {
4056+
"name": "punctuation.separator.label.js.jsx"
4057+
}
4058+
}
4059+
},
40424060
{
40434061
"include": "#type"
40444062
},

extensions/typescript-basics/cgmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"git": {
77
"name": "TypeScript-TmLanguage",
88
"repositoryUrl": "https://github.com/Microsoft/TypeScript-TmLanguage",
9-
"commitHash": "84422d92e164c379ed817ef8e1d6c35b61de233e"
9+
"commitHash": "fa4e0d3a918db0eab8e5c5be952f3bd649968456"
1010
}
1111
},
1212
"license": "MIT",

extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/84422d92e164c379ed817ef8e1d6c35b61de233e",
7+
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/fa4e0d3a918db0eab8e5c5be952f3bd649968456",
88
"name": "TypeScript",
99
"scopeName": "source.ts",
1010
"patterns": [
@@ -4088,6 +4088,24 @@
40884088
}
40894089
},
40904090
"patterns": [
4091+
{
4092+
"name": "keyword.operator.rest.ts",
4093+
"match": "\\.\\.\\."
4094+
},
4095+
{
4096+
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\?)?\\s*(:)",
4097+
"captures": {
4098+
"1": {
4099+
"name": "entity.name.label.ts"
4100+
},
4101+
"2": {
4102+
"name": "keyword.operator.optional.ts"
4103+
},
4104+
"3": {
4105+
"name": "punctuation.separator.label.ts"
4106+
}
4107+
}
4108+
},
40914109
{
40924110
"include": "#type"
40934111
},

extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],
7-
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/84422d92e164c379ed817ef8e1d6c35b61de233e",
7+
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/fa4e0d3a918db0eab8e5c5be952f3bd649968456",
88
"name": "TypeScriptReact",
99
"scopeName": "source.tsx",
1010
"patterns": [
@@ -4039,6 +4039,24 @@
40394039
}
40404040
},
40414041
"patterns": [
4042+
{
4043+
"name": "keyword.operator.rest.tsx",
4044+
"match": "\\.\\.\\."
4045+
},
4046+
{
4047+
"match": "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\?)?\\s*(:)",
4048+
"captures": {
4049+
"1": {
4050+
"name": "entity.name.label.tsx"
4051+
},
4052+
"2": {
4053+
"name": "keyword.operator.optional.tsx"
4054+
},
4055+
"3": {
4056+
"name": "punctuation.separator.label.tsx"
4057+
}
4058+
}
4059+
},
40424060
{
40434061
"include": "#type"
40444062
},

0 commit comments

Comments
 (0)