tm-grammars 1.24.3 → 1.24.4

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.
@@ -146,7 +146,7 @@
146
146
  }
147
147
  },
148
148
  "contentName": "source.ts",
149
- "end": "(?=[],;]|/>|(?<=[^=])>|(?<!(?:^|[!%\\&*:?^|~]|[-!%\\&*+/<-?^|~]=|=>|>{2,}|[^.]\\.|[^-]-|^\\s*\\+\\+|[^+]\\+{2}*\\+|[]%).0-9<A-Za-z}]\\s*/|\\b(?<!\\.\\s*)(?:await|async|class|function|keyof|new|typeof|void))\\s*)(?:\\n|[\\t ]+(?![\\n!%\\&(*+:?^{|~]|[-/<=>]=|=>|>{2,}|\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\s+[^,/:;=>])))",
149
+ "end": "(?=[],;]|/>|(?<=[^=>])>|(?<!^|[!%\\&*:?^|~]|[-!%\\&*+/<-?^|~]=|[=>]>|[^.]\\.|[^-]-|[^+]\\+|[]%).0-9<A-Za-z}]\\s/|[^$.\\w]await|[^$.\\w]async|[^$.\\w]class|[^$.\\w]function|[^$.\\w]keyof|[^$.\\w]new|[^$.\\w]readonly|[^$.\\w]infer|[^$.\\w]typeof|[^$.\\w]void)\\s+(?![\\n!%\\&(*+:?^{|~]|[-/<=>]=|[=>]>|\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\s+[^,/:;=>]))",
150
150
  "name": "meta.embedded.ts",
151
151
  "patterns": [
152
152
  {
@@ -195,7 +195,7 @@
195
195
  }
196
196
  },
197
197
  "contentName": "source.ts",
198
- "end": "(?=[],;]|/>|(?<=[^=])>|(?<!(?:^|[!%\\&*:?^|~]|[-!%\\&*+/<-?^|~]=|=>|>{2,}|[^.]\\.|[^-]-|^\\s*\\+\\+|[^+]\\+{2}*\\+|[]%).0-9<A-Za-z}]\\s*/|\\b(?<!\\.\\s*)(?:await|async|class|function|keyof|new|typeof|void))\\s*)(?:\\n|[\\t ]+(?![\\n!%\\&(*+:?^{|~]|[-/<=>]=|=>|>{2,}|\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\s+[^,/:;=>])))",
198
+ "end": "(?=[],;]|/>|(?<=[^=>])>|(?<!^|[!%\\&*:?^|~]|[-!%\\&*+/<-?^|~]=|[=>]>|[^.]\\.|[^-]-|[^+]\\+|[]%).0-9<A-Za-z}]\\s/|[^$.\\w]await|[^$.\\w]async|[^$.\\w]class|[^$.\\w]function|[^$.\\w]keyof|[^$.\\w]new|[^$.\\w]readonly|[^$.\\w]infer|[^$.\\w]typeof|[^$.\\w]void)\\s+(?![\\n!%\\&(*+:?^{|~]|[-/<=>]=|[=>]>|\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\s+[^,/:;=>]))",
199
199
  "name": "meta.marko-spread-attribute",
