提交 25377ee7 编写于 作者: M Matt Bierner

Update js/ts grammar

上级 fc77b27e
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/863fe48831356e0d459cc71c1e7d72c41b7e1b42", "version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/dd81cfb5b08015f35b5617751d27c5584198393b",
"name": "JavaScript (with React support)", "name": "JavaScript (with React support)",
"scopeName": "source.js", "scopeName": "source.js",
"patterns": [ "patterns": [
...@@ -15,16 +15,19 @@ ...@@ -15,16 +15,19 @@
"include": "#statements" "include": "#statements"
}, },
{ {
"name": "comment.line.shebang.ts", "include": "#shebang"
}
],
"repository": {
"shebang": {
"name": "comment.line.shebang.js",
"match": "\\A(#!).*(?=$)", "match": "\\A(#!).*(?=$)",
"captures": { "captures": {
"1": { "1": {
"name": "punctuation.definition.comment.ts" "name": "punctuation.definition.comment.js"
}
} }
} }
], },
"repository": {
"statements": { "statements": {
"patterns": [ "patterns": [
{ {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/863fe48831356e0d459cc71c1e7d72c41b7e1b42", "version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/dd81cfb5b08015f35b5617751d27c5584198393b",
"name": "JavaScript (with React support)", "name": "JavaScript (with React support)",
"scopeName": "source.js.jsx", "scopeName": "source.js.jsx",
"patterns": [ "patterns": [
...@@ -15,16 +15,19 @@ ...@@ -15,16 +15,19 @@
"include": "#statements" "include": "#statements"
}, },
{ {
"name": "comment.line.shebang.ts", "include": "#shebang"
}
],
"repository": {
"shebang": {
"name": "comment.line.shebang.js.jsx",
"match": "\\A(#!).*(?=$)", "match": "\\A(#!).*(?=$)",
"captures": { "captures": {
"1": { "1": {
"name": "punctuation.definition.comment.ts" "name": "punctuation.definition.comment.js.jsx"
}
} }
} }
], },
"repository": {
"statements": { "statements": {
"patterns": [ "patterns": [
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"git": { "git": {
"name": "TypeScript-TmLanguage", "name": "TypeScript-TmLanguage",
"repositoryUrl": "https://github.com/Microsoft/TypeScript-TmLanguage", "repositoryUrl": "https://github.com/Microsoft/TypeScript-TmLanguage",
"commitHash": "863fe48831356e0d459cc71c1e7d72c41b7e1b42" "commitHash": "dd81cfb5b08015f35b5617751d27c5584198393b"
} }
}, },
"license": "MIT", "license": "MIT",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/863fe48831356e0d459cc71c1e7d72c41b7e1b42", "version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/dd81cfb5b08015f35b5617751d27c5584198393b",
"name": "TypeScript", "name": "TypeScript",
"scopeName": "source.ts", "scopeName": "source.ts",
"patterns": [ "patterns": [
...@@ -15,6 +15,11 @@ ...@@ -15,6 +15,11 @@
"include": "#statements" "include": "#statements"
}, },
{ {
"include": "#shebang"
}
],
"repository": {
"shebang": {
"name": "comment.line.shebang.ts", "name": "comment.line.shebang.ts",
"match": "\\A(#!).*(?=$)", "match": "\\A(#!).*(?=$)",
"captures": { "captures": {
...@@ -22,9 +27,7 @@ ...@@ -22,9 +27,7 @@
"name": "punctuation.definition.comment.ts" "name": "punctuation.definition.comment.ts"
} }
} }
} },
],
"repository": {
"statements": { "statements": {
"patterns": [ "patterns": [
{ {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.", "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." "Once accepted there, we are happy to receive an update request."
], ],
"version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/863fe48831356e0d459cc71c1e7d72c41b7e1b42", "version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/dd81cfb5b08015f35b5617751d27c5584198393b",
"name": "TypeScriptReact", "name": "TypeScriptReact",
"scopeName": "source.tsx", "scopeName": "source.tsx",
"patterns": [ "patterns": [
...@@ -15,16 +15,19 @@ ...@@ -15,16 +15,19 @@
"include": "#statements" "include": "#statements"
}, },
{ {
"name": "comment.line.shebang.ts", "include": "#shebang"
}
],
"repository": {
"shebang": {
"name": "comment.line.shebang.tsx",
"match": "\\A(#!).*(?=$)", "match": "\\A(#!).*(?=$)",
"captures": { "captures": {
"1": { "1": {
"name": "punctuation.definition.comment.ts" "name": "punctuation.definition.comment.tsx"
}
} }
} }
], },
"repository": {
"statements": { "statements": {
"patterns": [ "patterns": [
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册