tm-grammars 1.31.7 → 1.31.9

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
@@ -44,7 +44,7 @@ import { grammars } from 'tm-grammars'
44
44
  | `blade` | | [laravel/vs-code-extension](https://github.com/laravel/vs-code-extension/blob/80726f64975dc935d6b925d8230cdc1ea075802a/syntaxes/blade.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/laravel/vs-code-extension/main/LICENSE.md) | | `html-derivative` `html` `xml` `sql` `javascript` `json` `css` | 100.00 kB |
45
45
  | `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/refs/heads/master/LICENSE.md) | | `sdbl` | 32.60 kB |
46
46
  | `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 |
47
- | `c3` | | [c3lang/vscode-c3](https://github.com/c3lang/vscode-c3/blob/2c2f7b68b1ab502a26cf1c9a68969c63d291048b/syntaxes/c3.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/c3lang/vscode-c3/main/LICENSE) | | | 24.37 kB |
47
+ | `c3` | | [c3lang/vscode-c3](https://github.com/c3lang/vscode-c3/blob/4ae9d685ef2f38c52ff1300dc0a44c434f12046a/syntaxes/c3.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/c3lang/vscode-c3/main/LICENSE) | | | 25.65 kB |
48
48
  | `cadence` | `cdc` | [onflow/vscode-cadence](https://github.com/onflow/vscode-cadence/blob/bc7e5d3bb613e01789584283d7911cfd6b616dc4/extension/language/syntaxes/cadence.tmGrammar.json) | [Apache-2.0](https://raw.githubusercontent.com/onflow/vscode-cadence/master/LICENSE) | | | 22.23 kB |
49
49
  | `cairo` | | [starkware-libs/cairo-lang](https://github.com/starkware-libs/cairo-lang/blob/4ea4fe8e167845a3402ae2ea0a8b6004aad18dd5/src/starkware/cairo/lang/ide/vscode-cairo/syntaxes/cairo.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/starkware-libs/cairo-lang/master/LICENSE.txt) | | `python` | 2.66 kB |
50
50
  | `clarity` | | [hirosystems/clarity.tmbundle](https://github.com/hirosystems/clarity.tmbundle/blob/a187c9ccbbfeb91550f138c8d606888a902b7c98/Syntaxes/clarity.JSON-tmLanguage) | [MIT](https://raw.githubusercontent.com/stx-labs/clarity.tmbundle/main/LICENSE) | | | 13.47 kB |
@@ -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 |
package/grammars/c3.json CHANGED
@@ -254,6 +254,61 @@
254
254
  }
255
255
  ]
256
256
  },
257
+ "contract_expression": {
258
+ "patterns": [
259
+ {
260
+ "include": "#comments"
261
+ },
262
+ {
263
+ "include": "#function"
264
+ },
265
+ {
266
+ "include": "#constants"
267
+ },
268
+ {
269
+ "include": "#builtin"
270
+ },
271
+ {
272
+ "include": "#real_literal"
273
+ },
274
+ {
275
+ "include": "#integer_literal"
276
+ },
277
+ {
278
+ "include": "#operators"
279
+ },
280
+ {
281
+ "include": "#keywords"
282
+ },
283
+ {
284
+ "include": "#type"
285
+ },
286
+ {
287
+ "include": "#path"
288
+ },
289
+ {
290
+ "include": "#function_call"
291
+ },
292
+ {
293
+ "include": "#variable"
294
+ },
295
+ {
296
+ "include": "#parens"
297
+ },
298
+ {
299
+ "include": "#brackets"
300
+ },
301
+ {
302
+ "include": "#block"
303
+ },
304
+ {
305
+ "include": "#punctuation"
306
+ },
307
+ {
308
+ "include": "#leftover_at_ident"
309
+ }
310
+ ]
311
+ },
257
312
  "control_statements": {
258
313
  "patterns": [
259
314
  {
@@ -447,7 +502,7 @@
447
502
  "end": "(?=:|\\*>|$)",
448
503
  "patterns": [
449
504
  {
450
- "include": "#expression"
505
+ "include": "#contract_expression"
451
506
  }
452
507
  ]
453
508
  },
@@ -509,7 +564,7 @@
509
564
  "end": "(?=:|\\*>|$)",
510
565
  "patterns": [
511
566
  {
512
- "include": "#expression"
567
+ "include": "#contract_expression"
513
568
  }
514
569
  ]
515
570
  },
@@ -810,7 +865,7 @@
810
865
  "name": "keyword.control.ct.c3"
811
866
  },
812
867
  {
813
- "match": "\\b(?:assert|asm|catch|inline|import|module|interface|try|var|constdef)\\b",
868
+ "match": "\\b(?:assert|asm|catch|inline|import|module|interface|try|var)\\b",
814
869
  "name": "keyword.other.c3"
815
870
  },
816
871
  {
@@ -1834,6 +1889,79 @@
1834
1889
  }
1835
1890
  ]
1836
1891
  },
1892
+ {
1893
+ "begin": "(?=\\bconstdef\\b)",
1894
+ "end": "(?<=})",
1895
+ "patterns": [
1896
+ {
1897
+ "begin": "\\bconstdef\\b",
1898
+ "beginCaptures": {
1899
+ "0": {
1900
+ "name": "keyword.declaration.constdef.c3"
1901
+ }
1902
+ },
1903
+ "end": "(?=\\{)",
1904
+ "name": "meta.constdef.c3",
1905
+ "patterns": [
1906
+ {
1907
+ "include": "#comments"
1908
+ },
1909
+ {
1910
+ "match": "\\b_*[A-Z][0-9A-Z_]*[a-z][0-9A-Z_a-z]*\\b",
1911
+ "name": "entity.name.type.enum.c3"
1912
+ },
1913
+ {
1914
+ "include": "#attribute"
1915
+ }
1916
+ ]
1917
+ },
1918
+ {
1919
+ "begin": "\\{",
1920
+ "beginCaptures": {
1921
+ "0": {
1922
+ "name": "punctuation.section.block.begin.c3"
1923
+ }
1924
+ },
1925
+ "end": "}",
1926
+ "endCaptures": {
1927
+ "0": {
1928
+ "name": "punctuation.section.block.end.c3"
1929
+ }
1930
+ },
1931
+ "name": "meta.constdef.body.c3",
1932
+ "patterns": [
1933
+ {
1934
+ "include": "#comments"
1935
+ },
1936
+ {
1937
+ "begin": "=",
1938
+ "beginCaptures": {
1939
+ "0": {
1940
+ "name": "keyword.operator.assignment.c3"
1941
+ }
1942
+ },
1943
+ "end": "(?=[,}])",
1944
+ "patterns": [
1945
+ {
1946
+ "include": "#expression"
1947
+ }
1948
+ ]
1949
+ },
1950
+ {
1951
+ "include": "#attribute"
1952
+ },
1953
+ {
1954
+ "match": "\\b_*[A-Z][0-9A-Z_]*\\b",
1955
+ "name": "variable.other.constant.c3"
1956
+ },
1957
+ {
1958
+ "match": ",",
1959
+ "name": "punctuation.separator.c3"
1960
+ }
1961
+ ]
1962
+ }
1963
+ ]
1964
+ },
1837
1965
  {
1838
1966
  "begin": "(?=\\binterface\\b)",
1839
1967
  "end": "(?<=})",
@@ -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
@@ -539,22 +539,22 @@ export const grammars = [
539
539
  sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/cpp/syntaxes/c.tmLanguage.json?ref=bd1abe08c38bb5deccf65610f8f3c03d2338d20d',
540
540
  },
541
541
  {
542
- byteSize: 24952,
542
+ byteSize: 26270,
543
543
  categories: [
544
544
  'general',
545
545
  ],
546
546
  displayName: 'C3',
547
547
  funding: [
548
548
  ],
549
- hash: 'fCb17Mqoyyb6IijYNWrscl5S7E8_50OVQscXLGzW0JA',
550
- lastUpdate: '2026-03-09T07:18:55Z',
549
+ hash: '5DeyCqgD3w2sIHCKSTsrmRpe0zuhJR1ak5eRos4zLZ4',
550
+ lastUpdate: '2026-03-16T15:48:54Z',
551
551
  license: 'MIT',
552
552
  licenseUrl: 'https://raw.githubusercontent.com/c3lang/vscode-c3/main/LICENSE',
553
553
  name: 'c3',
554
554
  scopeName: 'source.c3',
555
- sha: '2c2f7b68b1ab502a26cf1c9a68969c63d291048b',
556
- source: 'https://github.com/c3lang/vscode-c3/blob/2c2f7b68b1ab502a26cf1c9a68969c63d291048b/syntaxes/c3.tmLanguage.json',
557
- sourceApi: 'https://api.github.com/repos/c3lang/vscode-c3/contents/syntaxes/c3.tmLanguage.json?ref=2c2f7b68b1ab502a26cf1c9a68969c63d291048b',
555
+ sha: '4ae9d685ef2f38c52ff1300dc0a44c434f12046a',
556
+ source: 'https://github.com/c3lang/vscode-c3/blob/4ae9d685ef2f38c52ff1300dc0a44c434f12046a/syntaxes/c3.tmLanguage.json',
557
+ sourceApi: 'https://api.github.com/repos/c3lang/vscode-c3/contents/syntaxes/c3.tmLanguage.json?ref=4ae9d685ef2f38c52ff1300dc0a44c434f12046a',
558
558
  },
559
559
  {
560
560
  aliases: [
@@ -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.9",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",