tm-grammars 1.31.8 → 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 +1 -1
- package/grammars/c3.json +131 -3
- package/index.js +6 -6
- package/package.json +1 -1
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/
|
|
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 |
|
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": "#
|
|
505
|
+
"include": "#contract_expression"
|
|
451
506
|
}
|
|
452
507
|
]
|
|
453
508
|
},
|
|
@@ -509,7 +564,7 @@
|
|
|
509
564
|
"end": "(?=:|\\*>|$)",
|
|
510
565
|
"patterns": [
|
|
511
566
|
{
|
|
512
|
-
"include": "#
|
|
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
|
|
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": "(?<=})",
|
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:
|
|
542
|
+
byteSize: 26270,
|
|
543
543
|
categories: [
|
|
544
544
|
'general',
|
|
545
545
|
],
|
|
546
546
|
displayName: 'C3',
|
|
547
547
|
funding: [
|
|
548
548
|
],
|
|
549
|
-
hash: '
|
|
550
|
-
lastUpdate: '2026-03-
|
|
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: '
|
|
556
|
-
source: 'https://github.com/c3lang/vscode-c3/blob/
|
|
557
|
-
sourceApi: 'https://api.github.com/repos/c3lang/vscode-c3/contents/syntaxes/c3.tmLanguage.json?ref=
|
|
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: [
|