@codingame/monaco-vscode-standalone-languages 23.1.1 → 23.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 (165) hide show
  1. package/index.js +48 -82
  2. package/package.json +2 -2
  3. package/_.contribution.js +0 -74
  4. package/abap/abap.contribution.js +0 -19
  5. package/abap/abap.js +0 -1406
  6. package/apex/apex.contribution.js +0 -20
  7. package/apex/apex.js +0 -338
  8. package/azcli/azcli.contribution.js +0 -19
  9. package/azcli/azcli.js +0 -76
  10. package/bat/bat.contribution.js +0 -19
  11. package/bat/bat.js +0 -108
  12. package/bicep/bicep.contribution.js +0 -19
  13. package/bicep/bicep.js +0 -117
  14. package/cameligo/cameligo.contribution.js +0 -19
  15. package/cameligo/cameligo.js +0 -182
  16. package/clojure/clojure.contribution.js +0 -19
  17. package/clojure/clojure.js +0 -769
  18. package/coffee/coffee.contribution.js +0 -20
  19. package/coffee/coffee.js +0 -240
  20. package/cpp/cpp.contribution.js +0 -29
  21. package/cpp/cpp.js +0 -397
  22. package/csharp/csharp.contribution.js +0 -19
  23. package/csharp/csharp.js +0 -334
  24. package/csp/csp.contribution.js +0 -19
  25. package/csp/csp.js +0 -61
  26. package/css/css.contribution.js +0 -20
  27. package/css/css.js +0 -193
  28. package/cypher/cypher.contribution.js +0 -19
  29. package/cypher/cypher.js +0 -271
  30. package/dart/dart.contribution.js +0 -20
  31. package/dart/dart.js +0 -289
  32. package/dockerfile/dockerfile.contribution.js +0 -20
  33. package/dockerfile/dockerfile.js +0 -138
  34. package/ecl/ecl.contribution.js +0 -19
  35. package/ecl/ecl.js +0 -464
  36. package/elixir/elixir.contribution.js +0 -19
  37. package/elixir/elixir.js +0 -577
  38. package/flow9/flow9.contribution.js +0 -19
  39. package/flow9/flow9.js +0 -150
  40. package/freemarker2/freemarker2.contribution.js +0 -73
  41. package/freemarker2/freemarker2.js +0 -1016
  42. package/fsharp/fsharp.contribution.js +0 -19
  43. package/fsharp/fsharp.js +0 -225
  44. package/go/go.contribution.js +0 -19
  45. package/go/go.js +0 -226
  46. package/graphql/graphql.contribution.js +0 -20
  47. package/graphql/graphql.js +0 -159
  48. package/handlebars/handlebars.contribution.js +0 -20
  49. package/handlebars/handlebars.js +0 -439
  50. package/hcl/hcl.contribution.js +0 -19
  51. package/hcl/hcl.js +0 -191
  52. package/html/html.contribution.js +0 -20
  53. package/html/html.js +0 -328
  54. package/ini/ini.contribution.js +0 -20
  55. package/ini/ini.js +0 -79
  56. package/java/java.contribution.js +0 -20
  57. package/java/java.js +0 -240
  58. package/javascript/javascript.contribution.js +0 -22
  59. package/javascript/javascript.js +0 -77
  60. package/julia/julia.contribution.js +0 -19
  61. package/julia/julia.js +0 -519
  62. package/kotlin/kotlin.contribution.js +0 -20
  63. package/kotlin/kotlin.js +0 -261
  64. package/less/less.contribution.js +0 -20
  65. package/less/less.js +0 -169
  66. package/lexon/lexon.contribution.js +0 -19
  67. package/lexon/lexon.js +0 -165
  68. package/liquid/liquid.contribution.js +0 -20
  69. package/liquid/liquid.js +0 -260
  70. package/lua/lua.contribution.js +0 -19
  71. package/lua/lua.js +0 -170
  72. package/m3/m3.contribution.js +0 -19
  73. package/m3/m3.js +0 -218
  74. package/markdown/markdown.contribution.js +0 -19
  75. package/markdown/markdown.js +0 -237
  76. package/mdx/mdx.contribution.js +0 -19
  77. package/mdx/mdx.js +0 -184
  78. package/mips/mips.contribution.js +0 -20
  79. package/mips/mips.js +0 -206
  80. package/msdax/msdax.contribution.js +0 -19
  81. package/msdax/msdax.js +0 -383
  82. package/mysql/mysql.contribution.js +0 -19
  83. package/mysql/mysql.js +0 -886
  84. package/objective-c/objective-c.contribution.js +0 -19
  85. package/objective-c/objective-c.js +0 -191
  86. package/pascal/pascal.contribution.js +0 -20
  87. package/pascal/pascal.js +0 -259
  88. package/pascaligo/pascaligo.contribution.js +0 -19
  89. package/pascaligo/pascaligo.js +0 -172
  90. package/perl/perl.contribution.js +0 -19
  91. package/perl/perl.js +0 -634
  92. package/pgsql/pgsql.contribution.js +0 -19
  93. package/pgsql/pgsql.js +0 -859
  94. package/php/php.contribution.js +0 -20
  95. package/php/php.js +0 -508
  96. package/pla/pla.contribution.js +0 -18
  97. package/pla/pla.js +0 -145
  98. package/postiats/postiats.contribution.js +0 -19
  99. package/postiats/postiats.js +0 -915
  100. package/powerquery/powerquery.contribution.js +0 -19
  101. package/powerquery/powerquery.js +0 -898
  102. package/powershell/powershell.contribution.js +0 -19
  103. package/powershell/powershell.js +0 -247
  104. package/protobuf/protobuf.contribution.js +0 -19
  105. package/protobuf/protobuf.js +0 -428
  106. package/pug/pug.contribution.js +0 -19
  107. package/pug/pug.js +0 -410
  108. package/python/python.contribution.js +0 -20
  109. package/python/python.js +0 -320
  110. package/qsharp/qsharp.contribution.js +0 -19
  111. package/qsharp/qsharp.js +0 -309
  112. package/r/r.contribution.js +0 -19
  113. package/r/r.js +0 -251
  114. package/razor/razor.contribution.js +0 -20
  115. package/razor/razor.js +0 -570
  116. package/redis/redis.contribution.js +0 -19
  117. package/redis/redis.js +0 -310
  118. package/redshift/redshift.contribution.js +0 -19
  119. package/redshift/redshift.js +0 -817
  120. package/restructuredtext/restructuredtext.contribution.js +0 -19
  121. package/restructuredtext/restructuredtext.js +0 -182
  122. package/ruby/ruby.contribution.js +0 -20
  123. package/ruby/ruby.js +0 -519
  124. package/rust/rust.contribution.js +0 -19
  125. package/rust/rust.js +0 -351
  126. package/sb/sb.contribution.js +0 -19
  127. package/sb/sb.js +0 -123
  128. package/scala/scala.contribution.js +0 -20
  129. package/scala/scala.js +0 -378
  130. package/scheme/scheme.contribution.js +0 -19
  131. package/scheme/scheme.js +0 -116
  132. package/scss/scss.contribution.js +0 -20
  133. package/scss/scss.js +0 -268
  134. package/shell/shell.contribution.js +0 -19
  135. package/shell/shell.js +0 -229
  136. package/solidity/solidity.contribution.js +0 -19
  137. package/solidity/solidity.js +0 -1375
  138. package/sophia/sophia.contribution.js +0 -19
  139. package/sophia/sophia.js +0 -207
  140. package/sparql/sparql.contribution.js +0 -19
  141. package/sparql/sparql.js +0 -209
  142. package/sql/sql.contribution.js +0 -19
  143. package/sql/sql.js +0 -861
  144. package/st/st.contribution.js +0 -19
  145. package/st/st.js +0 -424
  146. package/swift/swift.contribution.js +0 -20
  147. package/swift/swift.js +0 -320
  148. package/systemverilog/systemverilog.contribution.js +0 -29
  149. package/systemverilog/systemverilog.js +0 -584
  150. package/tcl/tcl.contribution.js +0 -19
  151. package/tcl/tcl.js +0 -240
  152. package/twig/twig.contribution.js +0 -20
  153. package/twig/twig.js +0 -400
  154. package/typescript/typescript.contribution.js +0 -20
  155. package/typescript/typescript.js +0 -362
  156. package/typespec/typespec.contribution.js +0 -19
  157. package/typespec/typespec.js +0 -135
  158. package/vb/vb.contribution.js +0 -19
  159. package/vb/vb.js +0 -380
  160. package/wgsl/wgsl.contribution.js +0 -19
  161. package/wgsl/wgsl.js +0 -461
  162. package/xml/xml.contribution.js +0 -39
  163. package/xml/xml.js +0 -114
  164. package/yaml/yaml.contribution.js +0 -20
  165. package/yaml/yaml.js +0 -225
