@codingame/monaco-vscode-standalone-languages 23.2.1 → 23.3.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.
Files changed (165) hide show
  1. package/_.contribution.js +48 -0
  2. package/abap/abap.contribution.js +8 -0
  3. package/abap/abap.js +1397 -0
  4. package/apex/apex.contribution.js +9 -0
  5. package/apex/apex.js +329 -0
  6. package/azcli/azcli.contribution.js +8 -0
  7. package/azcli/azcli.js +67 -0
  8. package/bat/bat.contribution.js +8 -0
  9. package/bat/bat.js +99 -0
  10. package/bicep/bicep.contribution.js +8 -0
  11. package/bicep/bicep.js +108 -0
  12. package/cameligo/cameligo.contribution.js +8 -0
  13. package/cameligo/cameligo.js +173 -0
  14. package/clojure/clojure.contribution.js +8 -0
  15. package/clojure/clojure.js +760 -0
  16. package/coffee/coffee.contribution.js +9 -0
  17. package/coffee/coffee.js +231 -0
  18. package/cpp/cpp.contribution.js +14 -0
  19. package/cpp/cpp.js +388 -0
  20. package/csharp/csharp.contribution.js +8 -0
  21. package/csharp/csharp.js +325 -0
  22. package/csp/csp.contribution.js +8 -0
  23. package/csp/csp.js +52 -0
  24. package/css/css.contribution.js +9 -0
  25. package/css/css.js +184 -0
  26. package/cypher/cypher.contribution.js +8 -0
  27. package/cypher/cypher.js +262 -0
  28. package/dart/dart.contribution.js +9 -0
  29. package/dart/dart.js +280 -0
  30. package/dockerfile/dockerfile.contribution.js +9 -0
  31. package/dockerfile/dockerfile.js +129 -0
  32. package/ecl/ecl.contribution.js +8 -0
  33. package/ecl/ecl.js +455 -0
  34. package/elixir/elixir.contribution.js +8 -0
  35. package/elixir/elixir.js +568 -0
  36. package/flow9/flow9.contribution.js +8 -0
  37. package/flow9/flow9.js +141 -0
  38. package/freemarker2/freemarker2.contribution.js +52 -0
  39. package/freemarker2/freemarker2.js +990 -0
  40. package/fsharp/fsharp.contribution.js +8 -0
  41. package/fsharp/fsharp.js +216 -0
  42. package/go/go.contribution.js +8 -0
  43. package/go/go.js +217 -0
  44. package/graphql/graphql.contribution.js +9 -0
  45. package/graphql/graphql.js +150 -0
  46. package/handlebars/handlebars.contribution.js +9 -0
  47. package/handlebars/handlebars.js +413 -0
  48. package/hcl/hcl.contribution.js +8 -0
  49. package/hcl/hcl.js +182 -0
  50. package/html/html.contribution.js +9 -0
  51. package/html/html.js +302 -0
  52. package/index.js +81 -48
  53. package/ini/ini.contribution.js +9 -0
  54. package/ini/ini.js +70 -0
  55. package/java/java.contribution.js +9 -0
  56. package/java/java.js +231 -0
  57. package/javascript/javascript.contribution.js +11 -0
  58. package/javascript/javascript.js +70 -0
  59. package/julia/julia.contribution.js +8 -0
  60. package/julia/julia.js +510 -0
  61. package/kotlin/kotlin.contribution.js +9 -0
  62. package/kotlin/kotlin.js +251 -0
  63. package/less/less.contribution.js +9 -0
  64. package/less/less.js +160 -0
  65. package/lexon/lexon.contribution.js +8 -0
  66. package/lexon/lexon.js +156 -0
  67. package/liquid/liquid.contribution.js +9 -0
  68. package/liquid/liquid.js +234 -0
  69. package/lua/lua.contribution.js +8 -0
  70. package/lua/lua.js +161 -0
  71. package/m3/m3.contribution.js +8 -0
  72. package/m3/m3.js +209 -0
  73. package/markdown/markdown.contribution.js +8 -0
  74. package/markdown/markdown.js +228 -0
  75. package/mdx/mdx.contribution.js +8 -0
  76. package/mdx/mdx.js +158 -0
  77. package/mips/mips.contribution.js +9 -0
  78. package/mips/mips.js +197 -0
  79. package/msdax/msdax.contribution.js +8 -0
  80. package/msdax/msdax.js +374 -0
  81. package/mysql/mysql.contribution.js +8 -0
  82. package/mysql/mysql.js +877 -0
  83. package/objective-c/objective-c.contribution.js +8 -0
  84. package/objective-c/objective-c.js +182 -0
  85. package/package.json +2 -2
  86. package/pascal/pascal.contribution.js +9 -0
  87. package/pascal/pascal.js +250 -0
  88. package/pascaligo/pascaligo.contribution.js +8 -0
  89. package/pascaligo/pascaligo.js +163 -0
  90. package/perl/perl.contribution.js +8 -0
  91. package/perl/perl.js +625 -0
  92. package/pgsql/pgsql.contribution.js +8 -0
  93. package/pgsql/pgsql.js +850 -0
  94. package/php/php.contribution.js +9 -0
  95. package/php/php.js +499 -0
  96. package/pla/pla.contribution.js +7 -0
  97. package/pla/pla.js +136 -0
  98. package/postiats/postiats.contribution.js +8 -0
  99. package/postiats/postiats.js +906 -0
  100. package/powerquery/powerquery.contribution.js +8 -0
  101. package/powerquery/powerquery.js +889 -0
  102. package/powershell/powershell.contribution.js +8 -0
  103. package/powershell/powershell.js +238 -0
  104. package/protobuf/protobuf.contribution.js +8 -0
  105. package/protobuf/protobuf.js +419 -0
  106. package/pug/pug.contribution.js +8 -0
  107. package/pug/pug.js +401 -0
  108. package/python/python.contribution.js +9 -0
  109. package/python/python.js +294 -0
  110. package/qsharp/qsharp.contribution.js +8 -0
  111. package/qsharp/qsharp.js +300 -0
  112. package/r/r.contribution.js +8 -0
  113. package/r/r.js +242 -0
  114. package/razor/razor.contribution.js +9 -0
  115. package/razor/razor.js +544 -0
  116. package/redis/redis.contribution.js +8 -0
  117. package/redis/redis.js +301 -0
  118. package/redshift/redshift.contribution.js +8 -0
  119. package/redshift/redshift.js +808 -0
  120. package/restructuredtext/restructuredtext.contribution.js +8 -0
  121. package/restructuredtext/restructuredtext.js +173 -0
  122. package/ruby/ruby.contribution.js +9 -0
  123. package/ruby/ruby.js +510 -0
  124. package/rust/rust.contribution.js +8 -0
  125. package/rust/rust.js +342 -0
  126. package/sb/sb.contribution.js +8 -0
  127. package/sb/sb.js +114 -0
  128. package/scala/scala.contribution.js +9 -0
  129. package/scala/scala.js +369 -0
  130. package/scheme/scheme.contribution.js +8 -0
  131. package/scheme/scheme.js +107 -0
  132. package/scss/scss.contribution.js +9 -0
  133. package/scss/scss.js +259 -0
  134. package/shell/shell.contribution.js +8 -0
  135. package/shell/shell.js +220 -0
  136. package/solidity/solidity.contribution.js +8 -0
  137. package/solidity/solidity.js +1366 -0
  138. package/sophia/sophia.contribution.js +8 -0
  139. package/sophia/sophia.js +198 -0
  140. package/sparql/sparql.contribution.js +8 -0
  141. package/sparql/sparql.js +200 -0
  142. package/sql/sql.contribution.js +8 -0
  143. package/sql/sql.js +852 -0
  144. package/st/st.contribution.js +8 -0
  145. package/st/st.js +415 -0
  146. package/swift/swift.contribution.js +9 -0
  147. package/swift/swift.js +311 -0
  148. package/systemverilog/systemverilog.contribution.js +14 -0
  149. package/systemverilog/systemverilog.js +575 -0
  150. package/tcl/tcl.contribution.js +8 -0
  151. package/tcl/tcl.js +231 -0
  152. package/twig/twig.contribution.js +9 -0
  153. package/twig/twig.js +391 -0
  154. package/typescript/typescript.contribution.js +11 -0
  155. package/typescript/typescript.js +336 -0
  156. package/typespec/typespec.contribution.js +8 -0
  157. package/typespec/typespec.js +126 -0
  158. package/vb/vb.contribution.js +8 -0
  159. package/vb/vb.js +371 -0
  160. package/wgsl/wgsl.contribution.js +8 -0
  161. package/wgsl/wgsl.js +452 -0
  162. package/xml/xml.contribution.js +28 -0
  163. package/xml/xml.js +88 -0
  164. package/yaml/yaml.contribution.js +9 -0
  165. package/yaml/yaml.js +199 -0
