tm-grammars 1.14.0 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +27 -0
- package/README.md +6 -0
- package/grammars/es-tag-css.json +118 -0
- package/grammars/es-tag-glsl.json +118 -0
- package/grammars/es-tag-html.json +140 -0
- package/grammars/es-tag-sql.json +114 -0
- package/grammars/es-tag-xml.json +78 -0
- package/grammars/ts-tags.json +10 -0
- package/index.js +127 -0
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -2500,6 +2500,33 @@ SPDX: Apache-2.0
|
|
|
2500
2500
|
See the License for the specific language governing permissions and
|
|
2501
2501
|
limitations under the License.
|
|
2502
2502
|
|
|
2503
|
+
=========================================================================================================
|
|
2504
|
+
Files: es-tag-css.json, es-tag-glsl.json, es-tag-html.json, es-tag-sql.json, es-tag-xml.json
|
|
2505
|
+
License: https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE
|
|
2506
|
+
SPDX: MIT
|
|
2507
|
+
---------------------------------------------------------------------------------------------------------
|
|
2508
|
+
MIT License
|
|
2509
|
+
|
|
2510
|
+
Copyright (c) 2018 Tobimori (Victor Novikov)
|
|
2511
|
+
|
|
2512
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2513
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
2514
|
+
in the Software without restriction, including without limitation the rights
|
|
2515
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2516
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
2517
|
+
furnished to do so, subject to the following conditions:
|
|
2518
|
+
|
|
2519
|
+
The above copyright notice and this permission notice shall be included in all
|
|
2520
|
+
copies or substantial portions of the Software.
|
|
2521
|
+
|
|
2522
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2523
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2524
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2525
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2526
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2527
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2528
|
+
SOFTWARE.
|
|
2529
|
+
|
|
2503
2530
|
=========================================================================================================
|
|
2504
2531
|
Files: fennel.json
|
|
2505
2532
|
License: https://raw.githubusercontent.com/kongeor/vsc-fennel/master/LICENSE
|
package/README.md
CHANGED
|
@@ -203,6 +203,7 @@ import { grammars } from 'tm-grammars'
|
|
|
203
203
|
| `terraform` | `tf` `tfvars` | [hashicorp/syntax](https://github.com/hashicorp/syntax/blob/c693badea4d460d1c05b8d2ab0c88bad143da3f1/syntaxes/terraform.tmGrammar.json) | [MPL-2.0](https://raw.githubusercontent.com/hashicorp/syntax/main/LICENSE) | | 12.58 kB |
|
|
204
204
|
| `tex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/b8e3432a0b7dd11ffd0c832fad6a6c51e809013c/extensions/latex/syntaxes/TeX.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `r` | 8.77 kB |
|
|
205
205
|
| `toml` | | [textmate/toml.tmbundle](https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage) | | | 6.26 kB |
|
|
206
|
+
| `ts-tags` | `lit` | - | | `typescript` `es-tag-css` `es-tag-glsl` `es-tag-html` `es-tag-sql` `es-tag-xml` | 121.00 B |
|
|
206
207
|
| `tsv` | | [mechatroner/vscode_rainbow_csv](https://github.com/mechatroner/vscode_rainbow_csv/blob/00d4c947f1bbe6a4a73599bd97fb31bdfbe262f3/syntaxes/tsv.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/mechatroner/vscode_rainbow_csv/master/LICENSE) | | 633.00 B |
|
|
207
208
|
| `tsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 171.16 kB |
|
|
208
209
|
| `turtle` | | [stardog-union/stardog-vsc](https://github.com/stardog-union/stardog-vsc/blob/3f1364b08bdbf4b4d77f123682db7d2b708b2f6e/stardog-rdf-grammars/syntaxes/turtle.tmLanguage.json) | | | 3.50 kB |
|
|
@@ -243,6 +244,11 @@ Injections are grammars that are embedded in other grammars. They are used to ag
|
|
|
243
244
|
| `angular-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/28739e438742bee69faceda5fd15445682451397/syntaxes/template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-expression` | 471.00 B |
|
|
244
245
|
| `angular-template-blocks` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/b424eaa01e3cb5600bfe65ce7232a72c7d452d19/syntaxes/template-blocks.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-expression` `angular-template` | 1.18 kB |
|
|
245
246
|
| `cpp-macro` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `regexp` `glsl` `sql` | 230.05 kB |
|
|
247
|
+
| `es-tag-css` | | [0x00000001A/es6-string-html](https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-css.json) | [MIT](https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE) | `typescript` `css` `javascript` | 1.67 kB |
|
|
248
|
+
| `es-tag-glsl` | | [0x00000001A/es6-string-html](https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-glsl.json) | [MIT](https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE) | `typescript` `glsl` `javascript` | 1.55 kB |
|
|
249
|
+
| `es-tag-html` | | [0x00000001A/es6-string-html](https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-html.json) | [MIT](https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE) | `typescript` `html` `javascript` | 1.86 kB |
|
|
250
|
+
| `es-tag-sql` | | [0x00000001A/es6-string-html](https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-sql.json) | [MIT](https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE) | `typescript` `sql` | 1.47 kB |
|
|
251
|
+
| `es-tag-xml` | | [0x00000001A/es6-string-html](https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-xml.json) | [MIT](https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE) | `xml` | 1.07 kB |
|
|
246
252
|
| `jinja-html` | | [samuelcolvin/jinjahtml-vscode](https://github.com/samuelcolvin/jinjahtml-vscode/blob/64ad369cd167bba2e614944db6d925b7dc6483b4/syntaxes/jinja-html.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/samuelcolvin/jinjahtml-vscode/main/LICENSE) | `html` | 470.00 B |
|
|
247
253
|
| `markdown-vue` | | [vuejs/language-tools](https://github.com/vuejs/language-tools/blob/e23ff4d13001ffe78d893bb707d839ead29e0e40/extensions/vscode/syntaxes/markdown-vue.json) | [MIT](https://raw.githubusercontent.com/vuejs/language-tools/master/LICENSE) | | 684.00 B |
|
|
248
254
|
| `vue-directives` | | [vuejs/language-tools](https://github.com/vuejs/language-tools/blob/d5ab9edcf4a18d9c25c143a37cc3ec95229fc6b1/extensions/vscode/syntaxes/vue-directives.json) | [MIT](https://raw.githubusercontent.com/vuejs/language-tools/master/LICENSE) | | 366.00 B |
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileTypes": [
|
|
3
|
+
"js",
|
|
4
|
+
"jsx",
|
|
5
|
+
"ts",
|
|
6
|
+
"tsx",
|
|
7
|
+
"html",
|
|
8
|
+
"vue",
|
|
9
|
+
"svelte",
|
|
10
|
+
"php",
|
|
11
|
+
"res"
|
|
12
|
+
],
|
|
13
|
+
"injectTo": [
|
|
14
|
+
"source.ts",
|
|
15
|
+
"source.js"
|
|
16
|
+
],
|
|
17
|
+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string, L:source.vue -comment -string, L:source.svelte -comment -string, L:source.php -comment -string, L:source.rescript -comment -string",
|
|
18
|
+
"injections": {
|
|
19
|
+
"L:source": {
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"match": "<",
|
|
23
|
+
"name": "invalid.illegal.bad-angle-bracket.html"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "es-tag-css",
|
|
29
|
+
"patterns": [
|
|
30
|
+
{
|
|
31
|
+
"begin": "(?i)(\\s?\\/\\*\\s?(css|inline-css)\\s?\\*\\/\\s?)(`)",
|
|
32
|
+
"beginCaptures": {
|
|
33
|
+
"1": {
|
|
34
|
+
"name": "comment.block"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"end": "(`)",
|
|
38
|
+
"patterns": [
|
|
39
|
+
{
|
|
40
|
+
"include": "source.ts#template-substitution-element"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"include": "source.css"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"include": "inline.es6-htmlx#template"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"begin": "(?i)(\\s*(css|inline-css))(`)",
|
|
52
|
+
"beginCaptures": {
|
|
53
|
+
"1": {
|
|
54
|
+
"name": "comment.block"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"end": "(`)",
|
|
58
|
+
"patterns": [
|
|
59
|
+
{
|
|
60
|
+
"include": "source.ts#template-substitution-element"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"include": "source.css"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"include": "inline.es6-htmlx#template"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"include": "string.quoted.other.template.js"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(css|inline-css)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
|
75
|
+
"beginCaptures": {
|
|
76
|
+
"1": {
|
|
77
|
+
"name": "comment.line"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"end": "(`).*",
|
|
81
|
+
"patterns": [
|
|
82
|
+
{
|
|
83
|
+
"begin": "(\\G)",
|
|
84
|
+
"end": "(`)"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"include": "source.ts#template-substitution-element"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"include": "source.css"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"begin": "(\\${)",
|
|
96
|
+
"beginCaptures": {
|
|
97
|
+
"1": {
|
|
98
|
+
"name": "entity.name.tag"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"end": "(})",
|
|
102
|
+
"endCaptures": {
|
|
103
|
+
"1": {
|
|
104
|
+
"name": "entity.name.tag"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"patterns": [
|
|
108
|
+
{
|
|
109
|
+
"include": "source.ts#template-substitution-element"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"include": "source.js"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"scopeName": "inline.es6-css"
|
|
118
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileTypes": [
|
|
3
|
+
"js",
|
|
4
|
+
"jsx",
|
|
5
|
+
"ts",
|
|
6
|
+
"tsx",
|
|
7
|
+
"html",
|
|
8
|
+
"vue",
|
|
9
|
+
"svelte",
|
|
10
|
+
"php",
|
|
11
|
+
"res"
|
|
12
|
+
],
|
|
13
|
+
"injectTo": [
|
|
14
|
+
"source.ts",
|
|
15
|
+
"source.js"
|
|
16
|
+
],
|
|
17
|
+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
|
|
18
|
+
"injections": {
|
|
19
|
+
"L:source": {
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"match": "<",
|
|
23
|
+
"name": "invalid.illegal.bad-angle-bracket.html"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "es-tag-glsl",
|
|
29
|
+
"patterns": [
|
|
30
|
+
{
|
|
31
|
+
"begin": "(?i)(\\s?\\/\\*\\s?(glsl|inline-glsl)\\s?\\*\\/\\s?)(`)",
|
|
32
|
+
"beginCaptures": {
|
|
33
|
+
"1": {
|
|
34
|
+
"name": "comment.block"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"end": "(`)",
|
|
38
|
+
"patterns": [
|
|
39
|
+
{
|
|
40
|
+
"include": "source.ts#template-substitution-element"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"include": "source.glsl"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"include": "inline.es6-htmlx#template"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"begin": "(?i)(\\s*(glsl|inline-glsl))(`)",
|
|
52
|
+
"beginCaptures": {
|
|
53
|
+
"1": {
|
|
54
|
+
"name": "comment.block"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"end": "(`)",
|
|
58
|
+
"patterns": [
|
|
59
|
+
{
|
|
60
|
+
"include": "source.ts#template-substitution-element"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"include": "source.glsl"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"include": "inline.es6-htmlx#template"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"include": "string.quoted.other.template.js"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(glsl|inline-glsl)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
|
75
|
+
"beginCaptures": {
|
|
76
|
+
"1": {
|
|
77
|
+
"name": "comment.line"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"end": "(`).*",
|
|
81
|
+
"patterns": [
|
|
82
|
+
{
|
|
83
|
+
"begin": "(\\G)",
|
|
84
|
+
"end": "(`)"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"include": "source.ts#template-substitution-element"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"include": "source.glsl"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"begin": "(\\${)",
|
|
96
|
+
"beginCaptures": {
|
|
97
|
+
"1": {
|
|
98
|
+
"name": "entity.name.tag"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"end": "(})",
|
|
102
|
+
"endCaptures": {
|
|
103
|
+
"1": {
|
|
104
|
+
"name": "entity.name.tag"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"patterns": [
|
|
108
|
+
{
|
|
109
|
+
"include": "source.ts#template-substitution-element"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"include": "source.js"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"scopeName": "inline.es6-glsl"
|
|
118
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileTypes": [
|
|
3
|
+
"js",
|
|
4
|
+
"jsx",
|
|
5
|
+
"ts",
|
|
6
|
+
"tsx",
|
|
7
|
+
"html",
|
|
8
|
+
"vue",
|
|
9
|
+
"svelte",
|
|
10
|
+
"php",
|
|
11
|
+
"res"
|
|
12
|
+
],
|
|
13
|
+
"injectTo": [
|
|
14
|
+
"source.ts",
|
|
15
|
+
"source.js"
|
|
16
|
+
],
|
|
17
|
+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
|
|
18
|
+
"injections": {
|
|
19
|
+
"L:source": {
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"match": "<",
|
|
23
|
+
"name": "invalid.illegal.bad-angle-bracket.html"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "es-tag-html",
|
|
29
|
+
"patterns": [
|
|
30
|
+
{
|
|
31
|
+
"begin": "(?i)(\\s?\\/\\*\\s?(html|template|inline-html|inline-template)\\s?\\*\\/\\s?)(`)",
|
|
32
|
+
"beginCaptures": {
|
|
33
|
+
"1": {
|
|
34
|
+
"name": "comment.block"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"end": "(`)",
|
|
38
|
+
"patterns": [
|
|
39
|
+
{
|
|
40
|
+
"include": "source.ts#template-substitution-element"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"include": "text.html.basic"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"include": "inline.es6-htmlx#template"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"begin": "(?i)(\\s*(html|template|inline-html|inline-template))(`)",
|
|
52
|
+
"beginCaptures": {
|
|
53
|
+
"1": {
|
|
54
|
+
"name": "comment.block"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"end": "(`)",
|
|
58
|
+
"patterns": [
|
|
59
|
+
{
|
|
60
|
+
"include": "source.ts#template-substitution-element"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"include": "text.html.basic"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"include": "inline.es6-htmlx#template"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"include": "string.quoted.other.template.js"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(html|template|inline-html|inline-template)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
|
75
|
+
"beginCaptures": {
|
|
76
|
+
"1": {
|
|
77
|
+
"name": "comment.line"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"end": "(`).*",
|
|
81
|
+
"patterns": [
|
|
82
|
+
{
|
|
83
|
+
"begin": "(\\G)",
|
|
84
|
+
"end": "(`)"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"include": "source.ts#template-substitution-element"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"include": "text.html.basic"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"begin": "(\\${)",
|
|
96
|
+
"beginCaptures": {
|
|
97
|
+
"1": {
|
|
98
|
+
"name": "entity.name.tag"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"end": "(})",
|
|
102
|
+
"endCaptures": {
|
|
103
|
+
"1": {
|
|
104
|
+
"name": "entity.name.tag"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"patterns": [
|
|
108
|
+
{
|
|
109
|
+
"include": "source.ts#template-substitution-element"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"include": "source.js"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"begin": "(\\$\\(`)",
|
|
118
|
+
"beginCaptures": {
|
|
119
|
+
"1": {
|
|
120
|
+
"name": "entity.name.tag"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"end": "(`\\))",
|
|
124
|
+
"endCaptures": {
|
|
125
|
+
"1": {
|
|
126
|
+
"name": "entity.name.tag"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"patterns": [
|
|
130
|
+
{
|
|
131
|
+
"include": "source.ts#template-substitution-element"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"include": "source.js"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"scopeName": "inline.es6-html"
|
|
140
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileTypes": [
|
|
3
|
+
"js",
|
|
4
|
+
"jsx",
|
|
5
|
+
"ts",
|
|
6
|
+
"tsx",
|
|
7
|
+
"html",
|
|
8
|
+
"vue",
|
|
9
|
+
"svelte",
|
|
10
|
+
"php",
|
|
11
|
+
"res"
|
|
12
|
+
],
|
|
13
|
+
"injectTo": [
|
|
14
|
+
"source.ts",
|
|
15
|
+
"source.js"
|
|
16
|
+
],
|
|
17
|
+
"injectionSelector": "L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
|
|
18
|
+
"injections": {
|
|
19
|
+
"L:source": {
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"match": "<",
|
|
23
|
+
"name": "invalid.illegal.bad-angle-bracket.html"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "es-tag-sql",
|
|
29
|
+
"patterns": [
|
|
30
|
+
{
|
|
31
|
+
"begin": "(?i)\\b(\\w+\\.sql)\\s*(`)",
|
|
32
|
+
"beginCaptures": {
|
|
33
|
+
"1": {
|
|
34
|
+
"name": "variable.parameter"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"end": "(`)",
|
|
38
|
+
"patterns": [
|
|
39
|
+
{
|
|
40
|
+
"include": "source.ts#template-substitution-element"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"include": "source.ts#string-character-escape"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"include": "source.sql"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"include": "source.plpgsql.postgres"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"match": "."
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"begin": "(?i)(\\s?\\/?\\*?\\s?(sql|inline-sql)\\s?\\*?\\/?\\s?)(`)",
|
|
58
|
+
"beginCaptures": {
|
|
59
|
+
"1": {
|
|
60
|
+
"name": "comment.block"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"end": "(`)",
|
|
64
|
+
"patterns": [
|
|
65
|
+
{
|
|
66
|
+
"include": "source.ts#template-substitution-element"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"include": "source.ts#string-character-escape"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"include": "source.sql"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"include": "source.plpgsql.postgres"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"match": "."
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(sql|inline-sql)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
|
84
|
+
"beginCaptures": {
|
|
85
|
+
"1": {
|
|
86
|
+
"name": "comment.line"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"end": "(`)",
|
|
90
|
+
"patterns": [
|
|
91
|
+
{
|
|
92
|
+
"begin": "(\\G)",
|
|
93
|
+
"end": "(`)"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"include": "source.ts#template-substitution-element"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"include": "source.ts#string-character-escape"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"include": "source.sql"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"include": "source.plpgsql.postgres"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"match": "."
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"scopeName": "inline.es6-sql"
|
|
114
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileTypes": [
|
|
3
|
+
"js",
|
|
4
|
+
"jsx",
|
|
5
|
+
"ts",
|
|
6
|
+
"tsx",
|
|
7
|
+
"html",
|
|
8
|
+
"vue",
|
|
9
|
+
"svelte",
|
|
10
|
+
"php",
|
|
11
|
+
"res"
|
|
12
|
+
],
|
|
13
|
+
"injectTo": [
|
|
14
|
+
"source.ts",
|
|
15
|
+
"source.js"
|
|
16
|
+
],
|
|
17
|
+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
|
|
18
|
+
"injections": {
|
|
19
|
+
"L:source": {
|
|
20
|
+
"patterns": [
|
|
21
|
+
{
|
|
22
|
+
"match": "<",
|
|
23
|
+
"name": "invalid.illegal.bad-angle-bracket.html"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "es-tag-xml",
|
|
29
|
+
"patterns": [
|
|
30
|
+
{
|
|
31
|
+
"begin": "(?i)(\\s?\\/\\*\\s?(xml|svg|inline-svg|inline-xml)\\s?\\*\\/\\s?)(`)",
|
|
32
|
+
"beginCaptures": {
|
|
33
|
+
"1": {
|
|
34
|
+
"name": "comment.block"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"end": "(`)",
|
|
38
|
+
"patterns": [
|
|
39
|
+
{
|
|
40
|
+
"include": "text.xml"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"begin": "(?i)(\\s*(xml|inline-xml))(`)",
|
|
46
|
+
"beginCaptures": {
|
|
47
|
+
"1": {
|
|
48
|
+
"name": "comment.block"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"end": "(`)",
|
|
52
|
+
"patterns": [
|
|
53
|
+
{
|
|
54
|
+
"include": "text.xml"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"begin": "(?i)(?<=\\s|\\,|\\=|\\:|\\(|\\$\\()\\s{0,}(((\\/\\*)|(\\/\\/))\\s?(xml|svg|inline-svg|inline-xml)[ ]{0,1000}\\*?\\/?)[ ]{0,1000}$",
|
|
60
|
+
"beginCaptures": {
|
|
61
|
+
"1": {
|
|
62
|
+
"name": "comment.line"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"end": "(`).*",
|
|
66
|
+
"patterns": [
|
|
67
|
+
{
|
|
68
|
+
"begin": "(\\G)",
|
|
69
|
+
"end": "(`)"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"include": "text.xml"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"scopeName": "inline.es6-xml"
|
|
78
|
+
}
|
package/index.js
CHANGED
|
@@ -2933,6 +2933,26 @@ export const grammars = [
|
|
|
2933
2933
|
sha: 'e82b64c1e86396220786846201e9aa3f0a2d9ca2',
|
|
2934
2934
|
source: 'https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage',
|
|
2935
2935
|
},
|
|
2936
|
+
{
|
|
2937
|
+
aliases: [
|
|
2938
|
+
'lit',
|
|
2939
|
+
],
|
|
2940
|
+
byteSize: 121,
|
|
2941
|
+
categories: [
|
|
2942
|
+
'web',
|
|
2943
|
+
],
|
|
2944
|
+
displayName: 'TypeScript with Tags',
|
|
2945
|
+
embedded: [
|
|
2946
|
+
'typescript',
|
|
2947
|
+
'es-tag-css',
|
|
2948
|
+
'es-tag-glsl',
|
|
2949
|
+
'es-tag-html',
|
|
2950
|
+
'es-tag-sql',
|
|
2951
|
+
'es-tag-xml',
|
|
2952
|
+
],
|
|
2953
|
+
name: 'ts-tags',
|
|
2954
|
+
scopeName: 'source.ts.tags',
|
|
2955
|
+
},
|
|
2936
2956
|
{
|
|
2937
2957
|
byteSize: 633,
|
|
2938
2958
|
categories: [
|
|
@@ -3527,6 +3547,113 @@ export const injections = [
|
|
|
3527
3547
|
sha: '6ac83c7c7dda9f27ca1fe9d98675253e010b75d1',
|
|
3528
3548
|
source: 'https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json',
|
|
3529
3549
|
},
|
|
3550
|
+
{
|
|
3551
|
+
byteSize: 1712,
|
|
3552
|
+
embedded: [
|
|
3553
|
+
'typescript',
|
|
3554
|
+
'css',
|
|
3555
|
+
'javascript',
|
|
3556
|
+
],
|
|
3557
|
+
embeddedIn: [
|
|
3558
|
+
'ts-tags',
|
|
3559
|
+
],
|
|
3560
|
+
injectTo: [
|
|
3561
|
+
'source.ts',
|
|
3562
|
+
'source.js',
|
|
3563
|
+
],
|
|
3564
|
+
lastUpdate: '2024-05-10T19:00:53Z',
|
|
3565
|
+
license: 'MIT',
|
|
3566
|
+
licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
|
|
3567
|
+
name: 'es-tag-css',
|
|
3568
|
+
scopeName: 'inline.es6-css',
|
|
3569
|
+
sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
|
|
3570
|
+
source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-css.json',
|
|
3571
|
+
},
|
|
3572
|
+
{
|
|
3573
|
+
byteSize: 1591,
|
|
3574
|
+
embedded: [
|
|
3575
|
+
'typescript',
|
|
3576
|
+
'glsl',
|
|
3577
|
+
'javascript',
|
|
3578
|
+
],
|
|
3579
|
+
embeddedIn: [
|
|
3580
|
+
'ts-tags',
|
|
3581
|
+
],
|
|
3582
|
+
injectTo: [
|
|
3583
|
+
'source.ts',
|
|
3584
|
+
'source.js',
|
|
3585
|
+
],
|
|
3586
|
+
lastUpdate: '2024-05-10T19:00:53Z',
|
|
3587
|
+
license: 'MIT',
|
|
3588
|
+
licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
|
|
3589
|
+
name: 'es-tag-glsl',
|
|
3590
|
+
scopeName: 'inline.es6-glsl',
|
|
3591
|
+
sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
|
|
3592
|
+
source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-glsl.json',
|
|
3593
|
+
},
|
|
3594
|
+
{
|
|
3595
|
+
byteSize: 1902,
|
|
3596
|
+
embedded: [
|
|
3597
|
+
'typescript',
|
|
3598
|
+
'html',
|
|
3599
|
+
'javascript',
|
|
3600
|
+
],
|
|
3601
|
+
embeddedIn: [
|
|
3602
|
+
'ts-tags',
|
|
3603
|
+
],
|
|
3604
|
+
injectTo: [
|
|
3605
|
+
'source.ts',
|
|
3606
|
+
'source.js',
|
|
3607
|
+
],
|
|
3608
|
+
lastUpdate: '2024-05-10T19:00:53Z',
|
|
3609
|
+
license: 'MIT',
|
|
3610
|
+
licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
|
|
3611
|
+
name: 'es-tag-html',
|
|
3612
|
+
scopeName: 'inline.es6-html',
|
|
3613
|
+
sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
|
|
3614
|
+
source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-html.json',
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
byteSize: 1510,
|
|
3618
|
+
embedded: [
|
|
3619
|
+
'typescript',
|
|
3620
|
+
'sql',
|
|
3621
|
+
],
|
|
3622
|
+
embeddedIn: [
|
|
3623
|
+
'ts-tags',
|
|
3624
|
+
],
|
|
3625
|
+
injectTo: [
|
|
3626
|
+
'source.ts',
|
|
3627
|
+
'source.js',
|
|
3628
|
+
],
|
|
3629
|
+
lastUpdate: '2024-05-10T19:00:53Z',
|
|
3630
|
+
license: 'MIT',
|
|
3631
|
+
licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
|
|
3632
|
+
name: 'es-tag-sql',
|
|
3633
|
+
scopeName: 'inline.es6-sql',
|
|
3634
|
+
sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
|
|
3635
|
+
source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-sql.json',
|
|
3636
|
+
},
|
|
3637
|
+
{
|
|
3638
|
+
byteSize: 1098,
|
|
3639
|
+
embedded: [
|
|
3640
|
+
'xml',
|
|
3641
|
+
],
|
|
3642
|
+
embeddedIn: [
|
|
3643
|
+
'ts-tags',
|
|
3644
|
+
],
|
|
3645
|
+
injectTo: [
|
|
3646
|
+
'source.ts',
|
|
3647
|
+
'source.js',
|
|
3648
|
+
],
|
|
3649
|
+
lastUpdate: '2024-05-10T19:00:53Z',
|
|
3650
|
+
license: 'MIT',
|
|
3651
|
+
licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
|
|
3652
|
+
name: 'es-tag-xml',
|
|
3653
|
+
scopeName: 'inline.es6-xml',
|
|
3654
|
+
sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
|
|
3655
|
+
source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-xml.json',
|
|
3656
|
+
},
|
|
3530
3657
|
{
|
|
3531
3658
|
byteSize: 470,
|
|
3532
3659
|
displayName: 'jinja-html',
|