tm-grammars 1.31.8 → 1.31.10

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 |
@@ -127,7 +127,7 @@ import { grammars } from 'tm-grammars'
127
127
  | `jssm` | `fsl` | [StoneCypher/sublime-jssm](https://github.com/StoneCypher/sublime-jssm/blob/2be02a59d284229bbbfb3dc6c2bdcec9b2c263ef/jssm.tmLanguage) | [MIT](https://raw.githubusercontent.com/StoneCypher/sublime-jssm/master/LICENSE) | | | 2.08 kB |
128
128
  | `jsx` | | [microsoft/vscode](https://github.com/microsoft/vscode/blob/210541906e5a96ab39f9c753f921b1bd35f4138b/extensions/javascript/syntaxes/JavaScriptReact.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | | 158.51 kB |
129
129
  | `julia` | `jl` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/609f17a76734f092792a33c891af40bbcaea0c64/extensions/julia/syntaxes/julia.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | `cpp` `python` `javascript` `r` `sql` | 28.25 kB |
130
- | `just` | | [nefrob/vscode-just](https://github.com/nefrob/vscode-just/blob/c0a00dba51884e5887783c48dddf585dead998c6/syntaxes/just.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nefrob/vscode-just/main/LICENSE) | | `shellscript` `javascript` `typescript` `perl` `python` `ruby` | 9.90 kB |
130
+ | `just` | | [nefrob/vscode-just](https://github.com/nefrob/vscode-just/blob/f71d9d5591d6293c583ec7c119c42e6f6dfe6c51/syntaxes/just.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nefrob/vscode-just/main/LICENSE) | | `shellscript` `javascript` `typescript` `perl` `python` `ruby` | 9.89 kB |
131
131
  | `kdl` | | [kdl-org/vscode-kdl](https://github.com/kdl-org/vscode-kdl/blob/b986286d526d3dba7f5121956a52ce300c3418f0/syntaxes/kdl.tmLanguage.json) | [Apache-2.0](https://raw.githubusercontent.com/kdl-org/vscode-kdl/main/LICENSE) | [GitHub Sponsors: **@zkat**](https://github.com/sponsors/zkat) | | 3.34 kB |
132
132
  | `kotlin` | `kt` `kts` | [fwcd/vscode-kotlin](https://github.com/fwcd/vscode-kotlin/blob/626e20d5c51a4379c4c0ee293aa89e58b5232aec/syntaxes/kotlin.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/fwcd/vscode-kotlin/main/LICENSE) | | | 8.19 kB |
133
133
  | `kusto` | `kql` | [rosshamish/kuskus](https://github.com/rosshamish/kuskus/blob/2a5d25aa9e1680b90e77b2477d710d11af8fcd88/kusto-syntax-highlighting/syntaxes/kusto.tmLanguage.json) | | | | 14.28 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": "(?<=})",
@@ -181,7 +181,7 @@
181
181
  }
182
182
  },
183
183
  "contentName": "source.js",
184
- "end": "(?<=^\\S+)",
184
+ "end": "(?=^\\S)",
185
185
  "patterns": [
186
186
  {
187
187
  "include": "source.js"
@@ -196,7 +196,7 @@
196
196
  }
197
197
  },
198
198
  "contentName": "source.ts",
199
- "end": "(?<=^\\S+)",
199
+ "end": "(?=^\\S)",
200
200
  "patterns": [
201
201
  {
202
202
  "include": "source.ts"
@@ -211,7 +211,7 @@
211
211
  }
212
212
  },
213
213
  "contentName": "source.perl",
214
- "end": "(?<=^\\S+)",
214
+ "end": "(?=^\\S)",
215
215
  "patterns": [
216
216
  {
217
217
  "include": "source.perl"
@@ -226,7 +226,7 @@
226
226
  }
227
227
  },
228
228
  "contentName": "source.python",
229
- "end": "(?<=^\\S+)",
229
+ "end": "(?=^\\S)",
230
230
  "patterns": [
231
231
  {
232
232
  "include": "source.python"
@@ -241,7 +241,7 @@
241
241
  }
242
242
  },
243
243
  "contentName": "source.ruby",
244
- "end": "(?<=^\\S+)",
244
+ "end": "(?=^\\S)",
245
245
  "patterns": [
246
246
  {
247
247
  "include": "source.ruby"
@@ -256,7 +256,7 @@
256
256
  }
257
257
  },
258
258
  "contentName": "source.shell",
259
- "end": "(?<=^\\S+)",
259
+ "end": "(?=^\\S)",
260
260
  "patterns": [
261
261
  {
262
262
  "include": "source.shell"
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: [
@@ -2216,7 +2216,7 @@ export const grammars = [
2216
2216
  sourceApi: 'https://api.github.com/repos/microsoft/vscode/contents/extensions/julia/syntaxes/julia.tmLanguage.json?ref=609f17a76734f092792a33c891af40bbcaea0c64',
2217
2217
  },
2218
2218
  {
2219
- byteSize: 10138,
2219
+ byteSize: 10126,
2220
2220
  displayName: 'Just',
2221
2221
  embedded: [
2222
2222
  'shellscript',
@@ -2228,15 +2228,15 @@ export const grammars = [
2228
2228
  ],
2229
2229
  funding: [
2230
2230
  ],
2231
- hash: '0bv6CQN7ORxjgt6EPrIYmGl0Z7Po_B_cRef3rSV6oeQ',
2232
- lastUpdate: '2026-02-01T19:45:11Z',
2231
+ hash: 'IKkLJPOalornx6XgQoXm73smgG9aVR6HpYbPPOj7Hn8',
2232
+ lastUpdate: '2026-03-22T20:32:03Z',
2233
2233
  license: 'MIT',
2234
2234
  licenseUrl: 'https://raw.githubusercontent.com/nefrob/vscode-just/main/LICENSE',
2235
2235
  name: 'just',
2236
2236
  scopeName: 'source.just',
2237
- sha: 'c0a00dba51884e5887783c48dddf585dead998c6',
2238
- source: 'https://github.com/nefrob/vscode-just/blob/c0a00dba51884e5887783c48dddf585dead998c6/syntaxes/just.tmLanguage.json',
2239
- sourceApi: 'https://api.github.com/repos/nefrob/vscode-just/contents/syntaxes/just.tmLanguage.json?ref=c0a00dba51884e5887783c48dddf585dead998c6',
2237
+ sha: 'f71d9d5591d6293c583ec7c119c42e6f6dfe6c51',
2238
+ source: 'https://github.com/nefrob/vscode-just/blob/f71d9d5591d6293c583ec7c119c42e6f6dfe6c51/syntaxes/just.tmLanguage.json',
2239
+ sourceApi: 'https://api.github.com/repos/nefrob/vscode-just/contents/syntaxes/just.tmLanguage.json?ref=f71d9d5591d6293c583ec7c119c42e6f6dfe6c51',
2240
2240
  },
2241
2241
  {
2242
2242
  byteSize: 3424,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tm-grammars",
3
3
  "type": "module",
4
- "version": "1.31.8",
4
+ "version": "1.31.10",
5
5
  "description": "Collecton of TextMate grammars in JSON",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",