tm-grammars 1.25.1 → 1.25.3
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/README.md +2 -2
- package/grammars/apex.json +22 -30
- package/grammars/bicep.json +83 -11
- package/index.js +12 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ import { grammars } from 'tm-grammars'
|
|
|
26
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` | 701.00 B |
|
|
27
27
|
| `angular-ts` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/210541906e5a96ab39f9c753f921b1bd35f4138b/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` | 160.04 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) | | | 11.83 kB |
|
|
29
|
-
| `apex` | | [forcedotcom/apex-tmLanguage](https://github.com/forcedotcom/apex-tmLanguage/blob/
|
|
29
|
+
| `apex` | | [forcedotcom/apex-tmLanguage](https://github.com/forcedotcom/apex-tmLanguage/blob/da22c02d8cd25e455f58e453d26f9f6281269783/grammars/apex.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE) | | | 43.40 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` | 22.69 kB |
|
|
31
31
|
| `applescript` | | [textmate/applescript.tmbundle](https://github.com/textmate/applescript.tmbundle/blob/4947cad7494eba084c21cfe04689b4efce96700f/Syntaxes/AppleScript.tmLanguage) | | | | 27.80 kB |
|
|
32
32
|
| `ara` | | [ara-lang/highlighting](https://github.com/ara-lang/highlighting/blob/ed1dbedcf03d0b67207e41fe2e11218cc925dc0d/syntaxes/ara.json) | [Apache-2.0](https://raw.githubusercontent.com/ara-lang/highlighting/main/LICENSE-APACHE) | | | 5.91 kB |
|
|
@@ -39,7 +39,7 @@ import { grammars } from 'tm-grammars'
|
|
|
39
39
|
| `beancount` | | [Lencerf/vscode-beancount](https://github.com/Lencerf/vscode-beancount/blob/75fc29960fcf6666e4b06310fac4d49a16c57ca0/syntaxes/beancount.tmLanguage) | [MIT](https://raw.githubusercontent.com/Lencerf/vscode-beancount/master/LICENSE) | | | 9.90 kB |
|
|
40
40
|
| `berry` | `be` | [berry-lang/berry](https://github.com/berry-lang/berry/blob/a0f5c044a3b593deaf87292ca6f04c2343e53dc8/tools/plugins/vscode/skiars.berry-1.1.0/syntaxes/berry.json) | [MIT](https://raw.githubusercontent.com/berry-lang/berry/master/LICENSE) | | | 2.06 kB |
|
|
41
41
|
| `bibtex` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/9a2c94d213696a4453b6d9988b003d98e7646e75/extensions/latex/syntaxes/Bibtex.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 4.51 kB |
|
|
42
|
-
| `bicep` | | [Azure/bicep](https://github.com/Azure/bicep/blob/
|
|
42
|
+
| `bicep` | | [Azure/bicep](https://github.com/Azure/bicep/blob/6252abb94141fc6e774a53652404be30f1cb9000/src/textmate/bicep.tmlanguage) | [MIT](https://raw.githubusercontent.com/Azure/bicep/main/LICENSE) | | | 4.92 kB |
|
|
43
43
|
| `blade` | | [laravel/vs-code-extension](https://github.com/laravel/vs-code-extension/blob/fa52467b5f7393407c9acc9b95d3794f67e266da/syntaxes/blade.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/laravel/vs-code-extension/main/LICENSE.md) | | `html-derivative` `html` `xml` `sql` `javascript` `json` `css` | 98.91 kB |
|
|
44
44
|
| `bsl` | `1c` | [1c-syntax/vsc-language-1c-bsl](https://github.com/1c-syntax/vsc-language-1c-bsl/blob/2cde5a65a17b82b5363affadf5a620ebb0a026dc/syntaxes/1c.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/1c-syntax/vsc-language-1c-bsl/develop/LICENSE.md) | | `sdbl` | 32.60 kB |
|
|
45
45
|
| `c` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/bd1abe08c38bb5deccf65610f8f3c03d2338d20d/extensions/cpp/syntaxes/c.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 67.93 kB |
|
package/grammars/apex.json
CHANGED
|
@@ -992,16 +992,26 @@
|
|
|
992
992
|
]
|
|
993
993
|
},
|
|
994
994
|
"implements-class": {
|
|
995
|
-
"begin": "(implements)\\b
|
|
995
|
+
"begin": "(implements)\\b",
|
|
996
996
|
"beginCaptures": {
|
|
997
997
|
"1": {
|
|
998
998
|
"name": "keyword.other.implements.apex"
|
|
999
|
-
},
|
|
1000
|
-
"2": {
|
|
1001
|
-
"name": "entity.name.type.implements.apex"
|
|
1002
999
|
}
|
|
1003
1000
|
},
|
|
1004
|
-
"end": "(?=\\{|extends)"
|
|
1001
|
+
"end": "(?=\\{|extends)",
|
|
1002
|
+
"patterns": [
|
|
1003
|
+
{
|
|
1004
|
+
"captures": {
|
|
1005
|
+
"1": {
|
|
1006
|
+
"name": "entity.name.type.implements.apex"
|
|
1007
|
+
},
|
|
1008
|
+
"2": {
|
|
1009
|
+
"name": "punctuation.separator.comma.apex"
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
"match": "([_[:alpha:]][_[:alnum:]]*)\\b\\s*(,)?"
|
|
1013
|
+
}
|
|
1014
|
+
]
|
|
1005
1015
|
},
|
|
1006
1016
|
"indexer-declaration": {
|
|
1007
1017
|
"begin": "(?<return_type>(?<type_name>(?:ref\\s+)?(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*::\\s*)?(?<name_and_type_args>\\g<identifier>\\s*(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?)(?:\\s*\\.\\s*\\g<name_and_type_args>)*(?:\\s*\\?\\s*)?(?:\\s*\\[(?:\\s*,\\s*)*]\\s*)*)\\s+)(?<interface_name>\\g<type_name>\\s*\\.\\s*)?(?<indexer_name>this)\\s*(?=\\[)",
|
|
@@ -2365,7 +2375,7 @@
|
|
|
2365
2375
|
]
|
|
2366
2376
|
},
|
|
2367
2377
|
"switch-statement": {
|
|
2368
|
-
"begin": "(switch)\\b\\s+(on)\\b\\s+(
|
|
2378
|
+
"begin": "(switch)\\b\\s+(on)\\b\\s+(.*)(\\{)",
|
|
2369
2379
|
"beginCaptures": {
|
|
2370
2380
|
"1": {
|
|
2371
2381
|
"name": "keyword.control.switch.apex"
|
|
@@ -2940,19 +2950,20 @@
|
|
|
2940
2950
|
]
|
|
2941
2951
|
},
|
|
2942
2952
|
"when-string": {
|
|
2943
|
-
"begin": "(when)\\b
|
|
2953
|
+
"begin": "(when)\\b\\s*('[^\\n']*')(,)?",
|
|
2944
2954
|
"beginCaptures": {
|
|
2945
2955
|
"1": {
|
|
2946
2956
|
"name": "keyword.control.switch.when.apex"
|
|
2947
2957
|
},
|
|
2948
2958
|
"2": {
|
|
2949
|
-
"
|
|
2959
|
+
"patterns": [
|
|
2960
|
+
{
|
|
2961
|
+
"include": "#string-literal"
|
|
2962
|
+
}
|
|
2963
|
+
]
|
|
2950
2964
|
},
|
|
2951
2965
|
"3": {
|
|
2952
2966
|
"patterns": [
|
|
2953
|
-
{
|
|
2954
|
-
"include": "#when-string-statement"
|
|
2955
|
-
},
|
|
2956
2967
|
{
|
|
2957
2968
|
"include": "#punctuation-comma"
|
|
2958
2969
|
}
|
|
@@ -2969,25 +2980,6 @@
|
|
|
2969
2980
|
}
|
|
2970
2981
|
]
|
|
2971
2982
|
},
|
|
2972
|
-
"when-string-statement": {
|
|
2973
|
-
"patterns": [
|
|
2974
|
-
{
|
|
2975
|
-
"begin": "'",
|
|
2976
|
-
"beginCaptures": {
|
|
2977
|
-
"0": {
|
|
2978
|
-
"name": "punctuation.definition.string.begin.apex"
|
|
2979
|
-
}
|
|
2980
|
-
},
|
|
2981
|
-
"end": "'",
|
|
2982
|
-
"endCaptures": {
|
|
2983
|
-
"0": {
|
|
2984
|
-
"name": "punctuation.definition.string.end.apex"
|
|
2985
|
-
}
|
|
2986
|
-
},
|
|
2987
|
-
"name": "string.quoted.single.apex"
|
|
2988
|
-
}
|
|
2989
|
-
]
|
|
2990
|
-
},
|
|
2991
2983
|
"where-clause": {
|
|
2992
2984
|
"captures": {
|
|
2993
2985
|
"1": {
|
package/grammars/bicep.json
CHANGED
|
@@ -82,7 +82,13 @@
|
|
|
82
82
|
"include": "#string-literal"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
|
-
"include": "#string
|
|
85
|
+
"include": "#multiline-string"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"include": "#multiline-string-1-interp"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"include": "#multiline-string-2-interp"
|
|
86
92
|
},
|
|
87
93
|
{
|
|
88
94
|
"include": "#numeric-literal"
|
|
@@ -164,6 +170,79 @@
|
|
|
164
170
|
"match": "//.*(?=$)",
|
|
165
171
|
"name": "comment.line.double-slash.bicep"
|
|
166
172
|
},
|
|
173
|
+
"multiline-1-string-subst": {
|
|
174
|
+
"begin": "(\\$\\{)",
|
|
175
|
+
"beginCaptures": {
|
|
176
|
+
"1": {
|
|
177
|
+
"name": "punctuation.definition.template-expression.begin.bicep"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"end": "(})",
|
|
181
|
+
"endCaptures": {
|
|
182
|
+
"1": {
|
|
183
|
+
"name": "punctuation.definition.template-expression.end.bicep"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"name": "meta.multiline-1-string-subst.bicep",
|
|
187
|
+
"patterns": [
|
|
188
|
+
{
|
|
189
|
+
"include": "#expression"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"include": "#comments"
|
|
193
|
+
}
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"multiline-2-string-subst": {
|
|
197
|
+
"begin": "(\\$\\$\\{)",
|
|
198
|
+
"beginCaptures": {
|
|
199
|
+
"1": {
|
|
200
|
+
"name": "punctuation.definition.template-expression.begin.bicep"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"end": "(})",
|
|
204
|
+
"endCaptures": {
|
|
205
|
+
"1": {
|
|
206
|
+
"name": "punctuation.definition.template-expression.end.bicep"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"name": "meta.multiline-2-string-subst.bicep",
|
|
210
|
+
"patterns": [
|
|
211
|
+
{
|
|
212
|
+
"include": "#expression"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"include": "#comments"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"multiline-string": {
|
|
220
|
+
"begin": "'''",
|
|
221
|
+
"end": "'''(?!')",
|
|
222
|
+
"name": "string.quoted.multi.bicep",
|
|
223
|
+
"patterns": [
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"multiline-string-1-interp": {
|
|
227
|
+
"begin": "(?<!\\$)\\$'''",
|
|
228
|
+
"end": "'''(?!')",
|
|
229
|
+
"name": "string.quoted.multi.bicep",
|
|
230
|
+
"patterns": [
|
|
231
|
+
{
|
|
232
|
+
"include": "#multiline-1-string-subst"
|
|
233
|
+
}
|
|
234
|
+
]
|
|
235
|
+
},
|
|
236
|
+
"multiline-string-2-interp": {
|
|
237
|
+
"begin": "\\$\\$'''",
|
|
238
|
+
"end": "'''(?!')",
|
|
239
|
+
"name": "string.quoted.multi.bicep",
|
|
240
|
+
"patterns": [
|
|
241
|
+
{
|
|
242
|
+
"include": "#multiline-2-string-subst"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
167
246
|
"named-literal": {
|
|
168
247
|
"match": "\\b(true|false|null)\\b",
|
|
169
248
|
"name": "constant.language.bicep"
|
|
@@ -201,11 +280,11 @@
|
|
|
201
280
|
"include": "#escape-character"
|
|
202
281
|
},
|
|
203
282
|
{
|
|
204
|
-
"include": "#string-
|
|
283
|
+
"include": "#string-subst"
|
|
205
284
|
}
|
|
206
285
|
]
|
|
207
286
|
},
|
|
208
|
-
"string-
|
|
287
|
+
"string-subst": {
|
|
209
288
|
"begin": "(?<!\\\\)(\\$\\{)",
|
|
210
289
|
"beginCaptures": {
|
|
211
290
|
"1": {
|
|
@@ -218,7 +297,7 @@
|
|
|
218
297
|
"name": "punctuation.definition.template-expression.end.bicep"
|
|
219
298
|
}
|
|
220
299
|
},
|
|
221
|
-
"name": "meta.string-
|
|
300
|
+
"name": "meta.string-subst.bicep",
|
|
222
301
|
"patterns": [
|
|
223
302
|
{
|
|
224
303
|
"include": "#expression"
|
|
@@ -227,13 +306,6 @@
|
|
|
227
306
|
"include": "#comments"
|
|
228
307
|
}
|
|
229
308
|
]
|
|
230
|
-
},
|
|
231
|
-
"string-verbatim": {
|
|
232
|
-
"begin": "'''",
|
|
233
|
-
"end": "'''(?!')",
|
|
234
|
-
"name": "string.quoted.multi.bicep",
|
|
235
|
-
"patterns": [
|
|
236
|
-
]
|
|
237
309
|
}
|
|
238
310
|
},
|
|
239
311
|
"scopeName": "source.bicep"
|
package/index.js
CHANGED
|
@@ -122,19 +122,19 @@ export const grammars = [
|
|
|
122
122
|
sourceApi: 'https://api.github.com/repos/colinta/ApacheConf.tmLanguage/contents/ApacheConf.tmLanguage?ref=1fdb47b6fe2cea20cfedbc522bff3ff1ed656c07',
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
byteSize:
|
|
125
|
+
byteSize: 44441,
|
|
126
126
|
displayName: 'Apex',
|
|
127
127
|
funding: [
|
|
128
128
|
],
|
|
129
|
-
hash: '
|
|
130
|
-
lastUpdate: '2025-
|
|
129
|
+
hash: 'M0qEKFTpQDhyUENabySwFERcKfgtlqB_B7-vokG6HqI',
|
|
130
|
+
lastUpdate: '2025-10-27T11:53:34Z',
|
|
131
131
|
license: 'NOASSERTION',
|
|
132
132
|
licenseUrl: 'https://raw.githubusercontent.com/forcedotcom/apex-tmLanguage/main/LICENSE',
|
|
133
133
|
name: 'apex',
|
|
134
134
|
scopeName: 'source.apex',
|
|
135
|
-
sha: '
|
|
136
|
-
source: 'https://github.com/forcedotcom/apex-tmLanguage/blob/
|
|
137
|
-
sourceApi: 'https://api.github.com/repos/forcedotcom/apex-tmLanguage/contents/grammars/apex.tmLanguage?ref=
|
|
135
|
+
sha: 'da22c02d8cd25e455f58e453d26f9f6281269783',
|
|
136
|
+
source: 'https://github.com/forcedotcom/apex-tmLanguage/blob/da22c02d8cd25e455f58e453d26f9f6281269783/grammars/apex.tmLanguage',
|
|
137
|
+
sourceApi: 'https://api.github.com/repos/forcedotcom/apex-tmLanguage/contents/grammars/apex.tmLanguage?ref=da22c02d8cd25e455f58e453d26f9f6281269783',
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
byteSize: 23233,
|
|
@@ -432,19 +432,19 @@ export const grammars = [
|
|
|
432
432
|
sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/latex/syntaxes/Bibtex.tmLanguage.json?ref=9a2c94d213696a4453b6d9988b003d98e7646e75',
|
|
433
433
|
},
|
|
434
434
|
{
|
|
435
|
-
byteSize:
|
|
435
|
+
byteSize: 5036,
|
|
436
436
|
displayName: 'Bicep',
|
|
437
437
|
funding: [
|
|
438
438
|
],
|
|
439
|
-
hash: '
|
|
440
|
-
lastUpdate: '2025-
|
|
439
|
+
hash: '19osAMNrYv-s1dkOn2eD4JU5jejqm-vJ218-Zi5vDf8',
|
|
440
|
+
lastUpdate: '2025-10-28T23:43:31Z',
|
|
441
441
|
license: 'MIT',
|
|
442
442
|
licenseUrl: 'https://raw.githubusercontent.com/Azure/bicep/main/LICENSE',
|
|
443
443
|
name: 'bicep',
|
|
444
444
|
scopeName: 'source.bicep',
|
|
445
|
-
sha: '
|
|
446
|
-
source: 'https://github.com/Azure/bicep/blob/
|
|
447
|
-
sourceApi: 'https://api.github.com/repos/Azure/bicep/contents/src/textmate/bicep.tmlanguage?ref=
|
|
445
|
+
sha: '6252abb94141fc6e774a53652404be30f1cb9000',
|
|
446
|
+
source: 'https://github.com/Azure/bicep/blob/6252abb94141fc6e774a53652404be30f1cb9000/src/textmate/bicep.tmlanguage',
|
|
447
|
+
sourceApi: 'https://api.github.com/repos/Azure/bicep/contents/src/textmate/bicep.tmlanguage?ref=6252abb94141fc6e774a53652404be30f1cb9000',
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
450
|
byteSize: 101282,
|