tm-grammars 1.13.14 → 1.15.0

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 CHANGED
@@ -930,7 +930,7 @@ Public License instead of this License. But first, please read
930
930
  <http://www.gnu.org/philosophy/why-not-lgpl.html>.
931
931
 
932
932
  =========================================================================================================
933
- Files: angular-expression.json, angular-inline-style.json, angular-inline-template.json, angular-template.json, angular-template-blocks.json
933
+ Files: angular-expression.json, angular-inline-style.json, angular-inline-template.json, angular-let-declaration.json, angular-template.json, angular-template-blocks.json
934
934
  License: https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE
935
935
  SPDX: MIT
936
936
  ---------------------------------------------------------------------------------------------------------
@@ -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
@@ -23,8 +23,8 @@ import { grammars } from 'tm-grammars'
23
23
  | `abap` | | [pvl/abap.tmbundle](https://github.com/pvl/abap.tmbundle/blob/a9b2efff4f4afa469d984353384f09e4ebd24055/Syntaxes/ABAP.tmLanguage) | | | 16.82 kB |
24
24
  | `actionscript-3` | | [BowlerHatLLC/vscode-as3mxml](https://github.com/BowlerHatLLC/vscode-as3mxml/blob/77075cd9a439ecd87815cecb1f1c2bb1ff44a2e5/distribution/src/assembly/syntaxes/AS3.tmLanguage) | [Apache-2.0](https://raw.githubusercontent.com/BowlerHatLLC/vscode-as3mxml/main/LICENSE) | | 13.81 kB |
25
25
  | `ada` | | [AdaCore/ada_language_server](https://github.com/AdaCore/ada_language_server/blob/75c0d0c22b3f3dbf559946331c7aca6fc5b84065/integration/vscode/ada/advanced/ada.tmLanguage.json) | [GPL-3.0](https://raw.githubusercontent.com/AdaCore/ada_language_server/master/LICENSE) | | 45.72 kB |
26
- | `angular-html` | | [onivim/vscode-exthost](https://github.com/onivim/vscode-exthost/blob/cfc2a2212de9ea10943af58ebd1817a5ad196463/extensions/html/syntaxes/html-derivative.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/onivim/vscode-exthost/master/LICENSE.txt) | `html` `angular-expression` `angular-template` `angular-template-blocks` | 772.00 B |
27
- | `angular-ts` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `angular-expression` `angular-inline-style` `angular-inline-template` `angular-template` `angular-template-blocks` | 177.11 kB |
26
+ | `angular-html` | | [onivim/vscode-exthost](https://github.com/onivim/vscode-exthost/blob/cfc2a2212de9ea10943af58ebd1817a5ad196463/extensions/html/syntaxes/html-derivative.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/onivim/vscode-exthost/master/LICENSE.txt) | `html` `angular-expression` `angular-let-declaration` `angular-template` `angular-template-blocks` | 772.00 B |
27
+ | `angular-ts` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `angular-expression` `angular-inline-style` `angular-inline-template` `angular-let-declaration` `angular-template` `angular-template-blocks` | 177.11 kB |
28
28
  | `apache` | | [colinta/ApacheConf.tmLanguage](https://github.com/colinta/ApacheConf.tmLanguage/blob/1fdb47b6fe2cea20cfedbc522bff3ff1ed656c07/ApacheConf.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/colinta/ApacheConf.tmLanguage/main/LICENSE) | | 12.57 kB |
29
29
  | `apex` | | [forcedotcom/apex-tmLanguage](https://github.com/forcedotcom/apex-tmLanguage/blob/1d3c7097c8e50b4f4163c9e27b450fcd45f40a5e/grammars/apex.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE) | | 44.68 kB |
30
30
  | `apl` | | [kimmolinna/vscode-apl-language](https://github.com/kimmolinna/vscode-apl-language/blob/13541242d9ffae225e89ebba23f9abaa4c60697e/syntaxes/apl.tmLanguage.json) | | `html` `xml` `css` `javascript` `json` | 25.86 kB |
@@ -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-embed` | `lit` | - | | `typescript` | 126.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 |
@@ -239,9 +240,15 @@ Injections are grammars that are embedded in other grammars. They are used to ag
239
240
  | `angular-expression` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/d7dab52644375e64af3deaeac045cc75f5954414/syntaxes/expression.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | | 12.69 kB |
240
241
  | `angular-inline-style` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/f0422f5f571f79a904510944452f06fb36beff22/syntaxes/inline-styles.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `scss` | 1.17 kB |
241
242
  | `angular-inline-template` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/a18c61752e65ddcbeb31217f47f29fa38fe26c42/syntaxes/inline-template.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-html` `angular-template` | 970.00 B |
243
+ | `angular-let-declaration` | | [angular/vscode-ng-language-service](https://github.com/angular/vscode-ng-language-service/blob/4ab348120e4fb499bb12560dc039e0c7b5b418b8/syntaxes/let-declaration.json) | [MIT](https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE) | `angular-expression` | 879.00 B |
242
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 |
243
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 |
244
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 |
245
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 |
246
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 |
247
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,58 @@
1
+ {
2
+ "injectTo": [
3
+ "text.html.derivative",
4
+ "text.html.derivative.ng",
5
+ "source.ts.ng"
6
+ ],
7
+ "injectionSelector": "L:text.html -comment -expression.ng -meta.tag -source.css -source.js",
8
+ "name": "angular-let-declaration",
9
+ "patterns": [
10
+ {
11
+ "include": "#letDeclaration"
12
+ }
13
+ ],
14
+ "repository": {
15
+ "letDeclaration": {
16
+ "begin": "(@let)\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)?",
17
+ "beginCaptures": {
18
+ "1": {
19
+ "name": "storage.type.ng"
20
+ },
21
+ "2": {
22
+ "name": "meta.definition.variable.ng"
23
+ },
24
+ "3": {
25
+ "name": "keyword.operator.assignment.ng"
26
+ }
27
+ },
28
+ "contentName": "meta.definition.variable.ng",
29
+ "end": "(?<=;)",
30
+ "patterns": [
31
+ {
32
+ "include": "#letInitializer"
33
+ }
34
+ ]
35
+ },
36
+ "letInitializer": {
37
+ "begin": "\\s*",
38
+ "beginCaptures": {
39
+ "0": {
40
+ "name": "keyword.operator.assignment.ng"
41
+ }
42
+ },
43
+ "contentName": "meta.definition.variable.initializer.ng",
44
+ "end": ";",
45
+ "endCaptures": {
46
+ "0": {
47
+ "name": "punctuation.terminator.statement.ng"
48
+ }
49
+ },
50
+ "patterns": [
51
+ {
52
+ "include": "expression.ng"
53
+ }
54
+ ]
55
+ }
56
+ },
57
+ "scopeName": "template.let.ng"
58
+ }
@@ -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
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "displayName": "TypeScript with Embeds",
3
+ "name": "ts-embed",
4
+ "patterns": [
5
+ {
6
+ "include": "source.ts"
7
+ }
8
+ ],
9
+ "scopeName": "source.ts.embeds"
10
+ }
package/index.js CHANGED
@@ -47,6 +47,7 @@ export const grammars = [
47
47
  embedded: [
48
48
  'html',
49
49
  'angular-expression',
50
+ 'angular-let-declaration',
50
51
  'angular-template',
51
52
  'angular-template-blocks',
52
53
  ],
@@ -68,6 +69,7 @@ export const grammars = [
68
69
  'angular-expression',
69
70
  'angular-inline-style',
70
71
  'angular-inline-template',
72
+ 'angular-let-declaration',
71
73
  'angular-template',
72
74
  'angular-template-blocks',
73
75
  ],
@@ -2931,6 +2933,21 @@ export const grammars = [
2931
2933
  sha: 'e82b64c1e86396220786846201e9aa3f0a2d9ca2',
2932
2934
  source: 'https://github.com/textmate/toml.tmbundle/blob/e82b64c1e86396220786846201e9aa3f0a2d9ca2/Syntaxes/TOML.tmLanguage',
2933
2935
  },
2936
+ {
2937
+ aliases: [
2938
+ 'lit',
2939
+ ],
2940
+ byteSize: 126,
2941
+ categories: [
2942
+ 'web',
2943
+ ],
2944
+ displayName: 'TypeScript with Embeds',
2945
+ embedded: [
2946
+ 'typescript',
2947
+ ],
2948
+ name: 'ts-embed',
2949
+ scopeName: 'source.ts.embeds',
2950
+ },
2934
2951
  {
2935
2952
  byteSize: 633,
2936
2953
  categories: [
@@ -3439,6 +3456,28 @@ export const injections = [
3439
3456
  sha: 'a18c61752e65ddcbeb31217f47f29fa38fe26c42',
3440
3457
  source: 'https://github.com/angular/vscode-ng-language-service/blob/a18c61752e65ddcbeb31217f47f29fa38fe26c42/syntaxes/inline-template.json',
3441
3458
  },
3459
+ {
3460
+ byteSize: 879,
3461
+ embedded: [
3462
+ 'angular-expression',
3463
+ ],
3464
+ embeddedIn: [
3465
+ 'angular-ts',
3466
+ 'angular-html',
3467
+ ],
3468
+ injectTo: [
3469
+ 'text.html.derivative',
3470
+ 'text.html.derivative.ng',
3471
+ 'source.ts.ng',
3472
+ ],
3473
+ lastUpdate: '2024-06-25T18:10:01Z',
3474
+ license: 'MIT',
3475
+ licenseUrl: 'https://raw.githubusercontent.com/angular/vscode-ng-language-service/main/LICENSE',
3476
+ name: 'angular-let-declaration',
3477
+ scopeName: 'template.let.ng',
3478
+ sha: '4ab348120e4fb499bb12560dc039e0c7b5b418b8',
3479
+ source: 'https://github.com/angular/vscode-ng-language-service/blob/4ab348120e4fb499bb12560dc039e0c7b5b418b8/syntaxes/let-declaration.json',
3480
+ },
3442
3481
  {
3443
3482
  byteSize: 471,
3444
3483
  embedded: [
@@ -3503,6 +3542,113 @@ export const injections = [
3503
3542
  sha: '6ac83c7c7dda9f27ca1fe9d98675253e010b75d1',
3504
3543
  source: 'https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.embedded.macro.tmLanguage.json',
3505
3544
  },
3545
+ {
3546
+ byteSize: 1712,
3547
+ embedded: [
3548
+ 'typescript',
3549
+ 'css',
3550
+ 'javascript',
3551
+ ],
3552
+ embeddedIn: [
3553
+ 'ts-tags',
3554
+ ],
3555
+ injectTo: [
3556
+ 'source.ts',
3557
+ 'source.js',
3558
+ ],
3559
+ lastUpdate: '2024-05-10T19:00:53Z',
3560
+ license: 'MIT',
3561
+ licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
3562
+ name: 'es-tag-css',
3563
+ scopeName: 'inline.es6-css',
3564
+ sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
3565
+ source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-css.json',
3566
+ },
3567
+ {
3568
+ byteSize: 1591,
3569
+ embedded: [
3570
+ 'typescript',
3571
+ 'glsl',
3572
+ 'javascript',
3573
+ ],
3574
+ embeddedIn: [
3575
+ 'ts-tags',
3576
+ ],
3577
+ injectTo: [
3578
+ 'source.ts',
3579
+ 'source.js',
3580
+ ],
3581
+ lastUpdate: '2024-05-10T19:00:53Z',
3582
+ license: 'MIT',
3583
+ licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
3584
+ name: 'es-tag-glsl',
3585
+ scopeName: 'inline.es6-glsl',
3586
+ sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
3587
+ source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-glsl.json',
3588
+ },
3589
+ {
3590
+ byteSize: 1902,
3591
+ embedded: [
3592
+ 'typescript',
3593
+ 'html',
3594
+ 'javascript',
3595
+ ],
3596
+ embeddedIn: [
3597
+ 'ts-tags',
3598
+ ],
3599
+ injectTo: [
3600
+ 'source.ts',
3601
+ 'source.js',
3602
+ ],
3603
+ lastUpdate: '2024-05-10T19:00:53Z',
3604
+ license: 'MIT',
3605
+ licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
3606
+ name: 'es-tag-html',
3607
+ scopeName: 'inline.es6-html',
3608
+ sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
3609
+ source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-html.json',
3610
+ },
3611
+ {
3612
+ byteSize: 1510,
3613
+ embedded: [
3614
+ 'typescript',
3615
+ 'sql',
3616
+ ],
3617
+ embeddedIn: [
3618
+ 'ts-tags',
3619
+ ],
3620
+ injectTo: [
3621
+ 'source.ts',
3622
+ 'source.js',
3623
+ ],
3624
+ lastUpdate: '2024-05-10T19:00:53Z',
3625
+ license: 'MIT',
3626
+ licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
3627
+ name: 'es-tag-sql',
3628
+ scopeName: 'inline.es6-sql',
3629
+ sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
3630
+ source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-sql.json',
3631
+ },
3632
+ {
3633
+ byteSize: 1098,
3634
+ embedded: [
3635
+ 'xml',
3636
+ ],
3637
+ embeddedIn: [
3638
+ 'ts-tags',
3639
+ ],
3640
+ injectTo: [
3641
+ 'source.ts',
3642
+ 'source.js',
3643
+ ],
3644
+ lastUpdate: '2024-05-10T19:00:53Z',
3645
+ license: 'MIT',
3646
+ licenseUrl: 'https://raw.githubusercontent.com/0x00000001A/es6-string-html/master/LICENSE',
3647
+ name: 'es-tag-xml',
3648
+ scopeName: 'inline.es6-xml',
3649
+ sha: 'b8f51210b53ce64e789949d4be33b7ecb42cf177',
3650
+ source: 'https://github.com/0x00000001A/es6-string-html/blob/b8f51210b53ce64e789949d4be33b7ecb42cf177/syntaxes/es6-inline-xml.json',
3651
+ },
3506
3652
  {
3507
3653
  byteSize: 470,
3508
3654
  displayName: 'jinja-html',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.13.14",
4
+ "version": "1.15.0",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",