tm-grammars 1.31.7 → 1.31.8

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 CHANGED
@@ -139,7 +139,7 @@ import { grammars } from 'tm-grammars'
139
139
  | `log` | | [emilast/vscode-logfile-highlighter](https://github.com/emilast/vscode-logfile-highlighter/blob/396c8552ff99d0e07142fdd940d75dae212dd28c/syntaxes/log.tmLanguage) | [MIT](https://raw.githubusercontent.com/emilast/vscode-logfile-highlighter/master/LICENSE) | | | 2.52 kB |
140
140
  | `logo` | | [textmate/logo.tmbundle](https://github.com/textmate/logo.tmbundle/blob/3205e987ed2a2aa11accdd55a7d094832441f89c/Syntaxes/Logo.tmLanguage) | | | | 2.95 kB |
141
141
  | `lua` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/c8fdd1650c06321d687ddfd1eff06aae4b616256/extensions/lua/syntaxes/lua.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `c` | 14.47 kB |
142
- | `luau` | | [JohnnyMorganz/Luau.tmLanguage](https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/1887144227f4e4444f1bf74fb978449e28e46cd4/Luau.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md) | | | 13.11 kB |
142
+ | `luau` | | [JohnnyMorganz/Luau.tmLanguage](https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/89f575d4577595889a232c18862b824d13d0c38b/Luau.tmLanguage) | [NOASSERTION](https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md) | | | 14.00 kB |
143
143
  | `make` | `makefile` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/91db8ea85fee30ebb3c7a5e7939aa2a8d79811c5/extensions/make/syntaxes/make.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 8.41 kB |
144
144
  | `markdown` | `md` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6d8ab9737d58fc5eaf07e2ae6553b38183a5de47/extensions/markdown-basics/syntaxes/markdown.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `css` `html` `ini` `java` `lua` `make` `perl` `r` `ruby` `php` `sql` `vb` `xml` `xsl` `yaml` `bat` `clojure` `coffee` `c` `cpp` `diff` `docker` `git-commit` `git-rebase` `go` `groovy` `pug` `javascript` `json` `jsonc` `jsonl` `less` `objective-c` `swift` `scss` `raku` `powershell` `python` `julia` `regexp` `rust` `scala` `shellscript` `typescript` `tsx` `csharp` `fsharp` `dart` `handlebars` `log` `erlang` `elixir` `latex` `bibtex` `abap` `rst` `html-derivative` | 55.03 kB |
145
145
  | `marko` | | [marko-js/language-server](https://github.com/marko-js/language-server/blob/1a79f9b6b7d28bc1942ac6e4b5dd674615380f06/packages/vscode/syntaxes/marko.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/marko-js/language-server/main/LICENSE) | | `css` `less` `scss` `typescript` | 24.02 kB |
@@ -41,6 +41,9 @@
41
41
  {
42
42
  "include": "#standard_library"
43
43
  },
44
+ {
45
+ "include": "#generics-instantiation"
46
+ },
44
47
  {
45
48
  "include": "#identifier"
46
49
  },
@@ -88,24 +91,28 @@
88
91
  "name": "comment.block.luau",
89
92
  "patterns": [
90
93
  {
91
- "begin": "(```luau?)\\s+",
94
+ "begin": "(```luau?)\\s*$",
92
95
  "beginCaptures": {
93
96
  "1": {
94
97
  "name": "comment.luau"
95
98
  }
96
99
  },
97
- "end": "(```)",
98
- "endCaptures": {
99
- "1": {
100
- "name": "comment.luau"
101
- }
102
- },
103
100
  "name": "keyword.operator.other.luau",
104
101
  "patterns": [
105
102
  {
106
103
  "include": "source.luau"
107
104
  }
108
- ]
105
+ ],
106
+ "while": "^(?!\\s*```)"
107
+ },
108
+ {
109
+ "captures": {
110
+ "1": {
111
+ "name": "comment.luau"
112
+ }
113
+ },
114
+ "match": "(```)",
115
+ "name": "keyword.operator.other.luau"
109
116
  },
110
117
  {
111
118
  "include": "#doc_comment_tags"
@@ -277,10 +284,32 @@
277
284
  }
278
285
  ]
279
286
  },
287
+ "generics-instantiation": {
288
+ "begin": "(<<)",
289
+ "beginCaptures": {
290
+ "1": {
291
+ "name": "punctuation.definition.typeparameters.begin.luau"
292
+ }
293
+ },
294
+ "end": "(>>)",
295
+ "endCaptures": {
296
+ "1": {
297
+ "name": "punctuation.definition.typeparameters.end.luau"
298
+ }
299
+ },
300
+ "patterns": [
301
+ {
302
+ "include": "#comment"
303
+ },
304
+ {
305
+ "include": "#type_literal"
306
+ }
307
+ ]
308
+ },
280
309
  "identifier": {
281
310
  "patterns": [
282
311
  {
283
- "match": "\\b([A-Z_a-z][0-9A-Z_a-z]*)\\b(?=\\s*(?:[\"'({]|\\[\\[))",
312
+ "match": "\\b([A-Z_a-z][0-9A-Z_a-z]*)\\b(?=\\s*(?:<<|[\"'({]|\\[\\[))",
284
313
  "name": "entity.name.function.luau"
285
314
  },
286
315
  {
@@ -591,7 +620,7 @@
591
620
  ]
592
621
  },
593
622
  "type-alias-declaration": {
594
- "begin": "^\\b(?:(export)\\s+)?(type)\\b",
623
+ "begin": "(?<![^.]\\.|:)\\b(?:(export)\\s+)?(type)\\b(?=\\s+(?!function\\b)[A-Z_a-z][0-9A-Z_a-z]*)",
595
624
  "beginCaptures": {
596
625
  "1": {
597
626
  "name": "storage.modifier.visibility.luau"
@@ -600,7 +629,7 @@
600
629
  "name": "storage.type.luau"
601
630
  }
602
631
  },
603
- "end": "(?=\\s*$)|(?=\\s*;)",
632
+ "end": "(?=[]),}](?!\\s*[\\&|]))|(?=\\s*;)|(?=\\s*\\b(?:break|continue|do|else|elseif|end|for|function|if|in|local|repeat|return|then|until|while)\\b)|(?=^\\s*$)|(?=^\\s*(?:@|\\b(?:export\\s+)?type\\b))|(?=^\\s*[A-Z_a-z][0-9A-Z_a-z]*(?:\\.[A-Z_a-z][0-9A-Z_a-z]*)*\\s*(?:(?:[-%*+/^]|\\.\\.)?=(?!=)|[(:\\[]))",
604
633
  "patterns": [
605
634
  {
606
635
  "include": "#type_literal"
@@ -612,7 +641,7 @@
612
641
  ]
613
642
  },
614
643
  "type-function": {
615
- "begin": "^\\b(?:(export)\\s+)?(type)\\s+(function)\\b",
644
+ "begin": "(?<![^.]\\.|:)\\b(?:(export)\\s+)?(type)\\s+(function)\\b",
616
645
  "beginCaptures": {
617
646
  "1": {
618
647
  "name": "storage.modifier.visibility.luau"
@@ -686,7 +715,7 @@
686
715
  ]
687
716
  },
688
717
  "type_annotation": {
689
- "begin": ":(?!\\b([A-Z_a-z][0-9A-Z_a-z]*)\\b(?=\\s*(?:[\"'({]|\\[\\[)))",
718
+ "begin": ":(?!\\b([A-Z_a-z][0-9A-Z_a-z]*)\\b(?=\\s*(?:<<|[\"'({]|\\[\\[)))",
690
719
  "end": "(?<=\\))(?!\\s*->)|[;=]|$|(?=\\breturn\\b)|(?=\\bend\\b)",
691
720
  "patterns": [
692
721
  {
@@ -704,7 +733,7 @@
704
733
  "name": "keyword.operator.typecast.luau"
705
734
  }
706
735
  },
707
- "end": "(?=^|[-\\])+,:;>?}](?!\\s*[\\&|])|$|\\b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|in|continue)\\b)",
736
+ "end": "(?=[]),}](?!\\s*[\\&|]))|(?=\\s*;)|(?=\\s*\\b(?:break|continue|do|else|elseif|end|for|function|if|in|local|repeat|return|then|until|while)\\b)|(?=^\\s*$)|(?=^\\s*(?:@|\\b(?:export\\s+)?type\\b))|(?=^\\s*[A-Z_a-z][0-9A-Z_a-z]*(?:\\.[A-Z_a-z][0-9A-Z_a-z]*)*\\s*(?:(?:[-%*+/^]|\\.\\.)?=(?!=)|[(:\\[]))",
708
737
  "patterns": [
709
738
  {
710
739
  "include": "#type_literal"
package/index.js CHANGED
@@ -2467,19 +2467,19 @@ export const grammars = [
2467
2467
  sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/lua/syntaxes/lua.tmLanguage.json?ref=c8fdd1650c06321d687ddfd1eff06aae4b616256',
2468
2468
  },
2469
2469
  {
2470
- byteSize: 13420,
2470
+ byteSize: 14334,
2471
2471
  displayName: 'Luau',
2472
2472
  funding: [
2473
2473
  ],
2474
- hash: 'fcoc2SJIPcgfpzJHpvOdsz8oJCv1OVBZh6g_OOX-UX4',
2475
- lastUpdate: '2026-01-06T21:37:04Z',
2474
+ hash: 'wRSDb7Qt5UyV2I7KWEXefbZfNcmFVtHyppnZ7t09w4s',
2475
+ lastUpdate: '2026-03-14T19:02:06Z',
2476
2476
  license: 'NOASSERTION',
2477
2477
  licenseUrl: 'https://raw.githubusercontent.com/JohnnyMorganz/Luau.tmLanguage/main/LICENSE.md',
2478
2478
  name: 'luau',
2479
2479
  scopeName: 'source.luau',
2480
- sha: '1887144227f4e4444f1bf74fb978449e28e46cd4',
2481
- source: 'https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/1887144227f4e4444f1bf74fb978449e28e46cd4/Luau.tmLanguage',
2482
- sourceApi: 'https://api.github.com/repos/JohnnyMorganz/Luau.tmLanguage/contents/Luau.tmLanguage?ref=1887144227f4e4444f1bf74fb978449e28e46cd4',
2480
+ sha: '89f575d4577595889a232c18862b824d13d0c38b',
2481
+ source: 'https://github.com/JohnnyMorganz/Luau.tmLanguage/blob/89f575d4577595889a232c18862b824d13d0c38b/Luau.tmLanguage',
2482
+ sourceApi: 'https://api.github.com/repos/JohnnyMorganz/Luau.tmLanguage/contents/Luau.tmLanguage?ref=89f575d4577595889a232c18862b824d13d0c38b',
2483
2483
  },
2484
2484
  {
2485
2485
  aliases: [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.31.7",
4
+ "version": "1.31.8",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",