200
200
  "patterns": [
201
201
  {
@@ -370,6 +370,9 @@
370
370
  },
371
371
  "concise-open-tag-content": {
372
372
  "patterns": [
373
+ {
374
+ "include": "#invalid-close-tag"
375
+ },
373
376
  {
374
377
  "include": "#tag-before-attrs"
375
378
  },
@@ -1060,6 +1063,9 @@
1060
1063
  },
1061
1064
  "open-tag-content": {
1062
1065
  "patterns": [
1066
+ {
1067
+ "include": "#invalid-close-tag"
1068
+ },
1063
1069
  {
1064
1070
  "include": "#tag-before-attrs"
1065
1071
  },
@@ -1174,7 +1180,7 @@
1174
1180
  "name": "keyword.operator.type.annotation.ts"
1175
1181
  }
1176
1182
  },
1177
- "end": "(?=[](,;]|/>|(?<=[^=])>|(?<!(?:^|[!%\\&*:?^|~]|[-!%\\&*+/<-?^|~]=|=>|>{2,}|[^.]\\.|[^-]-|^\\s*\\+\\+|[^+]\\+{2}*\\+|[]%).0-9<A-Za-z}]\\s*/|\\b(?<!\\.\\s*)(?:await|async|class|function|keyof|new|typeof|void))\\s*)(?:\\n|[\\t ]+(?![\\n!%\\&*+:?^{|~]|[-/<=>]=|=>|>{2,}|\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\s+[^,/:;=>])))",
1183
+ "end": "(?=[](,;]|/>|(?<=[^=>])>|(?<!^|[!%\\&*:?^|~]|[-!%\\&*+/<-?^|~]=|[=>]>|[^.]\\.|[^-]-|[^+]\\+|[]%).0-9<A-Za-z}]\\s/|[^$.\\w]await|[^$.\\w]async|[^$.\\w]class|[^$.\\w]function|[^$.\\w]keyof|[^$.\\w]new|[^$.\\w]readonly|[^$.\\w]infer|[^$.\\w]typeof|[^$.\\w]void)\\s+(?![\\n!%\\&*+:?^{|~]|[-/<=>]=|[=>]>|\\.[^.]|-[^-]|/[^>]|(?:in|instanceof|satisfies|as|extends)\\s+[^,/:;=>]))",
1178
1184
  "patterns": [
1179
1185
  {
1180
1186
  "include": "source.ts#type"
@@ -1282,7 +1288,7 @@
1282
1288
  "name": "punctuation.definition.tag.begin.marko"
1283
1289
  }
1284
1290
  },
1285
- "end": "/>|(?<=</(?:html-comment)?>)",
1291
+ "end": "/>|(?<=</(?:>|html-comment>))",
1286
1292
  "endCaptures": {
1287
1293
  "0": {
1288
1294
  "name": "punctuation.definition.tag.end.marko"
@@ -1299,7 +1305,7 @@
1299
1305
  "name": "punctuation.definition.tag.end.marko"
1300
1306
  }
1301
1307
  },
1302
- "end": "\\s*(</)(html-comment)?(>)",
1308
+ "end": "\\s*</(?:>|html-comment>)",
1303
1309
  "endCaptures": {
1304
1310
  "1": {
1305
1311
  "name": "punctuation.definition.tag.begin.marko"
@@ -1324,13 +1330,13 @@
1324
1330
  ]
1325
1331
  },
1326
1332
  {
1327
- "begin": "\\s*(<)(?=(?:html-)?style\\b\\S*\\.less\\b)",
1333
+ "begin": "\\s*(<)(?=((?:html-)?style)\\b\\S*\\.less\\b)",
1328
1334
  "beginCaptures": {
1329
1335
  "1": {
1330
1336
  "name": "punctuation.definition.tag.begin.marko"
1331
1337
  }
1332
1338
  },
1333
- "end": "/>|(?<=</(?:(?:html-)?style)?>)",
1339
+ "end": "/>|(?<=</\\2??>)",
1334
1340
  "endCaptures": {
1335
1341
  "0": {
1336
1342
  "name": "punctuation.definition.tag.end.marko"
@@ -1373,13 +1379,13 @@
1373
1379
  ]
1374
1380
  },
1375
1381
  {
1376
- "begin": "\\s*(<)(?=(?:html-)?style\\b\\S*\\.scss\\b)",
1382
+ "begin": "\\s*(<)(?=((?:html-)?style)\\b\\S*\\.scss\\b)",
1377
1383
  "beginCaptures": {
1378
1384
  "1": {
1379
1385
  "name": "punctuation.definition.tag.begin.marko"
1380
1386
  }
1381
1387
  },
1382
- "end": "/>|(?<=</(?:(?:html-)?style)?>)",
1388
+ "end": "/>|(?<=</\\2??>)",
1383
1389
  "endCaptures": {
1384
1390
  "0": {
1385
1391
  "name": "punctuation.definition.tag.end.marko"
@@ -1422,13 +1428,13 @@
1422
1428
  ]
1423
1429
  },
1424
1430
  {
1425
- "begin": "\\s*(<)(?=(?:html-)?style\\b\\S*\\.[jt]s\\b)",
1431
+ "begin": "\\s*(<)(?=((?:html-)?style)\\b\\S*\\.[jt]s\\b)",
1426
1432
  "beginCaptures": {
1427
1433
  "1": {
1428
1434
  "name": "punctuation.definition.tag.begin.marko"
1429
1435
  }
1430
1436
  },
1431
- "end": "/>|(?<=</(?:(?:html-)?style)?>)",
1437
+ "end": "/>|(?<=</\\2??>)",
1432
1438
  "endCaptures": {
1433
1439
  "0": {
1434
1440
  "name": "punctuation.definition.tag.end.marko"
@@ -1471,13 +1477,13 @@
1471
1477
  ]
1472
1478
  },
1473
1479
  {
1474
- "begin": "\\s*(<)(?=(?:html-)?style\\b)",
1480
+ "begin": "\\s*(<)(?=((?:html-)?style)\\b)",
1475
1481
  "beginCaptures": {
1476
1482
  "1": {
1477
1483
  "name": "punctuation.definition.tag.begin.marko"
1478
1484
  }
1479
1485
  },
1480
- "end": "/>|(?<=</(?:(?:html-)?style)?>)",
1486
+ "end": "/>|(?<=</\\2??>)",
1481
1487
  "endCaptures": {
1482
1488
  "0": {
1483
1489
  "name": "punctuation.definition.tag.end.marko"
@@ -1520,13 +1526,13 @@
1520
1526
  ]
1521
1527
  },
1522
1528
  {
1523
- "begin": "\\s*(<)(?=(?:html-)?script\\b)",
1529
+ "begin": "\\s*(<)(?=((?:html-)?script)\\b)",
1524
1530
  "beginCaptures": {
1525
1531
  "1": {
1526
1532
  "name": "punctuation.definition.tag.begin.marko"
1527
1533
  }
1528
1534
  },
1529
- "end": "/>|(?<=</(?:(?:html-)?script)?>)",
1535
+ "end": "/>|(?<=</\\2??>)",
1530
1536
  "endCaptures": {
1531
1537
  "0": {
1532
1538
  "name": "punctuation.definition.tag.end.marko"
@@ -1569,13 +1575,13 @@
1569
1575
  ]
1570
1576
  },
1571
1577
  {
1572
- "begin": "\\s*(<)(?=[#$.0-9@-Z_a-z])",
1578
+ "begin": "\\s*(<)(?=[#$.]|([$0-9@-Z_a-z]+))",
1573
1579
  "beginCaptures": {
1574
1580
  "1": {
1575
1581
  "name": "punctuation.definition.tag.begin.marko"
1576
1582
  }
1577
1583
  },
1578
- "end": "/>|(?<=</[-#$.0-:@-Z_a-z]*>)",
1584
+ "end": "/>|(?<=</\\2??>)",
1579
1585
  "endCaptures": {
1580
1586
  "0": {
1581
1587
  "name": "punctuation.definition.tag.end.marko"
@@ -3902,13 +3902,10 @@
3902
3902
  }
3903
3903
  },
3904
3904
  "contentName": "source.swift",
3905
- "end": "(\\))",
3905
+ "end": "\\)",
3906
3906
  "endCaptures": {
3907
3907
  "0": {
3908
3908
  "name": "punctuation.section.embedded.end.swift"
3909
- },
3910
- "1": {
3911
- "name": "source.swift"
3912
3909
  }
3913
3910
  },
3914
3911
  "name": "meta.embedded.line.swift",
@@ -3946,13 +3943,10 @@
3946
3943
  }
3947
3944
  },
3948
3945
  "contentName": "source.swift",
3949
- "end": "(\\))",
3946
+ "end": "\\)",
3950
3947
  "endCaptures": {
3951
3948
  "0": {
3952
3949
  "name": "punctuation.section.embedded.end.swift"
3953
- },
3954
- "1": {
3955
- "name": "source.swift"
3956
3950
  }
3957
3951
  },
3958
3952
  "name": "meta.embedded.line.swift",
package/index.js CHANGED
@@ -191,7 +191,7 @@ export const grammars = [
191
191
  aliases: [
192
192
  'adoc',
193
193
  ],
194
- byteSize: 83855,
194
+ byteSize: 124122,
195
195
  categories: [
196
196
  'markup',
197
197
  ],
@@ -200,56 +200,74 @@ export const grammars = [
200
200
  'html',
201
201
  'yaml',
202
202
  'csv',
203
- 'c',
203
+ 'css',
204
+ 'ini',
205
+ 'java',
206
+ 'lua',
207
+ 'make',
208
+ 'perl',
209
+ 'r',
210
+ 'ruby',
211
+ 'php',
212
+ 'sql',
213
+ 'vb',
214
+ 'xml',
215
+ 'xsl',
216
+ 'bat',
204
217
  'clojure',
205
218
  'coffee',
219
+ 'c',
206
220
  'cpp',
207
- 'css',
208
- 'csharp',
209
221
  'diff',
210
222
  'docker',
211
- 'elixir',
212
- 'elm',
213
- 'erlang',
223
+ 'git-commit',
224
+ 'git-rebase',
214
225
  'go',
215
226
  'groovy',
216
- 'haskell',
217
- 'java',
227
+ 'pug',
218
228
  'javascript',
219
229
  'json',
220
- 'jsx',
221
- 'julia',
222
- 'kotlin',
230
+ 'jsonc',
223
231
  'less',
224
- 'make',
225
232
  'objective-c',
226
- 'ocaml',
227
- 'perl',
233
+ 'swift',
234
+ 'scss',
235
+ 'raku',
236
+ 'powershell',
228
237
  'python',
229
- 'r',
230
- 'ruby',
238
+ 'julia',
239
+ 'regexp',
231
240
  'rust',
232
- 'sass',
233
241
  'scala',
234
- 'scss',
235
242
  'shellscript',
236
- 'sql',
237
- 'swift',
238
- 'toml',
239
243
  'typescript',
240
- 'xml',
244
+ 'tsx',
245
+ 'csharp',
246
+ 'fsharp',
247
+ 'dart',
248
+ 'handlebars',
249
+ 'markdown',
250
+ 'log',
251
+ 'erlang',
252
+ 'elixir',
253
+ 'latex',
254
+ 'bibtex',
255
+ 'abap',
256
+ 'rst',
257
+ 'haskell',
258
+ 'kotlin',
241
259
  ],
242
260
  funding: [
243
261
  ],
244
- hash: 'VkDXNQyP_tCrb7lDku7pIBEgAouJMexo3fRsoKKmygw',
245
- lastUpdate: '2025-07-14T18:55:18Z',
262
+ hash: 'WbWiZum9RBOdhWMuEwntEcbLWSRnuV8OhSyerEpVODs',
263
+ lastUpdate: '2025-08-12T14:16:08Z',
246
264
  license: 'NOASSERTION',
247
265
  licenseUrl: 'https://raw.githubusercontent.com/asciidoctor/asciidoctor-vscode/master/LICENSE',
248
266
  name: 'asciidoc',
249
267
  scopeName: 'text.asciidoc',
250
- sha: '1a6fcfa53e199360926491f91a54bdf6542622ac',
251
- source: 'https://github.com/asciidoctor/asciidoctor-vscode/blob/1a6fcfa53e199360926491f91a54bdf6542622ac/syntaxes/Asciidoctor.json',
252
- sourceApi: 'https://api.github.com/repos/asciidoctor/asciidoctor-vscode/contents/syntaxes/Asciidoctor.json?ref=1a6fcfa53e199360926491f91a54bdf6542622ac',
268
+ sha: 'cd590636a008cedd949e9bd36c95ca97fbba89d3',
269
+ source: 'https://github.com/asciidoctor/asciidoctor-vscode/blob/cd590636a008cedd949e9bd36c95ca97fbba89d3/syntaxes/asciidoc.tmLanguage.json',
270
+ sourceApi: 'https://api.github.com/repos/asciidoctor/asciidoctor-vscode/contents/syntaxes/asciidoc.tmLanguage.json?ref=cd590636a008cedd949e9bd36c95ca97fbba89d3',
253
271
  },
254
272
  {
255
273
  byteSize: 39351,
@@ -2429,7 +2447,7 @@ export const grammars = [
2429
2447
  sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json?ref=f8bb386a48f799f890d00f217a90f615c9b3866c',
2430
2448
  },
2431
2449
  {
2432
- byteSize: 24425,
2450
+ byteSize: 24516,
2433
2451
  categories: [
2434
2452
  'web',
2435
2453
  'markup',
@@ -2443,15 +2461,15 @@ export const grammars = [
2443
2461
  ],
2444
2462
  funding: [
2445
2463
  ],
2446
- hash: '4Uz8VX1_qfTabbliZRzAh_Hp2U8k-xbqXAzsk5TcvTM',
2447
- lastUpdate: '2025-07-11T16:40:23Z',
2464
+ hash: 'vZmWLup6buuus6mn5_NxYbPmhzL-nbcpNpV7wMjEPOA',
2465
+ lastUpdate: '2025-08-13T18:19:47Z',
2448
2466
  license: 'MIT',
2449
2467
  licenseUrl: 'https://raw.githubusercontent.com/marko-js/language-server/main/LICENSE',
2450
2468
  name: 'marko',
2451
2469
  scopeName: 'text.marko',
2452
- sha: 'ab7e60facddd1fc598e6f0dea3888ed0693605f6',
2453
- source: 'https://github.com/marko-js/language-server/blob/ab7e60facddd1fc598e6f0dea3888ed0693605f6/packages/vscode/syntaxes/marko.tmLanguage.json',
2454
- sourceApi: 'https://api.github.com/repos/marko-js/language-server/contents/packages/vscode/syntaxes/marko.tmLanguage.json?ref=ab7e60facddd1fc598e6f0dea3888ed0693605f6',
2470
+ sha: 'ca1a4b54177d257340c7a453651589ac0df07d1a',
2471
+ source: 'https://github.com/marko-js/language-server/blob/ca1a4b54177d257340c7a453651589ac0df07d1a/packages/vscode/syntaxes/marko.tmLanguage.json',
2472
+ sourceApi: 'https://api.github.com/repos/marko-js/language-server/contents/packages/vscode/syntaxes/marko.tmLanguage.json?ref=ca1a4b54177d257340c7a453651589ac0df07d1a',
2455
2473
  },
2456
2474
  {
2457
2475
  byteSize: 15279,
@@ -3791,7 +3809,7 @@ export const grammars = [
3791
3809
  sourceApi: 'https://api.github.com/repos/sveltejs/language-tools/contents/packages/svelte-vscode/syntaxes/svelte.tmLanguage.src.yaml?ref=d12a9ae276c9f4c6a62964bbdca074424cbab123',
3792
3810
  },
3793
3811
  {
3794
- byteSize: 83501,
3812
+ byteSize: 83441,
3795
3813
  categories: [
3796
3814
  'general',
3797
3815
  ],
@@ -3808,15 +3826,15 @@ export const grammars = [
3808
3826
  url: 'https://ko-fi.com/jtbandes',
3809
3827
  },
3810
3828
  ],
3811
- hash: 'W_dR_NsxzH7zpN5nQdr3wqZ4IZqttFnj5fMJpWubpQg',
3812
- lastUpdate: '2025-07-27T19:48:35Z',
3829
+ hash: '1ZOCjlyfHH2ORuZely-36nAhpe1gqodITnN3RaN_OZQ',
3830
+ lastUpdate: '2025-08-16T04:46:54Z',
3813
3831
  license: 'MIT',
3814
3832
  licenseUrl: 'https://raw.githubusercontent.com/jtbandes/swift-tmlanguage/main/LICENSE.md',
3815
3833
  name: 'swift',
3816
3834
  scopeName: 'source.swift',
3817
- sha: '0897d8939a82ddcf6533e9f318e5942b1265416b',
3818
- source: 'https://github.com/jtbandes/swift-tmlanguage/blob/0897d8939a82ddcf6533e9f318e5942b1265416b/Swift.tmLanguage.yaml',
3819
- sourceApi: 'https://api.github.com/repos/jtbandes/swift-tmlanguage/contents/Swift.tmLanguage.yaml?ref=0897d8939a82ddcf6533e9f318e5942b1265416b',
3835
+ sha: '3c7bb1f58dfff287c6fb963bcf397d32c796cca0',
3836
+ source: 'https://github.com/jtbandes/swift-tmlanguage/blob/3c7bb1f58dfff287c6fb963bcf397d32c796cca0/Swift.tmLanguage.yaml',
3837
+ sourceApi: 'https://api.github.com/repos/jtbandes/swift-tmlanguage/contents/Swift.tmLanguage.yaml?ref=3c7bb1f58dfff287c6fb963bcf397d32c796cca0',
3820
3838
  },
3821
3839
  {
3822
3840
  byteSize: 24776,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.24.3",
4
+ "version": "1.24.4",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",