tm-grammars 1.10.0 → 1.11.1
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/NOTICE +27 -0
- package/README.md +2 -1
- package/grammars/codeowners.json +40 -0
- package/grammars/typespec.json +268 -15
- package/index.js +15 -4
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -1968,6 +1968,33 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
1968
1968
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1969
1969
|
SOFTWARE.
|
|
1970
1970
|
|
|
1971
|
+
=========================================================================================================
|
|
1972
|
+
Files: codeowners.json
|
|
1973
|
+
License: https://raw.githubusercontent.com/jasonnutter/vscode-codeowners/master/LICENSE.txt
|
|
1974
|
+
SPDX: MIT
|
|
1975
|
+
---------------------------------------------------------------------------------------------------------
|
|
1976
|
+
MIT License
|
|
1977
|
+
|
|
1978
|
+
Copyright (c) 2016 Jason Nutter
|
|
1979
|
+
|
|
1980
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1981
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
1982
|
+
in the Software without restriction, including without limitation the rights
|
|
1983
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1984
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
1985
|
+
furnished to do so, subject to the following conditions:
|
|
1986
|
+
|
|
1987
|
+
The above copyright notice and this permission notice shall be included in all
|
|
1988
|
+
copies or substantial portions of the Software.
|
|
1989
|
+
|
|
1990
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1991
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1992
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1993
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1994
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1995
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1996
|
+
SOFTWARE.
|
|
1997
|
+
|
|
1971
1998
|
=========================================================================================================
|
|
1972
1999
|
Files: codeql.json
|
|
1973
2000
|
License: https://raw.githubusercontent.com/github/vscode-codeql/main/LICENSE.md
|
package/README.md
CHANGED
|
@@ -47,6 +47,7 @@ import { grammars } from 'tm-grammars'
|
|
|
47
47
|
| `clojure` | `clj` | [microsoft/vscode](https://github.com/microsoft/vscode/blob/a1a4c0a63b1ad59e84f54b874744fe35dea9abe1/extensions/clojure/syntaxes/clojure.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/microsoft/vscode/main/LICENSE.txt) | | 6.36 kB |
|
|
48
48
|
| `cmake` | | [twxs/vs.language.cmake](https://github.com/twxs/vs.language.cmake/blob/19b1b8fe2d68d72cf294d0c3c22f0a3fc54f8f6f/syntaxes/CMake.tmLanguage) | [MIT](https://raw.githubusercontent.com/twxs/vs.language.cmake/master/LICENSE) | | 10.00 kB |
|
|
49
49
|
| `cobol` | | [spgennard/vscode_cobol](https://github.com/spgennard/vscode_cobol/blob/e23b4cda2772a4fbc985407167412edcd47f528a/syntaxes/COBOL.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/spgennard/vscode_cobol/main/LICENSE) | `sql` `html` `java` | 38.43 kB |
|
|
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 |
|
|
50
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 |
|
|
51
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 |
|
|
52
53
|
| `common-lisp` | `lisp` | [qingpeng9802/vscode-common-lisp](https://github.com/qingpeng9802/vscode-common-lisp/blob/854e24985d84a809c24cee02afd2932a5bb319cd/syntaxes/commonlisp.tmLanguage.json) | [MIT](https://raw.githubusercontent.com/qingpeng9802/vscode-common-lisp/master/LICENSE) | | 23.43 kB |
|
|
@@ -202,7 +203,7 @@ import { grammars } from 'tm-grammars'
|
|
|
202
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 |
|
|
203
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 |
|
|
204
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 |
|
|
205
|
-
| `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 |
|
|
206
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 |
|
|
207
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 |
|
|
208
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 |
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "CODEOWNERS",
|
|
3
|
+
"name": "codeowners",
|
|
4
|
+
"patterns": [
|
|
5
|
+
{
|
|
6
|
+
"include": "#comment"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"include": "#pattern"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"include": "#owner"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"comment": {
|
|
17
|
+
"patterns": [
|
|
18
|
+
{
|
|
19
|
+
"begin": "^\\s*#",
|
|
20
|
+
"captures": {
|
|
21
|
+
"0": {
|
|
22
|
+
"name": "punctuation.definition.comment.codeowners"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"end": "$",
|
|
26
|
+
"name": "comment.line.codeowners"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"owner": {
|
|
31
|
+
"match": "\\S*@\\S+",
|
|
32
|
+
"name": "storage.type.function.codeowners"
|
|
33
|
+
},
|
|
34
|
+
"pattern": {
|
|
35
|
+
"match": "^\\s*(\\S+)",
|
|
36
|
+
"name": "variable.other.codeowners"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"scopeName": "text.codeowners"
|
|
40
|
+
}
|
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
|
@@ -439,6 +439,17 @@ export const grammars = [
|
|
|
439
439
|
sha: 'e23b4cda2772a4fbc985407167412edcd47f528a',
|
|
440
440
|
source: 'https://github.com/spgennard/vscode_cobol/blob/e23b4cda2772a4fbc985407167412edcd47f528a/syntaxes/COBOL.tmLanguage.json',
|
|
441
441
|
},
|
|
442
|
+
{
|
|
443
|
+
byteSize: 471,
|
|
444
|
+
displayName: 'CODEOWNERS',
|
|
445
|
+
lastUpdate: '2018-12-19T21:50:43Z',
|
|
446
|
+
license: 'MIT',
|
|
447
|
+
licenseUrl: 'https://raw.githubusercontent.com/jasonnutter/vscode-codeowners/master/LICENSE.txt',
|
|
448
|
+
name: 'codeowners',
|
|
449
|
+
scopeName: 'text.codeowners',
|
|
450
|
+
sha: '219dee0ab25c1bfad0b9de84180117e71221a653',
|
|
451
|
+
source: 'https://github.com/jasonnutter/vscode-codeowners/blob/219dee0ab25c1bfad0b9de84180117e71221a653/syntaxes/codeowners.tmLanguage.json',
|
|
452
|
+
},
|
|
442
453
|
{
|
|
443
454
|
aliases: [
|
|
444
455
|
'ql',
|
|
@@ -2923,15 +2934,15 @@ export const grammars = [
|
|
|
2923
2934
|
aliases: [
|
|
2924
2935
|
'tsp',
|
|
2925
2936
|
],
|
|
2926
|
-
byteSize:
|
|
2937
|
+
byteSize: 26790,
|
|
2927
2938
|
displayName: 'TypeSpec',
|
|
2928
|
-
lastUpdate: '2024-
|
|
2939
|
+
lastUpdate: '2024-05-08T20:06:28Z',
|
|
2929
2940
|
license: 'MIT',
|
|
2930
2941
|
licenseUrl: 'https://raw.githubusercontent.com/microsoft/typespec/main/LICENSE',
|
|
2931
2942
|
name: 'typespec',
|
|
2932
2943
|
scopeName: 'source.tsp',
|
|
2933
|
-
sha: '
|
|
2934
|
-
source: 'https://github.com/microsoft/typespec/blob/
|
|
2944
|
+
sha: '7ec17161b78117737660506b424b8a133e477cfc',
|
|
2945
|
+
source: 'https://github.com/microsoft/typespec/blob/7ec17161b78117737660506b424b8a133e477cfc/grammars/typespec.json',
|
|
2935
2946
|
},
|
|
2936
2947
|
{
|
|
2937
2948
|
aliases: [
|