@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
package/julia/julia.js ADDED
@@ -0,0 +1,519 @@
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/julia/julia.ts
10
+ var conf = {
11
+ brackets: [
12
+ ["{", "}"],
13
+ ["[", "]"],
14
+ ["(", ")"]
15
+ ],
16
+ autoClosingPairs: [
17
+ { open: "{", close: "}" },
18
+ { open: "[", close: "]" },
19
+ { open: "(", close: ")" },
20
+ { open: '"', close: '"' },
21
+ { open: "'", close: "'" }
22
+ ],
23
+ surroundingPairs: [
24
+ { open: "{", close: "}" },
25
+ { open: "[", close: "]" },
26
+ { open: "(", close: ")" },
27
+ { open: '"', close: '"' },
28
+ { open: "'", close: "'" }
29
+ ]
30
+ };
31
+ var language = {
32
+ tokenPostfix: ".julia",
33
+ keywords: [
34
+ "begin",
35
+ "while",
36
+ "if",
37
+ "for",
38
+ "try",
39
+ "return",
40
+ "break",
41
+ "continue",
42
+ "function",
43
+ "macro",
44
+ "quote",
45
+ "let",
46
+ "local",
47
+ "global",
48
+ "const",
49
+ "do",
50
+ "struct",
51
+ "module",
52
+ "baremodule",
53
+ "using",
54
+ "import",
55
+ "export",
56
+ "end",
57
+ "else",
58
+ "elseif",
59
+ "catch",
60
+ "finally",
61
+ "mutable",
62
+ "primitive",
63
+ "abstract",
64
+ "type",
65
+ "in",
66
+ "isa",
67
+ "where",
68
+ "new"
69
+ ],
70
+ types: [
71
+ "LinRange",
72
+ "LineNumberNode",
73
+ "LinearIndices",
74
+ "LoadError",
75
+ "MIME",
76
+ "Matrix",
77
+ "Method",
78
+ "MethodError",
79
+ "Missing",
80
+ "MissingException",
81
+ "Module",
82
+ "NTuple",
83
+ "NamedTuple",
84
+ "Nothing",
85
+ "Number",
86
+ "OrdinalRange",
87
+ "OutOfMemoryError",
88
+ "OverflowError",
89
+ "Pair",
90
+ "PartialQuickSort",
91
+ "PermutedDimsArray",
92
+ "Pipe",
93
+ "Ptr",
94
+ "QuoteNode",
95
+ "Rational",
96
+ "RawFD",
97
+ "ReadOnlyMemoryError",
98
+ "Real",
99
+ "ReentrantLock",
100
+ "Ref",
101
+ "Regex",
102
+ "RegexMatch",
103
+ "RoundingMode",
104
+ "SegmentationFault",
105
+ "Set",
106
+ "Signed",
107
+ "Some",
108
+ "StackOverflowError",
109
+ "StepRange",
110
+ "StepRangeLen",
111
+ "StridedArray",
112
+ "StridedMatrix",
113
+ "StridedVecOrMat",
114
+ "StridedVector",
115
+ "String",
116
+ "StringIndexError",
117
+ "SubArray",
118
+ "SubString",
119
+ "SubstitutionString",
120
+ "Symbol",
121
+ "SystemError",
122
+ "Task",
123
+ "Text",
124
+ "TextDisplay",
125
+ "Timer",
126
+ "Tuple",
127
+ "Type",
128
+ "TypeError",
129
+ "TypeVar",
130
+ "UInt",
131
+ "UInt128",
132
+ "UInt16",
133
+ "UInt32",
134
+ "UInt64",
135
+ "UInt8",
136
+ "UndefInitializer",
137
+ "AbstractArray",
138
+ "UndefKeywordError",
139
+ "AbstractChannel",
140
+ "UndefRefError",
141
+ "AbstractChar",
142
+ "UndefVarError",
143
+ "AbstractDict",
144
+ "Union",
145
+ "AbstractDisplay",
146
+ "UnionAll",
147
+ "AbstractFloat",
148
+ "UnitRange",
149
+ "AbstractIrrational",
150
+ "Unsigned",
151
+ "AbstractMatrix",
152
+ "AbstractRange",
153
+ "Val",
154
+ "AbstractSet",
155
+ "Vararg",
156
+ "AbstractString",
157
+ "VecElement",
158
+ "AbstractUnitRange",
159
+ "VecOrMat",
160
+ "AbstractVecOrMat",
161
+ "Vector",
162
+ "AbstractVector",
163
+ "VersionNumber",
164
+ "Any",
165
+ "WeakKeyDict",
166
+ "ArgumentError",
167
+ "WeakRef",
168
+ "Array",
169
+ "AssertionError",
170
+ "BigFloat",
171
+ "BigInt",
172
+ "BitArray",
173
+ "BitMatrix",
174
+ "BitSet",
175
+ "BitVector",
176
+ "Bool",
177
+ "BoundsError",
178
+ "CapturedException",
179
+ "CartesianIndex",
180
+ "CartesianIndices",
181
+ "Cchar",
182
+ "Cdouble",
183
+ "Cfloat",
184
+ "Channel",
185
+ "Char",
186
+ "Cint",
187
+ "Cintmax_t",
188
+ "Clong",
189
+ "Clonglong",
190
+ "Cmd",
191
+ "Colon",
192
+ "Complex",
193
+ "ComplexF16",
194
+ "ComplexF32",
195
+ "ComplexF64",
196
+ "CompositeException",
197
+ "Condition",
198
+ "Cptrdiff_t",
199
+ "Cshort",
200
+ "Csize_t",
201
+ "Cssize_t",
202
+ "Cstring",
203
+ "Cuchar",
204
+ "Cuint",
205
+ "Cuintmax_t",
206
+ "Culong",
207
+ "Culonglong",
208
+ "Cushort",
209
+ "Cvoid",
210
+ "Cwchar_t",
211
+ "Cwstring",
212
+ "DataType",
213
+ "DenseArray",
214
+ "DenseMatrix",
215
+ "DenseVecOrMat",
216
+ "DenseVector",
217
+ "Dict",
218
+ "DimensionMismatch",
219
+ "Dims",
220
+ "DivideError",
221
+ "DomainError",
222
+ "EOFError",
223
+ "Enum",
224
+ "ErrorException",
225
+ "Exception",
226
+ "ExponentialBackOff",
227
+ "Expr",
228
+ "Float16",
229
+ "Float32",
230
+ "Float64",
231
+ "Function",
232
+ "GlobalRef",
233
+ "HTML",
234
+ "IO",
235
+ "IOBuffer",
236
+ "IOContext",
237
+ "IOStream",
238
+ "IdDict",
239
+ "IndexCartesian",
240
+ "IndexLinear",
241
+ "IndexStyle",
242
+ "InexactError",
243
+ "InitError",
244
+ "Int",
245
+ "Int128",
246
+ "Int16",
247
+ "Int32",
248
+ "Int64",
249
+ "Int8",
250
+ "Integer",
251
+ "InterruptException",
252
+ "InvalidStateException",
253
+ "Irrational",
254
+ "KeyError"
255
+ ],
256
+ keywordops: ["<:", ">:", ":", "=>", "...", ".", "->", "?"],
257
+ allops: /[^\w\d\s()\[\]{}"'#]+/,
258
+ constants: [
259
+ "true",
260
+ "false",
261
+ "nothing",
262
+ "missing",
263
+ "undef",
264
+ "Inf",
265
+ "pi",
266
+ "NaN",
267
+ "\u03C0",
268
+ "\u212F",
269
+ "ans",
270
+ "PROGRAM_FILE",
271
+ "ARGS",
272
+ "C_NULL",
273
+ "VERSION",
274
+ "DEPOT_PATH",
275
+ "LOAD_PATH"
276
+ ],
277
+ operators: [
278
+ "!",
279
+ "!=",
280
+ "!==",
281
+ "%",
282
+ "&",
283
+ "*",
284
+ "+",
285
+ "-",
286
+ "/",
287
+ "//",
288
+ "<",
289
+ "<<",
290
+ "<=",
291
+ "==",
292
+ "===",
293
+ "=>",
294
+ ">",
295
+ ">=",
296
+ ">>",
297
+ ">>>",
298
+ "\\",
299
+ "^",
300
+ "|",
301
+ "|>",
302
+ "~",
303
+ "\xF7",
304
+ "\u2208",
305
+ "\u2209",
306
+ "\u220B",
307
+ "\u220C",
308
+ "\u2218",
309
+ "\u221A",
310
+ "\u221B",
311
+ "\u2229",
312
+ "\u222A",
313
+ "\u2248",
314
+ "\u2249",
315
+ "\u2260",
316
+ "\u2261",
317
+ "\u2262",
318
+ "\u2264",
319
+ "\u2265",
320
+ "\u2286",
321
+ "\u2287",
322
+ "\u2288",
323
+ "\u2289",
324
+ "\u228A",
325
+ "\u228B",
326
+ "\u22BB"
327
+ ],
328
+ brackets: [
329
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
330
+ { open: "{", close: "}", token: "delimiter.curly" },
331
+ { open: "[", close: "]", token: "delimiter.square" }
332
+ ],
333
+ ident: /π|ℯ|\b(?!\d)\w+\b/,
334
+ // escape sequences
335
+ escape: /(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,
336
+ escapes: /\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,
337
+ // The main tokenizer for our languages
338
+ tokenizer: {
339
+ root: [
340
+ [/(::)\s*|\b(isa)\s+/, "keyword", "@typeanno"],
341
+ [/\b(isa)(\s*\(@ident\s*,\s*)/, ["keyword", { token: "", next: "@typeanno" }]],
342
+ [/\b(type|struct)[ \t]+/, "keyword", "@typeanno"],
343
+ // symbols
344
+ [/^\s*:@ident[!?]?/, "metatag"],
345
+ [/(return)(\s*:@ident[!?]?)/, ["keyword", "metatag"]],
346
+ [/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/, ["", "metatag"]],
347
+ [/:\(/, "metatag", "@quote"],
348
+ // regular expressions
349
+ [/r"""/, "regexp.delim", "@tregexp"],
350
+ [/r"/, "regexp.delim", "@sregexp"],
351
+ // strings
352
+ [/raw"""/, "string.delim", "@rtstring"],
353
+ [/[bv]?"""/, "string.delim", "@dtstring"],
354
+ [/raw"/, "string.delim", "@rsstring"],
355
+ [/[bv]?"/, "string.delim", "@dsstring"],
356
+ [
357
+ /(@ident)\{/,
358
+ {
359
+ cases: {
360
+ "$1@types": { token: "type", next: "@gen" },
361
+ "@default": { token: "type", next: "@gen" }
362
+ }
363
+ }
364
+ ],
365
+ [
366
+ /@ident[!?'']?(?=\.?\()/,
367
+ {
368
+ cases: {
369
+ "@types": "type",
370
+ "@keywords": "keyword",
371
+ "@constants": "variable",
372
+ "@default": "keyword.flow"
373
+ }
374
+ }
375
+ ],
376
+ [
377
+ /@ident[!?']?/,
378
+ {
379
+ cases: {
380
+ "@types": "type",
381
+ "@keywords": "keyword",
382
+ "@constants": "variable",
383
+ "@default": "identifier"
384
+ }
385
+ }
386
+ ],
387
+ [/\$\w+/, "key"],
388
+ [/\$\(/, "key", "@paste"],
389
+ [/@@@ident/, "annotation"],
390
+ // whitespace
391
+ { include: "@whitespace" },
392
+ // characters
393
+ [/'(?:@escapes|.)'/, "string.character"],
394
+ // delimiters and operators
395
+ [/[()\[\]{}]/, "@brackets"],
396
+ [
397
+ /@allops/,
398
+ {
399
+ cases: {
400
+ "@keywordops": "keyword",
401
+ "@operators": "operator"
402
+ }
403
+ }
404
+ ],
405
+ [/[;,]/, "delimiter"],
406
+ // numbers
407
+ [/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/, "number.hex"],
408
+ [/0[_oO][0-7](_?[0-7])*/, "number.octal"],
409
+ [/0[bB][01](_?[01])*/, "number.binary"],
410
+ [/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/, "number"]
411
+ ],
412
+ // type
413
+ typeanno: [
414
+ [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@gen"],
415
+ [/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/, ["type", "keyword"]],
416
+ [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type", "@pop"],
417
+ ["", "", "@pop"]
418
+ ],
419
+ // generic type
420
+ gen: [
421
+ [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/, "type", "@push"],
422
+ [/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/, "type"],
423
+ [/<:/, "keyword"],
424
+ [/(\})(\s*<:\s*)/, ["type", { token: "keyword", next: "@pop" }]],
425
+ [/\}/, "type", "@pop"],
426
+ { include: "@root" }
427
+ ],
428
+ // $(...)
429
+ quote: [
430
+ [/\$\(/, "key", "@paste"],
431
+ [/\(/, "@brackets", "@paren"],
432
+ [/\)/, "metatag", "@pop"],
433
+ { include: "@root" }
434
+ ],
435
+ // :(...)
436
+ paste: [
437
+ [/:\(/, "metatag", "@quote"],
438
+ [/\(/, "@brackets", "@paren"],
439
+ [/\)/, "key", "@pop"],
440
+ { include: "@root" }
441
+ ],
442
+ // (...)
443
+ paren: [
444
+ [/\$\(/, "key", "@paste"],
445
+ [/:\(/, "metatag", "@quote"],
446
+ [/\(/, "@brackets", "@push"],
447
+ [/\)/, "@brackets", "@pop"],
448
+ { include: "@root" }
449
+ ],
450
+ // r"egex string"
451
+ sregexp: [
452
+ [/^.*/, "invalid"],
453
+ [/[^\\"()\[\]{}]/, "regexp"],
454
+ [/[()\[\]{}]/, "@brackets"],
455
+ [/\\./, "operator.scss"],
456
+ [/"[imsx]*/, "regexp.delim", "@pop"]
457
+ ],
458
+ tregexp: [
459
+ [/[^\\"()\[\]{}]/, "regexp"],
460
+ [/[()\[\]{}]/, "@brackets"],
461
+ [/\\./, "operator.scss"],
462
+ [/"(?!"")/, "string"],
463
+ [/"""[imsx]*/, "regexp.delim", "@pop"]
464
+ ],
465
+ // raw"string"
466
+ rsstring: [
467
+ [/^.*/, "invalid"],
468
+ [/[^\\"]/, "string"],
469
+ [/\\./, "string.escape"],
470
+ [/"/, "string.delim", "@pop"]
471
+ ],
472
+ rtstring: [
473
+ [/[^\\"]/, "string"],
474
+ [/\\./, "string.escape"],
475
+ [/"(?!"")/, "string"],
476
+ [/"""/, "string.delim", "@pop"]
477
+ ],
478
+ // "string".
479
+ dsstring: [
480
+ [/^.*/, "invalid"],
481
+ [/[^\\"\$]/, "string"],
482
+ [/\$/, "", "@interpolated"],
483
+ [/@escapes/, "string.escape"],
484
+ [/\\./, "string.escape.invalid"],
485
+ [/"/, "string.delim", "@pop"]
486
+ ],
487
+ dtstring: [
488
+ [/[^\\"\$]/, "string"],
489
+ [/\$/, "", "@interpolated"],
490
+ [/@escapes/, "string.escape"],
491
+ [/\\./, "string.escape.invalid"],
492
+ [/"(?!"")/, "string"],
493
+ [/"""/, "string.delim", "@pop"]
494
+ ],
495
+ // interpolated sequence
496
+ interpolated: [
497
+ [/\(/, { token: "", switchTo: "@interpolated_compound" }],
498
+ [/[a-zA-Z_]\w*/, "identifier"],
499
+ ["", "", "@pop"]
500
+ // just a $ is interpreted as a $
501
+ ],
502
+ // any code
503
+ interpolated_compound: [[/\)/, "", "@pop"], { include: "@root" }],
504
+ // whitespace & comments
505
+ whitespace: [
506
+ [/[ \t\r\n]+/, ""],
507
+ [/#=/, "comment", "@multi_comment"],
508
+ [/#.*$/, "comment"]
509
+ ],
510
+ multi_comment: [
511
+ [/#=/, "comment", "@push"],
512
+ [/=#/, "comment", "@pop"],
513
+ [/=(?!#)|#(?!=)/, "comment"],
514
+ [/[^#=]+/, "comment"]
515
+ ]
516
+ }
517
+ };
518
+
519
+ export { conf, language };
@@ -0,0 +1,20 @@
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: "kotlin",
12
+ extensions: [".kt", ".kts"],
13
+ aliases: ["Kotlin", "kotlin"],
14
+ mimetypes: ["text/x-kotlin-source", "text/x-kotlin"],
15
+ loader: () => {
16
+ {
17
+ return import('./kotlin.js');
18
+ }
19
+ }
20
+ });