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