@@ -1,22 +0,0 @@
1
- import { registerLanguage } from '../_.contribution.js';
2
-
3
- /*!-----------------------------------------------------------------------------
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.54.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: "javascript",
12
- extensions: [".js", ".es6", ".jsx", ".mjs", ".cjs"],
13
- firstLine: "^#!.*\\bnode",
14
- filenames: ["jakefile"],
15
- aliases: ["JavaScript", "javascript", "js"],
16
- mimetypes: ["text/javascript"],
17
- loader: () => {
18
- {
19
- return import('./javascript.js');
20
- }
21
- }
22
- });
@@ -1,77 +0,0 @@
1
- import { conf as conf$1, language as language$1 } from '../typescript/typescript.js';
2
-
3
- /*!-----------------------------------------------------------------------------
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.54.0(undefined)
6
- * Released under the MIT license
7
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
8
- *-----------------------------------------------------------------------------*/
9
-
10
- var conf = conf$1;
11
- var language = {
12
- // Set defaultToken to invalid to see what you do not tokenize yet
13
- defaultToken: "invalid",
14
- tokenPostfix: ".js",
15
- keywords: [
16
- "break",
17
- "case",
18
- "catch",
19
- "class",
20
- "continue",
21
- "const",
22
- "constructor",
23
- "debugger",
24
- "default",
25
- "delete",
26
- "do",
27
- "else",
28
- "export",
29
- "extends",
30
- "false",
31
- "finally",
32
- "for",
33
- "from",
34
- "function",
35
- "get",
36
- "if",
37
- "import",
38
- "in",
39
- "instanceof",
40
- "let",
41
- "new",
42
- "null",
43
- "return",
44
- "set",
45
- "static",
46
- "super",
47
- "switch",
48
- "symbol",
49
- "this",
50
- "throw",
51
- "true",
52
- "try",
53
- "typeof",
54
- "undefined",
55
- "var",
56
- "void",
57
- "while",
58
- "with",
59
- "yield",
60
- "async",
61
- "await",
62
- "of"
63
- ],
64
- typeKeywords: [],
65
- operators: language$1.operators,
66
- symbols: language$1.symbols,
67
- escapes: language$1.escapes,
68
- digits: language$1.digits,
69
- octaldigits: language$1.octaldigits,
70
- binarydigits: language$1.binarydigits,
71
- hexdigits: language$1.hexdigits,
72
- regexpctl: language$1.regexpctl,
73
- regexpesc: language$1.regexpesc,
74
- tokenizer: language$1.tokenizer
75
- };
76
-
77
- export { conf, language };
@@ -1,19 +0,0 @@
1
- import { registerLanguage } from '../_.contribution.js';
2
-
3
- /*!-----------------------------------------------------------------------------
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.54.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: "julia",
12
- extensions: [".jl"],
13
- aliases: ["julia", "Julia"],
14
- loader: () => {
15
- {
16
- return import('./julia.js');
17
- }
18
- }
19
- });
package/julia/julia.js DELETED
@@ -1,519 +0,0 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.54.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 };
@@ -1,20 +0,0 @@
1
- import { registerLanguage } from '../_.contribution.js';
2
-
3
- /*!-----------------------------------------------------------------------------
4
- * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.54.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
- });