@@ -0,0 +1,575 @@
1
+ const conf = {
2
+ comments: {
3
+ lineComment: "//",
4
+ blockComment: ["/*", "*/"]
5
+ },
6
+ brackets: [
7
+ ["{", "}"],
8
+ ["[", "]"],
9
+ ["(", ")"],
10
+ ["begin", "end"],
11
+ ["case", "endcase"],
12
+ ["casex", "endcase"],
13
+ ["casez", "endcase"],
14
+ ["checker", "endchecker"],
15
+ ["class", "endclass"],
16
+ ["clocking", "endclocking"],
17
+ ["config", "endconfig"],
18
+ ["function", "endfunction"],
19
+ ["generate", "endgenerate"],
20
+ ["group", "endgroup"],
21
+ ["interface", "endinterface"],
22
+ ["module", "endmodule"],
23
+ ["package", "endpackage"],
24
+ ["primitive", "endprimitive"],
25
+ ["program", "endprogram"],
26
+ ["property", "endproperty"],
27
+ ["specify", "endspecify"],
28
+ ["sequence", "endsequence"],
29
+ ["table", "endtable"],
30
+ ["task", "endtask"]
31
+ ],
32
+ autoClosingPairs: [
33
+ { open: "[", close: "]" },
34
+ { open: "{", close: "}" },
35
+ { open: "(", close: ")" },
36
+ { open: "'", close: "'", notIn: ["string", "comment"] },
37
+ { open: '"', close: '"', notIn: ["string"] }
38
+ ],
39
+ surroundingPairs: [
40
+ { open: "{", close: "}" },
41
+ { open: "[", close: "]" },
42
+ { open: "(", close: ")" },
43
+ { open: '"', close: '"' },
44
+ { open: "'", close: "'" }
45
+ ],
46
+ folding: {
47
+ offSide: false,
48
+ markers: {
49
+ start: new RegExp(
50
+ "^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\b"
51
+ ),
52
+ end: new RegExp(
53
+ "^(?:\\s*|.*(?!\\/[\\/\\*])[^\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\b"
54
+ )
55
+ }
56
+ }
57
+ };
58
+ const language = {
59
+ defaultToken: "",
60
+ tokenPostfix: ".sv",
61
+ brackets: [
62
+ { token: "delimiter.curly", open: "{", close: "}" },
63
+ { token: "delimiter.parenthesis", open: "(", close: ")" },
64
+ { token: "delimiter.square", open: "[", close: "]" },
65
+ { token: "delimiter.angle", open: "<", close: ">" }
66
+ ],
67
+ keywords: [
68
+ "accept_on",
69
+ "alias",
70
+ "always",
71
+ "always_comb",
72
+ "always_ff",
73
+ "always_latch",
74
+ "and",
75
+ "assert",
76
+ "assign",
77
+ "assume",
78
+ "automatic",
79
+ "before",
80
+ "begin",
81
+ "bind",
82
+ "bins",
83
+ "binsof",
84
+ "bit",
85
+ "break",
86
+ "buf",
87
+ "bufif0",
88
+ "bufif1",
89
+ "byte",
90
+ "case",
91
+ "casex",
92
+ "casez",
93
+ "cell",
94
+ "chandle",
95
+ "checker",
96
+ "class",
97
+ "clocking",
98
+ "cmos",
99
+ "config",
100
+ "const",
101
+ "constraint",
102
+ "context",
103
+ "continue",
104
+ "cover",
105
+ "covergroup",
106
+ "coverpoint",
107
+ "cross",
108
+ "deassign",
109
+ "default",
110
+ "defparam",
111
+ "design",
112
+ "disable",
113
+ "dist",
114
+ "do",
115
+ "edge",
116
+ "else",
117
+ "end",
118
+ "endcase",
119
+ "endchecker",
120
+ "endclass",
121
+ "endclocking",
122
+ "endconfig",
123
+ "endfunction",
124
+ "endgenerate",
125
+ "endgroup",
126
+ "endinterface",
127
+ "endmodule",
128
+ "endpackage",
129
+ "endprimitive",
130
+ "endprogram",
131
+ "endproperty",
132
+ "endspecify",
133
+ "endsequence",
134
+ "endtable",
135
+ "endtask",
136
+ "enum",
137
+ "event",
138
+ "eventually",
139
+ "expect",
140
+ "export",
141
+ "extends",
142
+ "extern",
143
+ "final",
144
+ "first_match",
145
+ "for",
146
+ "force",
147
+ "foreach",
148
+ "forever",
149
+ "fork",
150
+ "forkjoin",
151
+ "function",
152
+ "generate",
153
+ "genvar",
154
+ "global",
155
+ "highz0",
156
+ "highz1",
157
+ "if",
158
+ "iff",
159
+ "ifnone",
160
+ "ignore_bins",
161
+ "illegal_bins",
162
+ "implements",
163
+ "implies",
164
+ "import",
165
+ "incdir",
166
+ "include",
167
+ "initial",
168
+ "inout",
169
+ "input",
170
+ "inside",
171
+ "instance",
172
+ "int",
173
+ "integer",
174
+ "interconnect",
175
+ "interface",
176
+ "intersect",
177
+ "join",
178
+ "join_any",
179
+ "join_none",
180
+ "large",
181
+ "let",
182
+ "liblist",
183
+ "library",
184
+ "local",
185
+ "localparam",
186
+ "logic",
187
+ "longint",
188
+ "macromodule",
189
+ "matches",
190
+ "medium",
191
+ "modport",
192
+ "module",
193
+ "nand",
194
+ "negedge",
195
+ "nettype",
196
+ "new",
197
+ "nexttime",
198
+ "nmos",
199
+ "nor",
200
+ "noshowcancelled",
201
+ "not",
202
+ "notif0",
203
+ "notif1",
204
+ "null",
205
+ "or",
206
+ "output",
207
+ "package",
208
+ "packed",
209
+ "parameter",
210
+ "pmos",
211
+ "posedge",
212
+ "primitive",
213
+ "priority",
214
+ "program",
215
+ "property",
216
+ "protected",
217
+ "pull0",
218
+ "pull1",
219
+ "pulldown",
220
+ "pullup",
221
+ "pulsestyle_ondetect",
222
+ "pulsestyle_onevent",
223
+ "pure",
224
+ "rand",
225
+ "randc",
226
+ "randcase",
227
+ "randsequence",
228
+ "rcmos",
229
+ "real",
230
+ "realtime",
231
+ "ref",
232
+ "reg",
233
+ "reject_on",
234
+ "release",
235
+ "repeat",
236
+ "restrict",
237
+ "return",
238
+ "rnmos",
239
+ "rpmos",
240
+ "rtran",
241
+ "rtranif0",
242
+ "rtranif1",
243
+ "s_always",
244
+ "s_eventually",
245
+ "s_nexttime",
246
+ "s_until",
247
+ "s_until_with",
248
+ "scalared",
249
+ "sequence",
250
+ "shortint",
251
+ "shortreal",
252
+ "showcancelled",
253
+ "signed",
254
+ "small",
255
+ "soft",
256
+ "solve",
257
+ "specify",
258
+ "specparam",
259
+ "static",
260
+ "string",
261
+ "strong",
262
+ "strong0",
263
+ "strong1",
264
+ "struct",
265
+ "super",
266
+ "supply0",
267
+ "supply1",
268
+ "sync_accept_on",
269
+ "sync_reject_on",
270
+ "table",
271
+ "tagged",
272
+ "task",
273
+ "this",
274
+ "throughout",
275
+ "time",
276
+ "timeprecision",
277
+ "timeunit",
278
+ "tran",
279
+ "tranif0",
280
+ "tranif1",
281
+ "tri",
282
+ "tri0",
283
+ "tri1",
284
+ "triand",
285
+ "trior",
286
+ "trireg",
287
+ "type",
288
+ "typedef",
289
+ "union",
290
+ "unique",
291
+ "unique0",
292
+ "unsigned",
293
+ "until",
294
+ "until_with",
295
+ "untyped",
296
+ "use",
297
+ "uwire",
298
+ "var",
299
+ "vectored",
300
+ "virtual",
301
+ "void",
302
+ "wait",
303
+ "wait_order",
304
+ "wand",
305
+ "weak",
306
+ "weak0",
307
+ "weak1",
308
+ "while",
309
+ "wildcard",
310
+ "wire",
311
+ "with",
312
+ "within",
313
+ "wor",
314
+ "xnor",
315
+ "xor"
316
+ ],
317
+ builtin_gates: [
318
+ "and",
319
+ "nand",
320
+ "nor",
321
+ "or",
322
+ "xor",
323
+ "xnor",
324
+ "buf",
325
+ "not",
326
+ "bufif0",
327
+ "bufif1",
328
+ "notif1",
329
+ "notif0",
330
+ "cmos",
331
+ "nmos",
332
+ "pmos",
333
+ "rcmos",
334
+ "rnmos",
335
+ "rpmos",
336
+ "tran",
337
+ "tranif1",
338
+ "tranif0",
339
+ "rtran",
340
+ "rtranif1",
341
+ "rtranif0"
342
+ ],
343
+ operators: [
344
+ // assignment operators
345
+ "=",
346
+ "+=",
347
+ "-=",
348
+ "*=",
349
+ "/=",
350
+ "%=",
351
+ "&=",
352
+ "|=",
353
+ "^=",
354
+ "<<=",
355
+ ">>+",
356
+ "<<<=",
357
+ ">>>=",
358
+ // conditional expression
359
+ "?",
360
+ ":",
361
+ // Unary operators
362
+ "+",
363
+ "-",
364
+ "!",
365
+ "~",
366
+ "&",
367
+ "~&",
368
+ "|",
369
+ "~|",
370
+ "^",
371
+ "~^",
372
+ "^~",
373
+ //binary operators
374
+ "+",
375
+ "-",
376
+ "*",
377
+ "/",
378
+ "%",
379
+ "==",
380
+ "!=",
381
+ "===",
382
+ "!==",
383
+ "==?",
384
+ "!=?",
385
+ "&&",
386
+ "||",
387
+ "**",
388
+ "<",
389
+ "<=",
390
+ ">",
391
+ ">=",
392
+ "&",
393
+ "|",
394
+ "^",
395
+ ">>",
396
+ "<<",
397
+ ">>>",
398
+ "<<<",
399
+ // increment or decrement operator
400
+ "++",
401
+ "--",
402
+ //binary logical operator
403
+ "->",
404
+ "<->",
405
+ // binary set membership operator
406
+ "inside",
407
+ // binary distrubution operator
408
+ "dist",
409
+ "::",
410
+ "+:",
411
+ "-:",
412
+ "*>",
413
+ "&&&",
414
+ "|->",
415
+ "|=>",
416
+ "#=#"
417
+ ],
418
+ // we include these common regular expressions
419
+ symbols: /[=><!~?:&|+\-*\/\^%#]+/,
420
+ escapes: /%%|\\(?:[antvf\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,
421
+ identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\.]*|\\\S+ )/,
422
+ systemcall: /[$][a-zA-Z0-9_]+/,
423
+ timeunits: /s|ms|us|ns|ps|fs/,
424
+ // The main tokenizer for our languages
425
+ tokenizer: {
426
+ root: [
427
+ // module instances
428
+ [
429
+ /^(\s*)(@identifier)/,
430
+ [
431
+ "",
432
+ {
433
+ cases: {
434
+ "@builtin_gates": {
435
+ token: "keyword.$2",
436
+ next: "@module_instance"
437
+ },
438
+ table: {
439
+ token: "keyword.$2",
440
+ next: "@table"
441
+ },
442
+ "@keywords": { token: "keyword.$2" },
443
+ "@default": {
444
+ token: "identifier",
445
+ next: "@module_instance"
446
+ }
447
+ }
448
+ }
449
+ ]
450
+ ],
451
+ // include statements
452
+ [/^\s*`include/, { token: "keyword.directive.include", next: "@include" }],
453
+ // Preprocessor directives
454
+ [/^\s*`\s*\w+/, "keyword"],
455
+ // identifiers and keywords
456
+ { include: "@identifier_or_keyword" },
457
+ // whitespace and comments
458
+ { include: "@whitespace" },
459
+ // (* attributes *).
460
+ [/\(\*.*\*\)/, "annotation"],
461
+ // Systemcall
462
+ [/@systemcall/, "variable.predefined"],
463
+ // delimiters and operators
464
+ [/[{}()\[\]]/, "@brackets"],
465
+ [/[<>](?!@symbols)/, "@brackets"],
466
+ [
467
+ /@symbols/,
468
+ {
469
+ cases: {
470
+ "@operators": "delimiter",
471
+ "@default": ""
472
+ }
473
+ }
474
+ ],
475
+ // numbers
476
+ { include: "@numbers" },
477
+ // delimiter: after number because of .\d floats
478
+ [/[;,.]/, "delimiter"],
479
+ // strings
480
+ { include: "@strings" }
481
+ ],
482
+ identifier_or_keyword: [
483
+ [
484
+ /@identifier/,
485
+ {
486
+ cases: {
487
+ "@keywords": { token: "keyword.$0" },
488
+ "@default": "identifier"
489
+ }
490
+ }
491
+ ]
492
+ ],
493
+ numbers: [
494
+ [/\d+?[\d_]*(?:\.[\d_]+)?[eE][\-+]?\d+/, "number.float"],
495
+ [/\d+?[\d_]*\.[\d_]+(?:\s*@timeunits)?/, "number.float"],
496
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[dD]\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, "number"],
497
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[bB]\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, "number.binary"],
498
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[oO]\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, "number.octal"],
499
+ [/(?:\d+?[\d_]*\s*)?'[sS]?[hH]\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, "number.hex"],
500
+ [/1step/, "number"],
501
+ [/[\dxXzZ]+?[\dxXzZ_]*(?:\s*@timeunits)?/, "number"],
502
+ [/'[01xXzZ]+/, "number"]
503
+ ],
504
+ module_instance: [
505
+ { include: "@whitespace" },
506
+ [/(#?)(\()/, ["", { token: "@brackets", next: "@port_connection" }]],
507
+ [/@identifier\s*[;={}\[\],]/, { token: "@rematch", next: "@pop" }],
508
+ [/@symbols|[;={}\[\],]/, { token: "@rematch", next: "@pop" }],
509
+ [/@identifier/, "type"],
510
+ [/;/, "delimiter", "@pop"]
511
+ ],
512
+ port_connection: [
513
+ { include: "@identifier_or_keyword" },
514
+ { include: "@whitespace" },
515
+ [/@systemcall/, "variable.predefined"],
516
+ { include: "@numbers" },
517
+ { include: "@strings" },
518
+ [/[,]/, "delimiter"],
519
+ [/\(/, "@brackets", "@port_connection"],
520
+ [/\)/, "@brackets", "@pop"]
521
+ ],
522
+ whitespace: [
523
+ [/[ \t\r\n]+/, ""],
524
+ [/\/\*/, "comment", "@comment"],
525
+ [/\/\/.*$/, "comment"]
526
+ ],
527
+ comment: [
528
+ [/[^\/*]+/, "comment"],
529
+ [/\*\//, "comment", "@pop"],
530
+ [/[\/*]/, "comment"]
531
+ ],
532
+ strings: [
533
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
534
+ // non-teminated string
535
+ [/"/, "string", "@string"]
536
+ ],
537
+ string: [
538
+ [/[^\\"]+/, "string"],
539
+ [/@escapes/, "string.escape"],
540
+ [/\\./, "string.escape.invalid"],
541
+ [/"/, "string", "@pop"]
542
+ ],
543
+ include: [
544
+ [
545
+ /(\s*)(")([\w*\/*]*)(.\w*)(")/,
546
+ [
547
+ "",
548
+ "string.include.identifier",
549
+ "string.include.identifier",
550
+ "string.include.identifier",
551
+ { token: "string.include.identifier", next: "@pop" }
552
+ ]
553
+ ],
554
+ [
555
+ /(\s*)(<)([\w*\/*]*)(.\w*)(>)/,
556
+ [
557
+ "",
558
+ "string.include.identifier",
559
+ "string.include.identifier",
560
+ "string.include.identifier",
561
+ { token: "string.include.identifier", next: "@pop" }
562
+ ]
563
+ ]
564
+ ],
565
+ table: [
566
+ { include: "@whitespace" },
567
+ [/[()]/, "@brackets"],
568
+ [/[:;]/, "delimiter"],
569
+ [/[01\-*?xXbBrRfFpPnN]/, "variable.predefined"],
570
+ ["endtable", "keyword.endtable", "@pop"]
571
+ ]
572
+ }
573
+ };
574
+
575
+ export { conf, language };
@@ -0,0 +1,8 @@
1
+ import { registerLanguage } from '../_.contribution.js';
2
+
3
+ registerLanguage({
4
+ id: "tcl",
5
+ extensions: [".tcl"],
6
+ aliases: ["tcl", "Tcl", "tcltk", "TclTk", "tcl/tk", "Tcl/Tk"],
7
+ loader: () => import('./tcl.js')
8
+ });