tm-grammars 1.11.0 → 1.11.2
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 +2 -2
- package/grammars/common-lisp.json +7 -7
- package/grammars/typespec.json +268 -15
- package/index.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ import { grammars } from 'tm-grammars'
|
|
|
50
50
|
| `codeowners` | | [jasonnutter/vscode-codeowners](https://github.com/jasonnutter/vscode-codeowners/blob/219dee0ab25c1bfad0b9de84180117e71221a653/syntaxes/codeowners.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/jasonnutter/vscode-codeowners/master/LICENSE.txt) | | 471.00 B |
|
|
51
51
|
| `codeql` | `ql` | [github/vscode-codeql](https://github.com/github/vscode-codeql/blob/47fa163cb9fffce379458962eb391c9ef9082dcb/syntaxes/ql.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/github/vscode-codeql/main/LICENSE.md) | | 32.73 kB |
|
|
52
52
|
| `coffee` | `coffeescript` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/ff58f5083f57b50e6a100ab60454dfb72fe21e80/extensions/coffeescript/syntaxes/coffeescript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `javascript` | 26.34 kB |
|
|
53
|
-
| `common-lisp` | `lisp` | [qingpeng9802/vscode-common-lisp](https://github.com/qingpeng9802/vscode-common-lisp/blob/
|
|
53
|
+
| `common-lisp` | `lisp` | [qingpeng9802/vscode-common-lisp](https://github.com/qingpeng9802/vscode-common-lisp/blob/79d04dc9ca80d98e65c4f28b3d67a24a7829b18f/syntaxes/commonlisp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/qingpeng9802/vscode-common-lisp/master/LICENSE) | | 23.50 kB |
|
|
54
54
|
| `cpp` | `c++` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/6ac83c7c7dda9f27ca1fe9d98675253e010b75d1/extensions/cpp/syntaxes/cpp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | `cpp-macro` `glsl` `sql` | 411.01 kB |
|
|
55
55
|
| `crystal` | | [crystal-lang-tools/vscode-crystal-lang](https://github.com/crystal-lang-tools/vscode-crystal-lang/blob/c920b0931ec5f05b78447dbff31b172c64f1d734/syntaxes/crystal.json) | [MIT](https://raw.githubusercontent.com/crystal-lang-tools/vscode-crystal-lang/master/LICENSE) | `html` `sql` `css` `c` `javascript` `shellscript` | 31.60 kB |
|
|
56
56
|
| `csharp` | `c#` `cs` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/csharp/syntaxes/csharp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 83.23 kB |
|
|
@@ -203,7 +203,7 @@ import { grammars } from 'tm-grammars'
|
|
|
203
203
|
| `turtle` | | [stardog-union/stardog-vsc](https://github.com/stardog-union/stardog-vsc/blob/3f1364b08bdbf4b4d77f123682db7d2b708b2f6e/stardog-rdf-grammars/syntaxes/turtle.tmLanguage.json) | | | 3.50 kB |
|
|
204
204
|
| `twig` | | [mblode/vscode-twig-language-2](https://github.com/mblode/vscode-twig-language-2/blob/82ae07ffe96656181ad8265c1fff008c8d1cdbba/src/syntaxes/twig.tmLanguage) | [MIT](https://raw.githubusercontent.com/mblode/vscode-twig-language-2/master/LICENSE.md) | `css` `javascript` `scss` `php` `python` `ruby` | 20.64 kB |
|
|
205
205
|
| `typescript` | `ts` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/35d97bc7e439fce0f50f42074041ab2d8571b20a/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 177.10 kB |
|
|
206
|
-
| `typespec` | `tsp` | [microsoft/typespec](https://github.com/microsoft/typespec/blob/
|
|
206
|
+
| `typespec` | `tsp` | [microsoft/typespec](https://github.com/microsoft/typespec/blob/7ec17161b78117737660506b424b8a133e477cfc/grammars/typespec.json) | [MIT](https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE) | | 26.16 kB |
|
|
207
207
|
| `typst` | `typ` | [nvarner/typst-lsp](https://github.com/nvarner/typst-lsp/blob/6972d4b9c2cbcb0551e203067f09ec84ca8f9df3/editors/vscode/typst.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/nvarner/typst-lsp/master/LICENSE-MIT.txt) | | 7.98 kB |
|
|
208
208
|
| `v` | | [vlang/vscode-vlang](https://github.com/vlang/vscode-vlang/blob/b1f529602bc6536ad8967373302e151e77179598/syntaxes/v.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/vlang/vscode-vlang/master/LICENSE) | | 12.76 kB |
|
|
209
209
|
| `vala` | | [vala-lang/vala-vscode](https://github.com/vala-lang/vala-vscode/blob/8f825e95648326df2572d0522632251cdff4a43b/syntaxes/vala.YAML-tmLanguage) | [MIT](https://raw.githubusercontent.com/vala-lang/vala-vscode/master/LICENSE) | | 3.14 kB |
|
|
@@ -115,11 +115,11 @@
|
|
|
115
115
|
"constant": {
|
|
116
116
|
"patterns": [
|
|
117
117
|
{
|
|
118
|
-
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:t|single-float-negative-epsilon|single-float-epsilon|short-float-negative-epsilon|short-float-epsilon|pi|\nnil|multiple-values-limit|most-positive-single-float|most-positive-short-float|most-positive-long-float|\nmost-positive-fixnum|most-positive-double-float|most-negative-single-float|most-negative-short-float|\nmost-negative-long-float|most-negative-fixnum|most-negative-double-float|long-float-negative-epsilon|\nlong-float-epsilon|least-positive-single-float|least-positive-short-float|least-positive-normalized-single-float|\nleast-positive-normalized-short-float|least-positive-normalized-long-float|least-positive-normalized-double-float|\nleast-positive-long-float|least-positive-double-float|least-negative-single-float|least-negative-short-float|\nleast-negative-normalized-single-float|least-negative-normalized-short-float|least-negative-normalized-long-float|\nleast-negative-normalized-double-float|least-negative-long-float|least-negative-double-float|lambda-parameters-limit|\nlambda-list-keywords|internal-time-units-per-second|double-float-negative-epsilon|double-float-epsilon|char-code-limit|\ncall-arguments-limit|boole-xor|boole-set|boole-orc2|boole-orc1|boole-nor|boole-nand|boole-ior|boole-eqv|boole-clr|\nboole-c2|boole-c1|boole-andc2|boole-andc1|boole-and|boole-2|boole-1|array-total-size-limit|array-rank-limit|array-dimension-limit)\n(?=(\\s|\\(|\\)))",
|
|
118
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(?:t|single-float-negative-epsilon|single-float-epsilon|short-float-negative-epsilon|short-float-epsilon|pi|\nnil|multiple-values-limit|most-positive-single-float|most-positive-short-float|most-positive-long-float|\nmost-positive-fixnum|most-positive-double-float|most-negative-single-float|most-negative-short-float|\nmost-negative-long-float|most-negative-fixnum|most-negative-double-float|long-float-negative-epsilon|\nlong-float-epsilon|least-positive-single-float|least-positive-short-float|least-positive-normalized-single-float|\nleast-positive-normalized-short-float|least-positive-normalized-long-float|least-positive-normalized-double-float|\nleast-positive-long-float|least-positive-double-float|least-negative-single-float|least-negative-short-float|\nleast-negative-normalized-single-float|least-negative-normalized-short-float|least-negative-normalized-long-float|\nleast-negative-normalized-double-float|least-negative-long-float|least-negative-double-float|lambda-parameters-limit|\nlambda-list-keywords|internal-time-units-per-second|double-float-negative-epsilon|double-float-epsilon|char-code-limit|\ncall-arguments-limit|boole-xor|boole-set|boole-orc2|boole-orc1|boole-nor|boole-nand|boole-ior|boole-eqv|boole-clr|\nboole-c2|boole-c1|boole-andc2|boole-andc1|boole-and|boole-2|boole-1|array-total-size-limit|array-rank-limit|array-dimension-limit)\n(?=(\\s|\\(|\\)))",
|
|
119
119
|
"name": "constant.language.commonlisp"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
|
-
"match": "(?x)\n(?<=^|\\s|\\()\n([+-]?[0-9]+(?:\\/[0-9]+)*|\n[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?|\n(\\#b|\\#B)[01\\/+-]+|(\\#o|\\#O)[0-7\\/+-]+|(\\#x|\\#X)[0-9a-fA-F\\/+-]+|(\\#[0-9]+[rR]?)[0-9a-zA-Z\\/+-]+)\n(?=(\\s|\\)))",
|
|
122
|
+
"match": "(?x)\n(?<=^|\\s|\\(|,@|,\\.|,)\n([+-]?[0-9]+(?:\\/[0-9]+)*|\n[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?|\n(\\#b|\\#B)[01\\/+-]+|(\\#o|\\#O)[0-7\\/+-]+|(\\#x|\\#X)[0-9a-fA-F\\/+-]+|(\\#[0-9]+[rR]?)[0-9a-zA-Z\\/+-]+)\n(?=(\\s|\\)))",
|
|
123
123
|
"name": "constant.numeric.commonlisp"
|
|
124
124
|
},
|
|
125
125
|
{
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"name": "variable.other.constant.dot.commonlisp"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
"match": "(?x)\n(?<=^|\\s|\\()\n([+-]?[0-9]*\\.[0-9]*((e|s|f|d|l|E|S|F|D|L)[+-]?[0-9]+)?|\n[+-]?[0-9]+(\\.[0-9]*)?(e|s|f|d|l|E|S|F|D|L)[+-]?[0-9]+)\n(?=(\\s|\\)))",
|
|
130
|
+
"match": "(?x)\n(?<=^|\\s|\\(|,@|,\\.|,)\n([+-]?[0-9]*\\.[0-9]*((e|s|f|d|l|E|S|F|D|L)[+-]?[0-9]+)?|\n[+-]?[0-9]+(\\.[0-9]*)?(e|s|f|d|l|E|S|F|D|L)[+-]?[0-9]+)\n(?=(\\s|\\)))",
|
|
131
131
|
"name": "constant.numeric.commonlisp"
|
|
132
132
|
}
|
|
133
133
|
]
|
|
@@ -531,11 +531,11 @@
|
|
|
531
531
|
"match": "(?xi)\n(?<=^'|\\s'|\\('|,@'|,\\.'|,')\n(\\S+?)\n(\\:\\:|\\:)\n((\\+[^\\s\\+]+\\+)|(\\*[^\\s\\*]+\\*))\n(?=(\\s|\\(|\\)))"
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
|
-
"match": "(?xi)\n(?<=\\S:|^|\\s|\\()\n(\\+[^\\s\\+]+\\+)\n(?=(\\s|\\(|\\)))",
|
|
534
|
+
"match": "(?xi)\n(?<=\\S:|^|\\s|\\(|,@|,\\.|,)\n(\\+[^\\s\\+]+\\+)\n(?=(\\s|\\(|\\)))",
|
|
535
535
|
"name": "variable.other.constant.earmuffsplus.commonlisp"
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
|
-
"match": "(?xi)\n(?<=\\S:|^|\\s|\\()\n(\\*[^\\s\\*]+\\*)\n(?=(\\s|\\(|\\)))",
|
|
538
|
+
"match": "(?xi)\n(?<=\\S:|^|\\s|\\(|,@|,\\.|,)\n(\\*[^\\s\\*]+\\*)\n(?=(\\s|\\(|\\)))",
|
|
539
539
|
"name": "string.regexp.earmuffsasterisk.commonlisp"
|
|
540
540
|
}
|
|
541
541
|
]
|
|
@@ -551,11 +551,11 @@
|
|
|
551
551
|
"variable": {
|
|
552
552
|
"patterns": [
|
|
553
553
|
{
|
|
554
|
-
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:\\*trace-output\\*|\\*terminal-io\\*|\\*standard-output\\*|\\*standard-input\\*|\\*readtable\\*|\\*read-suppress\\*|\\*read-eval\\*|\n\\*read-default-float-format\\*|\\*read-base\\*|\\*random-state\\*|\\*query-io\\*|\\*print-right-margin\\*|\\*print-readably\\*|\\*print-radix\\*|\\*print-pretty\\*|\n\\*print-pprint-dispatch\\*|\\*print-miser-width\\*|\\*print-lines\\*|\\*print-level\\*|\\*print-length\\*|\\*print-gensym\\*|\\*print-escape\\*|\\*print-circle\\*|\n\\*print-case\\*|\\*print-base\\*|\\*print-array\\*|\\*package\\*|\\*modules\\*|\\*macroexpand-hook\\*|\\*load-verbose\\*|\\*load-truename\\*|\\*load-print\\*|\n\\*load-pathname\\*|\\*gensym-counter\\*|\\*features\\*|\\*error-output\\*|\\*default-pathname-defaults\\*|\\*debugger-hook\\*|\\*debug-io\\*|\\*compile-verbose\\*|\n\\*compile-print\\*|\\*compile-file-truename\\*|\\*compile-file-pathname\\*|\\*break-on-signals\\*)\n(?=(\\s|\\(|\\)))",
|
|
554
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(?:\\*trace-output\\*|\\*terminal-io\\*|\\*standard-output\\*|\\*standard-input\\*|\\*readtable\\*|\\*read-suppress\\*|\\*read-eval\\*|\n\\*read-default-float-format\\*|\\*read-base\\*|\\*random-state\\*|\\*query-io\\*|\\*print-right-margin\\*|\\*print-readably\\*|\\*print-radix\\*|\\*print-pretty\\*|\n\\*print-pprint-dispatch\\*|\\*print-miser-width\\*|\\*print-lines\\*|\\*print-level\\*|\\*print-length\\*|\\*print-gensym\\*|\\*print-escape\\*|\\*print-circle\\*|\n\\*print-case\\*|\\*print-base\\*|\\*print-array\\*|\\*package\\*|\\*modules\\*|\\*macroexpand-hook\\*|\\*load-verbose\\*|\\*load-truename\\*|\\*load-print\\*|\n\\*load-pathname\\*|\\*gensym-counter\\*|\\*features\\*|\\*error-output\\*|\\*default-pathname-defaults\\*|\\*debugger-hook\\*|\\*debug-io\\*|\\*compile-verbose\\*|\n\\*compile-print\\*|\\*compile-file-truename\\*|\\*compile-file-pathname\\*|\\*break-on-signals\\*)\n(?=(\\s|\\(|\\)))",
|
|
555
555
|
"name": "string.regexp.earmuffsasterisk.commonlisp"
|
|
556
556
|
},
|
|
557
557
|
{
|
|
558
|
-
"match": "(?xi)\n(?<=^|\\s|\\()\n(?:\\*\\*\\*|\\*\\*|\\+\\+\\+|\\+\\+|\\/\\/\\/|\\/\\/)\n(?=(\\s|\\(|\\)))",
|
|
558
|
+
"match": "(?xi)\n(?<=^|\\s|\\(|,@|,\\.|,)\n(?:\\*\\*\\*|\\*\\*|\\+\\+\\+|\\+\\+|\\/\\/\\/|\\/\\/)\n(?=(\\s|\\(|\\)))",
|
|
559
559
|
"name": "variable.other.repl.commonlisp"
|
|
560
560
|
}
|
|
561
561
|
]
|
package/grammars/typespec.json
CHANGED
|
@@ -10,29 +10,44 @@
|
|
|
10
10
|
}
|
|
11
11
|
],
|
|
12
12
|
"repository": {
|
|
13
|
+
"alias-id": {
|
|
14
|
+
"begin": "(=)\\s*",
|
|
15
|
+
"beginCaptures": {
|
|
16
|
+
"1": {
|
|
17
|
+
"name": "keyword.operator.assignment.tsp"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"end": "(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
|
|
21
|
+
"name": "meta.alias-id.typespec",
|
|
22
|
+
"patterns": [
|
|
23
|
+
{
|
|
24
|
+
"include": "#expression"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
13
28
|
"alias-statement": {
|
|
14
|
-
"begin": "\\b(alias)\\b",
|
|
29
|
+
"begin": "\\b(alias)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\s*",
|
|
15
30
|
"beginCaptures": {
|
|
16
31
|
"1": {
|
|
17
32
|
"name": "keyword.other.tsp"
|
|
33
|
+
},
|
|
34
|
+
"2": {
|
|
35
|
+
"name": "entity.name.type.tsp"
|
|
18
36
|
}
|
|
19
37
|
},
|
|
20
38
|
"end": "(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
|
|
21
39
|
"name": "meta.alias-statement.typespec",
|
|
22
40
|
"patterns": [
|
|
23
41
|
{
|
|
24
|
-
"include": "#
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"include": "#operator-assignment"
|
|
42
|
+
"include": "#alias-id"
|
|
28
43
|
},
|
|
29
44
|
{
|
|
30
|
-
"include": "#
|
|
45
|
+
"include": "#type-parameters"
|
|
31
46
|
}
|
|
32
47
|
]
|
|
33
48
|
},
|
|
34
49
|
"augment-decorator-statement": {
|
|
35
|
-
"begin": "((@@)\\b[_$[:alpha:]]([_$[:alnum:]]|\\.[_$[:alpha:]])*\\b)",
|
|
50
|
+
"begin": "((@@)\\b[_$[:alpha:]](?:[_$[:alnum:]]|\\.[_$[:alpha:]])*\\b)",
|
|
36
51
|
"beginCaptures": {
|
|
37
52
|
"1": {
|
|
38
53
|
"name": "entity.name.tag.tsp"
|
|
@@ -61,8 +76,61 @@
|
|
|
61
76
|
"match": "\\b(true|false)\\b",
|
|
62
77
|
"name": "constant.language.tsp"
|
|
63
78
|
},
|
|
79
|
+
"callExpression": {
|
|
80
|
+
"begin": "(\\b[_$[:alpha:]](?:[_$[:alnum:]]|\\.[_$[:alpha:]])*\\b)\\s*(\\()",
|
|
81
|
+
"beginCaptures": {
|
|
82
|
+
"1": {
|
|
83
|
+
"name": "entity.name.function.tsp"
|
|
84
|
+
},
|
|
85
|
+
"2": {
|
|
86
|
+
"name": "punctuation.parenthesis.open.tsp"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"end": "\\)",
|
|
90
|
+
"endCaptures": {
|
|
91
|
+
"0": {
|
|
92
|
+
"name": "punctuation.parenthesis.close.tsp"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"name": "meta.callExpression.typespec",
|
|
96
|
+
"patterns": [
|
|
97
|
+
{
|
|
98
|
+
"include": "#token"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"include": "#expression"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"include": "#punctuation-comma"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
"const-statement": {
|
|
109
|
+
"begin": "\\b(const)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)",
|
|
110
|
+
"beginCaptures": {
|
|
111
|
+
"1": {
|
|
112
|
+
"name": "keyword.other.tsp"
|
|
113
|
+
},
|
|
114
|
+
"2": {
|
|
115
|
+
"name": "variable.name.tsp"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"end": "(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
|
|
119
|
+
"name": "meta.const-statement.typespec",
|
|
120
|
+
"patterns": [
|
|
121
|
+
{
|
|
122
|
+
"include": "#type-annotation"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"include": "#operator-assignment"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"include": "#expression"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
64
132
|
"decorator": {
|
|
65
|
-
"begin": "((@)\\b[_$[:alpha:]]([_$[:alnum:]]|\\.[_$[:alpha:]])*\\b)",
|
|
133
|
+
"begin": "((@)\\b[_$[:alpha:]](?:[_$[:alnum:]]|\\.[_$[:alpha:]])*\\b)",
|
|
66
134
|
"beginCaptures": {
|
|
67
135
|
"1": {
|
|
68
136
|
"name": "entity.name.tag.tsp"
|
|
@@ -327,15 +395,27 @@
|
|
|
327
395
|
{
|
|
328
396
|
"include": "#valueof"
|
|
329
397
|
},
|
|
398
|
+
{
|
|
399
|
+
"include": "#typeof"
|
|
400
|
+
},
|
|
330
401
|
{
|
|
331
402
|
"include": "#type-arguments"
|
|
332
403
|
},
|
|
404
|
+
{
|
|
405
|
+
"include": "#object-literal"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"include": "#tuple-literal"
|
|
409
|
+
},
|
|
333
410
|
{
|
|
334
411
|
"include": "#tuple-expression"
|
|
335
412
|
},
|
|
336
413
|
{
|
|
337
414
|
"include": "#model-expression"
|
|
338
415
|
},
|
|
416
|
+
{
|
|
417
|
+
"include": "#callExpression"
|
|
418
|
+
},
|
|
339
419
|
{
|
|
340
420
|
"include": "#identifier-expression"
|
|
341
421
|
}
|
|
@@ -692,6 +772,59 @@
|
|
|
692
772
|
"match": "(?:\\b(?<!\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\b(?!\\$)|\\b(?<!\\$)0(?:b|B)[01][01_]*(n)?\\b(?!\\$)|(?<!\\$)(?:(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)|(?:\\b[0-9][0-9_]*(\\.)[eE][+-]?[0-9][0-9_]*(n)?\\b)|(?:\\B(\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)|(?:\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\b)|(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b)|(?:\\b[0-9][0-9_]*(\\.)(n)?\\B)|(?:\\B(\\.)[0-9][0-9_]*(n)?\\b)|(?:\\b[0-9][0-9_]*(n)?\\b(?!\\.)))(?!\\$))",
|
|
693
773
|
"name": "constant.numeric.tsp"
|
|
694
774
|
},
|
|
775
|
+
"object-literal": {
|
|
776
|
+
"begin": "#\\{",
|
|
777
|
+
"beginCaptures": {
|
|
778
|
+
"0": {
|
|
779
|
+
"name": "punctuation.hashcurlybrace.open.tsp"
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"end": "\\}",
|
|
783
|
+
"endCaptures": {
|
|
784
|
+
"0": {
|
|
785
|
+
"name": "punctuation.curlybrace.close.tsp"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"name": "meta.object-literal.typespec",
|
|
789
|
+
"patterns": [
|
|
790
|
+
{
|
|
791
|
+
"include": "#token"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"include": "#object-literal-property"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"include": "#directive"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"include": "#spread-operator"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
"include": "#punctuation-comma"
|
|
804
|
+
}
|
|
805
|
+
]
|
|
806
|
+
},
|
|
807
|
+
"object-literal-property": {
|
|
808
|
+
"begin": "(?:(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\s*(:))",
|
|
809
|
+
"beginCaptures": {
|
|
810
|
+
"1": {
|
|
811
|
+
"name": "variable.name.tsp"
|
|
812
|
+
},
|
|
813
|
+
"2": {
|
|
814
|
+
"name": "keyword.operator.type.annotation.tsp"
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
"end": "(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
|
|
818
|
+
"name": "meta.object-literal-property.typespec",
|
|
819
|
+
"patterns": [
|
|
820
|
+
{
|
|
821
|
+
"include": "#token"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"include": "#expression"
|
|
825
|
+
}
|
|
826
|
+
]
|
|
827
|
+
},
|
|
695
828
|
"operation-heritage": {
|
|
696
829
|
"begin": "\\b(is)\\b",
|
|
697
830
|
"beginCaptures": {
|
|
@@ -951,6 +1084,56 @@
|
|
|
951
1084
|
"match": ";",
|
|
952
1085
|
"name": "punctuation.terminator.statement.tsp"
|
|
953
1086
|
},
|
|
1087
|
+
"scalar-body": {
|
|
1088
|
+
"begin": "\\{",
|
|
1089
|
+
"beginCaptures": {
|
|
1090
|
+
"0": {
|
|
1091
|
+
"name": "punctuation.curlybrace.open.tsp"
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"end": "\\}",
|
|
1095
|
+
"endCaptures": {
|
|
1096
|
+
"0": {
|
|
1097
|
+
"name": "punctuation.curlybrace.close.tsp"
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"name": "meta.scalar-body.typespec",
|
|
1101
|
+
"patterns": [
|
|
1102
|
+
{
|
|
1103
|
+
"include": "#token"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"include": "#directive"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"include": "#scalar-constructor"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"include": "#punctuation-semicolon"
|
|
1113
|
+
}
|
|
1114
|
+
]
|
|
1115
|
+
},
|
|
1116
|
+
"scalar-constructor": {
|
|
1117
|
+
"begin": "\\b(init)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)",
|
|
1118
|
+
"beginCaptures": {
|
|
1119
|
+
"1": {
|
|
1120
|
+
"name": "keyword.other.tsp"
|
|
1121
|
+
},
|
|
1122
|
+
"2": {
|
|
1123
|
+
"name": "entity.name.function.tsp"
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1126
|
+
"end": "(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
|
|
1127
|
+
"name": "meta.scalar-constructor.typespec",
|
|
1128
|
+
"patterns": [
|
|
1129
|
+
{
|
|
1130
|
+
"include": "#token"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"include": "#operation-parameters"
|
|
1134
|
+
}
|
|
1135
|
+
]
|
|
1136
|
+
},
|
|
954
1137
|
"scalar-extends": {
|
|
955
1138
|
"begin": "\\b(extends)\\b",
|
|
956
1139
|
"beginCaptures": {
|
|
@@ -970,13 +1153,16 @@
|
|
|
970
1153
|
]
|
|
971
1154
|
},
|
|
972
1155
|
"scalar-statement": {
|
|
973
|
-
"begin": "\\b(scalar)\\b",
|
|
1156
|
+
"begin": "\\b(scalar)\\b\\s+(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)",
|
|
974
1157
|
"beginCaptures": {
|
|
975
1158
|
"1": {
|
|
976
1159
|
"name": "keyword.other.tsp"
|
|
1160
|
+
},
|
|
1161
|
+
"2": {
|
|
1162
|
+
"name": "entity.name.type.tsp"
|
|
977
1163
|
}
|
|
978
1164
|
},
|
|
979
|
-
"end": "(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
|
|
1165
|
+
"end": "(?<=\\})|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
|
|
980
1166
|
"name": "meta.scalar-statement.typespec",
|
|
981
1167
|
"patterns": [
|
|
982
1168
|
{
|
|
@@ -989,7 +1175,7 @@
|
|
|
989
1175
|
"include": "#scalar-extends"
|
|
990
1176
|
},
|
|
991
1177
|
{
|
|
992
|
-
"include": "#
|
|
1178
|
+
"include": "#scalar-body"
|
|
993
1179
|
}
|
|
994
1180
|
]
|
|
995
1181
|
},
|
|
@@ -1040,6 +1226,9 @@
|
|
|
1040
1226
|
{
|
|
1041
1227
|
"include": "#alias-statement"
|
|
1042
1228
|
},
|
|
1229
|
+
{
|
|
1230
|
+
"include": "#const-statement"
|
|
1231
|
+
},
|
|
1043
1232
|
{
|
|
1044
1233
|
"include": "#namespace-statement"
|
|
1045
1234
|
},
|
|
@@ -1157,6 +1346,29 @@
|
|
|
1157
1346
|
}
|
|
1158
1347
|
]
|
|
1159
1348
|
},
|
|
1349
|
+
"tuple-literal": {
|
|
1350
|
+
"begin": "#\\[",
|
|
1351
|
+
"beginCaptures": {
|
|
1352
|
+
"0": {
|
|
1353
|
+
"name": "punctuation.hashsquarebracket.open.tsp"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
"end": "\\]",
|
|
1357
|
+
"endCaptures": {
|
|
1358
|
+
"0": {
|
|
1359
|
+
"name": "punctuation.squarebracket.close.tsp"
|
|
1360
|
+
}
|
|
1361
|
+
},
|
|
1362
|
+
"name": "meta.tuple-literal.typespec",
|
|
1363
|
+
"patterns": [
|
|
1364
|
+
{
|
|
1365
|
+
"include": "#expression"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"include": "#punctuation-comma"
|
|
1369
|
+
}
|
|
1370
|
+
]
|
|
1371
|
+
},
|
|
1160
1372
|
"type-annotation": {
|
|
1161
1373
|
"begin": "\\s*(\\??)\\s*(:)",
|
|
1162
1374
|
"beginCaptures": {
|
|
@@ -1175,6 +1387,35 @@
|
|
|
1175
1387
|
}
|
|
1176
1388
|
]
|
|
1177
1389
|
},
|
|
1390
|
+
"type-argument": {
|
|
1391
|
+
"begin": "(?:(\\b[_$[:alpha:]][_$[:alnum:]]*\\b|`(?:[^`\\\\]|\\\\.)*`)\\s*(=))",
|
|
1392
|
+
"beginCaptures": {
|
|
1393
|
+
"1": {
|
|
1394
|
+
"name": "entity.name.type.tsp"
|
|
1395
|
+
},
|
|
1396
|
+
"2": {
|
|
1397
|
+
"name": "keyword.operator.assignment.tsp"
|
|
1398
|
+
}
|
|
1399
|
+
},
|
|
1400
|
+
"end": "=",
|
|
1401
|
+
"endCaptures": {
|
|
1402
|
+
"0": {
|
|
1403
|
+
"name": "keyword.operator.assignment.tsp"
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
"name": "meta.type-argument.typespec",
|
|
1407
|
+
"patterns": [
|
|
1408
|
+
{
|
|
1409
|
+
"include": "#token"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"include": "#expression"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"include": "#punctuation-comma"
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
1178
1419
|
"type-arguments": {
|
|
1179
1420
|
"begin": "<",
|
|
1180
1421
|
"beginCaptures": {
|
|
@@ -1191,10 +1432,7 @@
|
|
|
1191
1432
|
"name": "meta.type-arguments.typespec",
|
|
1192
1433
|
"patterns": [
|
|
1193
1434
|
{
|
|
1194
|
-
"include": "#
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
"include": "#operator-assignment"
|
|
1435
|
+
"include": "#type-argument"
|
|
1198
1436
|
},
|
|
1199
1437
|
{
|
|
1200
1438
|
"include": "#expression"
|
|
@@ -1278,6 +1516,21 @@
|
|
|
1278
1516
|
}
|
|
1279
1517
|
]
|
|
1280
1518
|
},
|
|
1519
|
+
"typeof": {
|
|
1520
|
+
"begin": "\\b(typeof)",
|
|
1521
|
+
"beginCaptures": {
|
|
1522
|
+
"1": {
|
|
1523
|
+
"name": "keyword.other.tsp"
|
|
1524
|
+
}
|
|
1525
|
+
},
|
|
1526
|
+
"end": "(?=>)|(?=,|;|@|\\)|\\}|\\b(?:extern)\\b|\\b(?:namespace|model|op|using|import|enum|alias|union|interface|dec|fn)\\b)",
|
|
1527
|
+
"name": "meta.typeof.typespec",
|
|
1528
|
+
"patterns": [
|
|
1529
|
+
{
|
|
1530
|
+
"include": "#expression"
|
|
1531
|
+
}
|
|
1532
|
+
]
|
|
1533
|
+
},
|
|
1281
1534
|
"union-body": {
|
|
1282
1535
|
"begin": "\\{",
|
|
1283
1536
|
"beginCaptures": {
|
package/index.js
CHANGED
|
@@ -490,19 +490,19 @@ export const grammars = [
|
|
|
490
490
|
aliases: [
|
|
491
491
|
'lisp',
|
|
492
492
|
],
|
|
493
|
-
byteSize:
|
|
493
|
+
byteSize: 24062,
|
|
494
494
|
categories: [
|
|
495
495
|
'general',
|
|
496
496
|
'lisp',
|
|
497
497
|
],
|
|
498
498
|
displayName: 'Common Lisp',
|
|
499
|
-
lastUpdate: '
|
|
499
|
+
lastUpdate: '2024-05-10T18:29:42Z',
|
|
500
500
|
license: 'MIT',
|
|
501
501
|
licenseUrl: 'https://raw.githubusercontent.com/qingpeng9802/vscode-common-lisp/master/LICENSE',
|
|
502
502
|
name: 'common-lisp',
|
|
503
503
|
scopeName: 'source.commonlisp',
|
|
504
|
-
sha: '
|
|
505
|
-
source: 'https://github.com/qingpeng9802/vscode-common-lisp/blob/
|
|
504
|
+
sha: '79d04dc9ca80d98e65c4f28b3d67a24a7829b18f',
|
|
505
|
+
source: 'https://github.com/qingpeng9802/vscode-common-lisp/blob/79d04dc9ca80d98e65c4f28b3d67a24a7829b18f/syntaxes/commonlisp.tmLanguage.json',
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
508
|
aliases: [
|
|
@@ -2934,15 +2934,15 @@ export const grammars = [
|
|
|
2934
2934
|
aliases: [
|
|
2935
2935
|
'tsp',
|
|
2936
2936
|
],
|
|
2937
|
-
byteSize:
|
|
2937
|
+
byteSize: 26790,
|
|
2938
2938
|
displayName: 'TypeSpec',
|
|
2939
|
-
lastUpdate: '2024-
|
|
2939
|
+
lastUpdate: '2024-05-08T20:06:28Z',
|
|
2940
2940
|
license: 'MIT',
|
|
2941
2941
|
licenseUrl: 'https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE',
|
|
2942
2942
|
name: 'typespec',
|
|
2943
2943
|
scopeName: 'source.tsp',
|
|
2944
|
-
sha: '
|
|
2945
|
-
source: 'https://github.com/microsoft/typespec/blob/
|
|
2944
|
+
sha: '7ec17161b78117737660506b424b8a133e477cfc',
|
|
2945
|
+
source: 'https://github.com/microsoft/typespec/blob/7ec17161b78117737660506b424b8a133e477cfc/grammars/typespec.json',
|
|
2946
2946
|
},
|
|
2947
2947
|
{
|
|
2948
2948
|
aliases: [
|