tm-grammars 0.0.0
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/LICENSE +22 -0
- package/NOTICE +6565 -0
- package/README.md +211 -0
- package/grammars/abap.json +380 -0
- package/grammars/actionscript-3.json +951 -0
- package/grammars/ada.json +3874 -0
- package/grammars/apache.json +562 -0
- package/grammars/apex.json +3203 -0
- package/grammars/apl.json +1479 -0
- package/grammars/applescript.json +1406 -0
- package/grammars/ara.json +428 -0
- package/grammars/asm.json +1741 -0
- package/grammars/astro.json +776 -0
- package/grammars/awk.json +388 -0
- package/grammars/ballerina.json +3768 -0
- package/grammars/bat.json +783 -0
- package/grammars/beancount.json +831 -0
- package/grammars/berry.json +172 -0
- package/grammars/bibtex.json +315 -0
- package/grammars/bicep.json +239 -0
- package/grammars/blade.json +3870 -0
- package/grammars/c.json +3552 -0
- package/grammars/cadence.json +738 -0
- package/grammars/clarity.json +877 -0
- package/grammars/clojure.json +426 -0
- package/grammars/cmake.json +143 -0
- package/grammars/cobol.json +1124 -0
- package/grammars/codeql.json +1540 -0
- package/grammars/coffee.json +1311 -0
- package/grammars/cpp-macro.json +9498 -0
- package/grammars/cpp.json +16635 -0
- package/grammars/crystal.json +1866 -0
- package/grammars/csharp.json +5722 -0
- package/grammars/css.json +1860 -0
- package/grammars/csv.json +46 -0
- package/grammars/cue.json +1128 -0
- package/grammars/cypher.json +353 -0
- package/grammars/d.json +3185 -0
- package/grammars/dart.json +522 -0
- package/grammars/dax.json +185 -0
- package/grammars/diff.json +155 -0
- package/grammars/docker.json +97 -0
- package/grammars/dream-maker.json +640 -0
- package/grammars/elixir.json +1014 -0
- package/grammars/elm.json +751 -0
- package/grammars/erb.json +156 -0
- package/grammars/erlang.json +1757 -0
- package/grammars/fish.json +189 -0
- package/grammars/fsharp.json +1831 -0
- package/grammars/gdresource.json +290 -0
- package/grammars/gdscript.json +969 -0
- package/grammars/gdshader.json +405 -0
- package/grammars/gherkin.json +133 -0
- package/grammars/git-commit.json +85 -0
- package/grammars/git-rebase.json +56 -0
- package/grammars/glimmer-js.json +98 -0
- package/grammars/glimmer-ts.json +98 -0
- package/grammars/glsl.json +57 -0
- package/grammars/gnuplot.json +892 -0
- package/grammars/go.json +1012 -0
- package/grammars/graphql.json +1295 -0
- package/grammars/groovy.json +1378 -0
- package/grammars/hack.json +2650 -0
- package/grammars/haml.json +598 -0
- package/grammars/handlebars.json +848 -0
- package/grammars/haskell.json +2431 -0
- package/grammars/hcl.json +787 -0
- package/grammars/hjson.json +821 -0
- package/grammars/hlsl.json +212 -0
- package/grammars/html.json +93 -0
- package/grammars/imba.json +2696 -0
- package/grammars/ini.json +108 -0
- package/grammars/java.json +1885 -0
- package/grammars/javascript.json +5984 -0
- package/grammars/jinja-html.json +16 -0
- package/grammars/jinja.json +345 -0
- package/grammars/jison.json +715 -0
- package/grammars/jsdoc.json +21 -0
- package/grammars/json.json +208 -0
- package/grammars/json5.json +244 -0
- package/grammars/jsonc.json +208 -0
- package/grammars/jsonl.json +208 -0
- package/grammars/jsonnet.json +211 -0
- package/grammars/jssm.json +159 -0
- package/grammars/jsx.json +5984 -0
- package/grammars/julia.json +1061 -0
- package/grammars/kotlin.json +580 -0
- package/grammars/kusto.json +687 -0
- package/grammars/latex.json +2395 -0
- package/grammars/less.json +5012 -0
- package/grammars/liquid.json +990 -0
- package/grammars/lisp.json +121 -0
- package/grammars/logo.json +55 -0
- package/grammars/lua.json +956 -0
- package/grammars/make.json +629 -0
- package/grammars/markdown.json +3066 -0
- package/grammars/marko.json +1344 -0
- package/grammars/matlab.json +1131 -0
- package/grammars/mdc.json +571 -0
- package/grammars/mdx.json +5629 -0
- package/grammars/mermaid.json +1382 -0
- package/grammars/mojo.json +4153 -0
- package/grammars/narrat.json +227 -0
- package/grammars/nextflow.json +298 -0
- package/grammars/nginx.json +2121 -0
- package/grammars/nim.json +1522 -0
- package/grammars/nix.json +1200 -0
- package/grammars/nushell.json +1047 -0
- package/grammars/objective-c.json +3750 -0
- package/grammars/objective-cpp.json +7242 -0
- package/grammars/ocaml.json +2967 -0
- package/grammars/pascal.json +154 -0
- package/grammars/perl.json +2971 -0
- package/grammars/php.json +4024 -0
- package/grammars/plsql.json +241 -0
- package/grammars/postcss.json +377 -0
- package/grammars/powerquery.json +349 -0
- package/grammars/powershell.json +1024 -0
- package/grammars/prisma.json +443 -0
- package/grammars/prolog.json +298 -0
- package/grammars/proto.json +507 -0
- package/grammars/pug.json +1033 -0
- package/grammars/puppet.json +777 -0
- package/grammars/purescript.json +871 -0
- package/grammars/python.json +4208 -0
- package/grammars/r.json +637 -0
- package/grammars/raku.json +310 -0
- package/grammars/razor.json +1813 -0
- package/grammars/reg.json +136 -0
- package/grammars/rel.json +200 -0
- package/grammars/riscv.json +298 -0
- package/grammars/rst.json +734 -0
- package/grammars/ruby.json +2769 -0
- package/grammars/rust.json +1171 -0
- package/grammars/sas.json +302 -0
- package/grammars/sass.json +618 -0
- package/grammars/scala.json +1313 -0
- package/grammars/scheme.json +384 -0
- package/grammars/scss.json +1874 -0
- package/grammars/shaderlab.json +199 -0
- package/grammars/shellscript.json +2025 -0
- package/grammars/shellsession.json +33 -0
- package/grammars/smalltalk.json +235 -0
- package/grammars/solidity.json +1210 -0
- package/grammars/sparql.json +45 -0
- package/grammars/splunk.json +91 -0
- package/grammars/sql.json +631 -0
- package/grammars/ssh-config.json +88 -0
- package/grammars/stata.json +3050 -0
- package/grammars/stylus.json +1208 -0
- package/grammars/svelte.json +1171 -0
- package/grammars/swift.json +4203 -0
- package/grammars/system-verilog.json +1063 -0
- package/grammars/tasl.json +292 -0
- package/grammars/tcl.json +291 -0
- package/grammars/tex.json +281 -0
- package/grammars/toml.json +431 -0
- package/grammars/tsx.json +5984 -0
- package/grammars/turtle.json +261 -0
- package/grammars/twig.json +1394 -0
- package/grammars/typescript.json +5735 -0
- package/grammars/v.json +1001 -0
- package/grammars/vb.json +232 -0
- package/grammars/verilog.json +305 -0
- package/grammars/vhdl.json +1484 -0
- package/grammars/viml.json +445 -0
- package/grammars/vue-html.json +559 -0
- package/grammars/vue.json +1237 -0
- package/grammars/vyper.json +5415 -0
- package/grammars/wasm.json +831 -0
- package/grammars/wenyan.json +129 -0
- package/grammars/wgsl.json +391 -0
- package/grammars/wolfram.json +2370 -0
- package/grammars/xml.json +382 -0
- package/grammars/xsl.json +89 -0
- package/grammars/yaml.json +616 -0
- package/grammars/zenscript.json +257 -0
- package/grammars/zig.json +312 -0
- package/index.d.ts +18 -0
- package/index.js +2165 -0
- package/package.json +46 -0
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Tasl",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"tasl"
|
|
5
|
+
],
|
|
6
|
+
"name": "tasl",
|
|
7
|
+
"patterns": [
|
|
8
|
+
{
|
|
9
|
+
"include": "#comment"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"include": "#namespace"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"include": "#type"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"include": "#class"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"include": "#edge"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"repository": {
|
|
25
|
+
"class": {
|
|
26
|
+
"begin": "(?:^\\s*)(class)\\b",
|
|
27
|
+
"beginCaptures": {
|
|
28
|
+
"1": {
|
|
29
|
+
"name": "keyword.control.tasl.class"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"end": "$",
|
|
33
|
+
"patterns": [
|
|
34
|
+
{
|
|
35
|
+
"include": "#key"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"include": "#export"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"include": "#expression"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"comment": {
|
|
46
|
+
"captures": {
|
|
47
|
+
"1": {
|
|
48
|
+
"name": "punctuation.definition.comment.tasl"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"match": "(#).*$",
|
|
52
|
+
"name": "comment.line.number-sign.tasl"
|
|
53
|
+
},
|
|
54
|
+
"component": {
|
|
55
|
+
"begin": "->",
|
|
56
|
+
"beginCaptures": {
|
|
57
|
+
"0": {
|
|
58
|
+
"name": "punctuation.separator.tasl.component"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"end": "$",
|
|
62
|
+
"patterns": [
|
|
63
|
+
{
|
|
64
|
+
"include": "#expression"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"coproduct": {
|
|
69
|
+
"begin": "\\[",
|
|
70
|
+
"beginCaptures": {
|
|
71
|
+
"0": {
|
|
72
|
+
"name": "punctuation.definition.block.tasl.coproduct"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"end": "\\]",
|
|
76
|
+
"endCaptures": {
|
|
77
|
+
"0": {
|
|
78
|
+
"name": "punctuation.definition.block.tasl.coproduct"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"patterns": [
|
|
82
|
+
{
|
|
83
|
+
"include": "#comment"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"include": "#term"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"include": "#option"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"datatype": {
|
|
94
|
+
"match": "[a-zA-Z][a-zA-Z0-9]*:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})+",
|
|
95
|
+
"name": "string.regexp"
|
|
96
|
+
},
|
|
97
|
+
"edge": {
|
|
98
|
+
"begin": "(?:^\\s*)(edge)\\b",
|
|
99
|
+
"beginCaptures": {
|
|
100
|
+
"1": {
|
|
101
|
+
"name": "keyword.control.tasl.edge"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"end": "$",
|
|
105
|
+
"patterns": [
|
|
106
|
+
{
|
|
107
|
+
"include": "#key"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"include": "#export"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"match": "=/",
|
|
114
|
+
"name": "punctuation.separator.tasl.edge.source"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"match": "/=>",
|
|
118
|
+
"name": "punctuation.separator.tasl.edge.target"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"match": "=>",
|
|
122
|
+
"name": "punctuation.separator.tasl.edge"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"include": "#expression"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"export": {
|
|
130
|
+
"match": "::",
|
|
131
|
+
"name": "keyword.operator.tasl.export"
|
|
132
|
+
},
|
|
133
|
+
"expression": {
|
|
134
|
+
"patterns": [
|
|
135
|
+
{
|
|
136
|
+
"include": "#literal"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"include": "#uri"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"include": "#product"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"include": "#coproduct"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"include": "#reference"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"include": "#optional"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"include": "#identifier"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
"identifier": {
|
|
159
|
+
"captures": {
|
|
160
|
+
"1": {
|
|
161
|
+
"name": "variable"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"match": "([a-zA-Z][a-zA-Z0-9]*)\\b"
|
|
165
|
+
},
|
|
166
|
+
"key": {
|
|
167
|
+
"match": "[a-zA-Z][a-zA-Z0-9]*:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})+",
|
|
168
|
+
"name": "markup.bold entity.name.class"
|
|
169
|
+
},
|
|
170
|
+
"literal": {
|
|
171
|
+
"patterns": [
|
|
172
|
+
{
|
|
173
|
+
"include": "#datatype"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"namespace": {
|
|
178
|
+
"captures": {
|
|
179
|
+
"1": {
|
|
180
|
+
"name": "keyword.control.tasl.namespace"
|
|
181
|
+
},
|
|
182
|
+
"2": {
|
|
183
|
+
"patterns": [
|
|
184
|
+
{
|
|
185
|
+
"include": "#namespaceURI"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"match": "[a-zA-Z][a-zA-Z0-9]*\\b",
|
|
189
|
+
"name": "entity.name"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"match": "(?:^\\s*)(namespace)\\b(.*)"
|
|
195
|
+
},
|
|
196
|
+
"namespaceURI": {
|
|
197
|
+
"match": "[a-z]+:[a-zA-Z0-9-._~:\\/?#\\[\\]@!$&'()*+,;%=]+",
|
|
198
|
+
"name": "markup.underline.link"
|
|
199
|
+
},
|
|
200
|
+
"option": {
|
|
201
|
+
"begin": "<-",
|
|
202
|
+
"beginCaptures": {
|
|
203
|
+
"0": {
|
|
204
|
+
"name": "punctuation.separator.tasl.option"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"end": "$",
|
|
208
|
+
"patterns": [
|
|
209
|
+
{
|
|
210
|
+
"include": "#expression"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"optional": {
|
|
215
|
+
"begin": "\\?",
|
|
216
|
+
"beginCaptures": {
|
|
217
|
+
"0": {
|
|
218
|
+
"name": "keyword.operator"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"end": "$",
|
|
222
|
+
"patterns": [
|
|
223
|
+
{
|
|
224
|
+
"include": "#expression"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
"product": {
|
|
229
|
+
"begin": "{",
|
|
230
|
+
"beginCaptures": {
|
|
231
|
+
"0": {
|
|
232
|
+
"name": "punctuation.definition.block.tasl.product"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"end": "}",
|
|
236
|
+
"endCaptures": {
|
|
237
|
+
"0": {
|
|
238
|
+
"name": "punctuation.definition.block.tasl.product"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"patterns": [
|
|
242
|
+
{
|
|
243
|
+
"include": "#comment"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"include": "#term"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"include": "#component"
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
"reference": {
|
|
254
|
+
"captures": {
|
|
255
|
+
"1": {
|
|
256
|
+
"name": "markup.bold keyword.operator"
|
|
257
|
+
},
|
|
258
|
+
"2": {
|
|
259
|
+
"patterns": [
|
|
260
|
+
{
|
|
261
|
+
"include": "#key"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"match": "(\\*)\\s*(.*)"
|
|
267
|
+
},
|
|
268
|
+
"term": {
|
|
269
|
+
"match": "[a-zA-Z][a-zA-Z0-9]*:(?:[A-Za-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9A-Fa-f]{2})+",
|
|
270
|
+
"name": "entity.other.tasl.key"
|
|
271
|
+
},
|
|
272
|
+
"type": {
|
|
273
|
+
"begin": "(?:^\\s*)(type)\\b",
|
|
274
|
+
"beginCaptures": {
|
|
275
|
+
"1": {
|
|
276
|
+
"name": "keyword.control.tasl.type"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"end": "$",
|
|
280
|
+
"patterns": [
|
|
281
|
+
{
|
|
282
|
+
"include": "#expression"
|
|
283
|
+
}
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"uri": {
|
|
287
|
+
"match": "<>",
|
|
288
|
+
"name": "variable.other.constant"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"scopeName": "source.tasl"
|
|
292
|
+
}
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
{
|
|
2
|
+
"displayName": "Tcl",
|
|
3
|
+
"fileTypes": [
|
|
4
|
+
"tcl"
|
|
5
|
+
],
|
|
6
|
+
"foldingStartMarker": "\\{\\s*$",
|
|
7
|
+
"foldingStopMarker": "^\\s*\\}",
|
|
8
|
+
"name": "tcl",
|
|
9
|
+
"patterns": [
|
|
10
|
+
{
|
|
11
|
+
"begin": "(?<=^|;)\\s*((#))",
|
|
12
|
+
"beginCaptures": {
|
|
13
|
+
"1": {
|
|
14
|
+
"name": "comment.line.number-sign.tcl"
|
|
15
|
+
},
|
|
16
|
+
"2": {
|
|
17
|
+
"name": "punctuation.definition.comment.tcl"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"contentName": "comment.line.number-sign.tcl",
|
|
21
|
+
"end": "\\n",
|
|
22
|
+
"patterns": [
|
|
23
|
+
{
|
|
24
|
+
"match": "(\\\\\\\\|\\\\\\n)"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"captures": {
|
|
30
|
+
"1": {
|
|
31
|
+
"name": "keyword.control.tcl"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"match": "(?<=^|[\\[{;])\\s*(if|while|for|catch|default|return|break|continue|switch|exit|foreach|try|throw)\\b"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"captures": {
|
|
38
|
+
"1": {
|
|
39
|
+
"name": "keyword.control.tcl"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"match": "(?<=^|})\\s*(then|elseif|else)\\b"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"captures": {
|
|
46
|
+
"1": {
|
|
47
|
+
"name": "keyword.other.tcl"
|
|
48
|
+
},
|
|
49
|
+
"2": {
|
|
50
|
+
"name": "entity.name.function.tcl"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"match": "(?<=^|{)\\s*(proc)\\s+([^\\s]+)"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"captures": {
|
|
57
|
+
"1": {
|
|
58
|
+
"name": "keyword.other.tcl"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"match": "(?<=^|[\\[{;])\\s*(after|append|array|auto_execok|auto_import|auto_load|auto_mkindex|auto_mkindex_old|auto_qualify|auto_reset|bgerror|binary|cd|clock|close|concat|dde|encoding|eof|error|eval|exec|expr|fblocked|fconfigure|fcopy|file|fileevent|filename|flush|format|gets|glob|global|history|http|incr|info|interp|join|lappend|library|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|memory|msgcat|namespace|open|package|parray|pid|pkg::create|pkg_mkIndex|proc|puts|pwd|re_syntax|read|registry|rename|resource|scan|seek|set|socket|SafeBase|source|split|string|subst|Tcl|tcl_endOfWord|tcl_findLibrary|tcl_startOfNextWord|tcl_startOfPreviousWord|tcl_wordBreakAfter|tcl_wordBreakBefore|tcltest|tclvars|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait)\\b"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"begin": "(?<=^|[\\[{;])\\s*(regexp|regsub)\\b\\s*",
|
|
65
|
+
"beginCaptures": {
|
|
66
|
+
"1": {
|
|
67
|
+
"name": "keyword.other.tcl"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"comment": "special-case regexp/regsub keyword in order to handle the expression",
|
|
71
|
+
"end": "[\\n;\\]]",
|
|
72
|
+
"patterns": [
|
|
73
|
+
{
|
|
74
|
+
"match": "\\\\(?:.|\\n)",
|
|
75
|
+
"name": "constant.character.escape.tcl"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"comment": "switch for regexp",
|
|
79
|
+
"match": "-\\w+\\s*"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"applyEndPatternLast": 1,
|
|
83
|
+
"begin": "--\\s*",
|
|
84
|
+
"comment": "end of switches",
|
|
85
|
+
"end": "",
|
|
86
|
+
"patterns": [
|
|
87
|
+
{
|
|
88
|
+
"include": "#regexp"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"include": "#regexp"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"include": "#escape"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"include": "#variable"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"include": "#operator"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"include": "#numeric"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"begin": "\"",
|
|
111
|
+
"beginCaptures": {
|
|
112
|
+
"0": {
|
|
113
|
+
"name": "punctuation.definition.string.begin.tcl"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"end": "\"",
|
|
117
|
+
"endCaptures": {
|
|
118
|
+
"0": {
|
|
119
|
+
"name": "punctuation.definition.string.end.tcl"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"name": "string.quoted.double.tcl",
|
|
123
|
+
"patterns": [
|
|
124
|
+
{
|
|
125
|
+
"include": "#escape"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"include": "#variable"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"include": "#embedded"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
"repository": {
|
|
137
|
+
"bare-string": {
|
|
138
|
+
"begin": "(?:^|(?<=\\s))\"",
|
|
139
|
+
"comment": "matches a single quote-enclosed word without scoping",
|
|
140
|
+
"end": "\"([^\\s\\]]*)",
|
|
141
|
+
"endCaptures": {
|
|
142
|
+
"1": {
|
|
143
|
+
"name": "invalid.illegal.tcl"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"patterns": [
|
|
147
|
+
{
|
|
148
|
+
"include": "#escape"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"include": "#variable"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"braces": {
|
|
156
|
+
"begin": "(?:^|(?<=\\s))\\{",
|
|
157
|
+
"comment": "matches a single brace-enclosed word",
|
|
158
|
+
"end": "\\}([^\\s\\]]*)",
|
|
159
|
+
"endCaptures": {
|
|
160
|
+
"1": {
|
|
161
|
+
"name": "invalid.illegal.tcl"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"patterns": [
|
|
165
|
+
{
|
|
166
|
+
"match": "\\\\[{}\\n]",
|
|
167
|
+
"name": "constant.character.escape.tcl"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"include": "#inner-braces"
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"embedded": {
|
|
175
|
+
"begin": "\\[",
|
|
176
|
+
"beginCaptures": {
|
|
177
|
+
"0": {
|
|
178
|
+
"name": "punctuation.section.embedded.begin.tcl"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"end": "\\]",
|
|
182
|
+
"endCaptures": {
|
|
183
|
+
"0": {
|
|
184
|
+
"name": "punctuation.section.embedded.end.tcl"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"name": "source.tcl.embedded",
|
|
188
|
+
"patterns": [
|
|
189
|
+
{
|
|
190
|
+
"include": "source.tcl"
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
"escape": {
|
|
195
|
+
"match": "\\\\(\\d{1,3}|x[a-fA-F0-9]+|u[a-fA-F0-9]{1,4}|.|\\n)",
|
|
196
|
+
"name": "constant.character.escape.tcl"
|
|
197
|
+
},
|
|
198
|
+
"inner-braces": {
|
|
199
|
+
"begin": "\\{",
|
|
200
|
+
"comment": "matches a nested brace in a brace-enclosed word",
|
|
201
|
+
"end": "\\}",
|
|
202
|
+
"patterns": [
|
|
203
|
+
{
|
|
204
|
+
"match": "\\\\[{}\\n]",
|
|
205
|
+
"name": "constant.character.escape.tcl"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"include": "#inner-braces"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"numeric": {
|
|
213
|
+
"match": "(?<![a-zA-Z])([+-]?([0-9]*[.])?[0-9]+f?)(?![\\.a-zA-Z])",
|
|
214
|
+
"name": "constant.numeric.tcl"
|
|
215
|
+
},
|
|
216
|
+
"operator": {
|
|
217
|
+
"match": "(?<= |\\d)(-|\\+|~|&{1,2}|\\|{1,2}|<{1,2}|>{1,2}|\\*{1,2}|!|%|\\/|<=|>=|={1,2}|!=|\\^)(?= |\\d)",
|
|
218
|
+
"name": "keyword.operator.tcl"
|
|
219
|
+
},
|
|
220
|
+
"regexp": {
|
|
221
|
+
"begin": "(?=\\S)(?![\\n;\\]])",
|
|
222
|
+
"comment": "matches a single word, named as a regexp, then swallows the rest of the command",
|
|
223
|
+
"end": "(?=[\\n;\\]])",
|
|
224
|
+
"patterns": [
|
|
225
|
+
{
|
|
226
|
+
"begin": "(?=[^ \\t\\n;])",
|
|
227
|
+
"end": "(?=[ \\t\\n;])",
|
|
228
|
+
"name": "string.regexp.tcl",
|
|
229
|
+
"patterns": [
|
|
230
|
+
{
|
|
231
|
+
"include": "#braces"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"include": "#bare-string"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"include": "#escape"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"include": "#variable"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"begin": "[ \\t]",
|
|
246
|
+
"comment": "swallow the rest of the command",
|
|
247
|
+
"end": "(?=[\\n;\\]])",
|
|
248
|
+
"patterns": [
|
|
249
|
+
{
|
|
250
|
+
"include": "#variable"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"include": "#embedded"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"include": "#escape"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"include": "#braces"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"include": "#string"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"string": {
|
|
269
|
+
"applyEndPatternLast": 1,
|
|
270
|
+
"begin": "(?:^|(?<=\\s))(?=\")",
|
|
271
|
+
"comment": "matches a single quote-enclosed word with scoping",
|
|
272
|
+
"end": "",
|
|
273
|
+
"name": "string.quoted.double.tcl",
|
|
274
|
+
"patterns": [
|
|
275
|
+
{
|
|
276
|
+
"include": "#bare-string"
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
"variable": {
|
|
281
|
+
"captures": {
|
|
282
|
+
"1": {
|
|
283
|
+
"name": "punctuation.definition.variable.tcl"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"match": "(\\$)((?:[a-zA-Z0-9_]|::)+(\\([^\\)]+\\))?|\\{[^\\}]*\\})",
|
|
287
|
+
"name": "support.function.tcl"
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"scopeName": "source.tcl"
|
|
291
|
+
}
|