@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,138 @@
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/dockerfile/dockerfile.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
+ defaultToken: "",
33
+ tokenPostfix: ".dockerfile",
34
+ variable: /\${?[\w]+}?/,
35
+ tokenizer: {
36
+ root: [
37
+ { include: "@whitespace" },
38
+ { include: "@comment" },
39
+ [/(ONBUILD)(\s+)/, ["keyword", ""]],
40
+ [/(ENV)(\s+)([\w]+)/, ["keyword", "", { token: "variable", next: "@arguments" }]],
41
+ [
42
+ /(FROM|MAINTAINER|RUN|EXPOSE|ENV|ADD|ARG|VOLUME|LABEL|USER|WORKDIR|COPY|CMD|STOPSIGNAL|SHELL|HEALTHCHECK|ENTRYPOINT)/,
43
+ { token: "keyword", next: "@arguments" }
44
+ ]
45
+ ],
46
+ arguments: [
47
+ { include: "@whitespace" },
48
+ { include: "@strings" },
49
+ [
50
+ /(@variable)/,
51
+ {
52
+ cases: {
53
+ "@eos": { token: "variable", next: "@popall" },
54
+ "@default": "variable"
55
+ }
56
+ }
57
+ ],
58
+ [
59
+ /\\/,
60
+ {
61
+ cases: {
62
+ "@eos": "",
63
+ "@default": ""
64
+ }
65
+ }
66
+ ],
67
+ [
68
+ /./,
69
+ {
70
+ cases: {
71
+ "@eos": { token: "", next: "@popall" },
72
+ "@default": ""
73
+ }
74
+ }
75
+ ]
76
+ ],
77
+ // Deal with white space, including comments
78
+ whitespace: [
79
+ [
80
+ /\s+/,
81
+ {
82
+ cases: {
83
+ "@eos": { token: "", next: "@popall" },
84
+ "@default": ""
85
+ }
86
+ }
87
+ ]
88
+ ],
89
+ comment: [[/(^#.*$)/, "comment", "@popall"]],
90
+ // Recognize strings, including those broken across lines with \ (but not without)
91
+ strings: [
92
+ [/\\'$/, "", "@popall"],
93
+ // \' leaves @arguments at eol
94
+ [/\\'/, ""],
95
+ // \' is not a string
96
+ [/'$/, "string", "@popall"],
97
+ [/'/, "string", "@stringBody"],
98
+ [/"$/, "string", "@popall"],
99
+ [/"/, "string", "@dblStringBody"]
100
+ ],
101
+ stringBody: [
102
+ [
103
+ /[^\\\$']/,
104
+ {
105
+ cases: {
106
+ "@eos": { token: "string", next: "@popall" },
107
+ "@default": "string"
108
+ }
109
+ }
110
+ ],
111
+ [/\\./, "string.escape"],
112
+ [/'$/, "string", "@popall"],
113
+ [/'/, "string", "@pop"],
114
+ [/(@variable)/, "variable"],
115
+ [/\\$/, "string"],
116
+ [/$/, "string", "@popall"]
117
+ ],
118
+ dblStringBody: [
119
+ [
120
+ /[^\\\$"]/,
121
+ {
122
+ cases: {
123
+ "@eos": { token: "string", next: "@popall" },
124
+ "@default": "string"
125
+ }
126
+ }
127
+ ],
128
+ [/\\./, "string.escape"],
129
+ [/"$/, "string", "@popall"],
130
+ [/"/, "string", "@pop"],
131
+ [/(@variable)/, "variable"],
132
+ [/\\$/, "string"],
133
+ [/$/, "string", "@popall"]
134
+ ]
135
+ }
136
+ };
137
+
138
+ 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: "ecl",
12
+ extensions: [".ecl"],
13
+ aliases: ["ECL", "Ecl", "ecl"],
14
+ loader: () => {
15
+ {
16
+ return import('./ecl.js');
17
+ }
18
+ }
19
+ });
package/ecl/ecl.js ADDED
@@ -0,0 +1,464 @@
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/ecl/ecl.ts
10
+ var conf = {
11
+ comments: {
12
+ lineComment: "//",
13
+ blockComment: ["/*", "*/"]
14
+ },
15
+ brackets: [
16
+ ["{", "}"],
17
+ ["[", "]"],
18
+ ["(", ")"]
19
+ ],
20
+ autoClosingPairs: [
21
+ { open: "{", close: "}" },
22
+ { open: "[", close: "]" },
23
+ { open: "(", close: ")" },
24
+ { open: "'", close: "'", notIn: ["string", "comment"] },
25
+ { open: '"', close: '"', notIn: ["string", "comment"] }
26
+ ],
27
+ surroundingPairs: [
28
+ { open: "{", close: "}" },
29
+ { open: "[", close: "]" },
30
+ { open: "(", close: ")" },
31
+ { open: "<", close: ">" },
32
+ { open: "'", close: "'" },
33
+ { open: '"', close: '"' }
34
+ ]
35
+ };
36
+ var language = {
37
+ defaultToken: "",
38
+ tokenPostfix: ".ecl",
39
+ ignoreCase: true,
40
+ brackets: [
41
+ { open: "{", close: "}", token: "delimiter.curly" },
42
+ { open: "[", close: "]", token: "delimiter.square" },
43
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
44
+ { open: "<", close: ">", token: "delimiter.angle" }
45
+ ],
46
+ pounds: [
47
+ "append",
48
+ "break",
49
+ "declare",
50
+ "demangle",
51
+ "end",
52
+ "for",
53
+ "getdatatype",
54
+ "if",
55
+ "inmodule",
56
+ "loop",
57
+ "mangle",
58
+ "onwarning",
59
+ "option",
60
+ "set",
61
+ "stored",
62
+ "uniquename"
63
+ ].join("|"),
64
+ keywords: [
65
+ "__compressed__",
66
+ "after",
67
+ "all",
68
+ "and",
69
+ "any",
70
+ "as",
71
+ "atmost",
72
+ "before",
73
+ "beginc",
74
+ "best",
75
+ "between",
76
+ "case",
77
+ "cluster",
78
+ "compressed",
79
+ "compression",
80
+ "const",
81
+ "counter",
82
+ "csv",
83
+ "default",
84
+ "descend",
85
+ "embed",
86
+ "encoding",
87
+ "encrypt",
88
+ "end",
89
+ "endc",
90
+ "endembed",
91
+ "endmacro",
92
+ "enum",
93
+ "escape",
94
+ "except",
95
+ "exclusive",
96
+ "expire",
97
+ "export",
98
+ "extend",
99
+ "fail",
100
+ "few",
101
+ "fileposition",
102
+ "first",
103
+ "flat",
104
+ "forward",
105
+ "from",
106
+ "full",
107
+ "function",
108
+ "functionmacro",
109
+ "group",
110
+ "grouped",
111
+ "heading",
112
+ "hole",
113
+ "ifblock",
114
+ "import",
115
+ "in",
116
+ "inner",
117
+ "interface",
118
+ "internal",
119
+ "joined",
120
+ "keep",
121
+ "keyed",
122
+ "last",
123
+ "left",
124
+ "limit",
125
+ "linkcounted",
126
+ "literal",
127
+ "little_endian",
128
+ "load",
129
+ "local",
130
+ "locale",
131
+ "lookup",
132
+ "lzw",
133
+ "macro",
134
+ "many",
135
+ "maxcount",
136
+ "maxlength",
137
+ "min skew",
138
+ "module",
139
+ "mofn",
140
+ "multiple",
141
+ "named",
142
+ "namespace",
143
+ "nocase",
144
+ "noroot",
145
+ "noscan",
146
+ "nosort",
147
+ "not",
148
+ "noxpath",
149
+ "of",
150
+ "onfail",
151
+ "only",
152
+ "opt",
153
+ "or",
154
+ "outer",
155
+ "overwrite",
156
+ "packed",
157
+ "partition",
158
+ "penalty",
159
+ "physicallength",
160
+ "pipe",
161
+ "prefetch",
162
+ "quote",
163
+ "record",
164
+ "repeat",
165
+ "retry",
166
+ "return",
167
+ "right",
168
+ "right1",
169
+ "right2",
170
+ "rows",
171
+ "rowset",
172
+ "scan",
173
+ "scope",
174
+ "self",
175
+ "separator",
176
+ "service",
177
+ "shared",
178
+ "skew",
179
+ "skip",
180
+ "smart",
181
+ "soapaction",
182
+ "sql",
183
+ "stable",
184
+ "store",
185
+ "terminator",
186
+ "thor",
187
+ "threshold",
188
+ "timelimit",
189
+ "timeout",
190
+ "token",
191
+ "transform",
192
+ "trim",
193
+ "type",
194
+ "unicodeorder",
195
+ "unordered",
196
+ "unsorted",
197
+ "unstable",
198
+ "update",
199
+ "use",
200
+ "validate",
201
+ "virtual",
202
+ "whole",
203
+ "width",
204
+ "wild",
205
+ "within",
206
+ "wnotrim",
207
+ "xml",
208
+ "xpath"
209
+ ],
210
+ functions: [
211
+ "abs",
212
+ "acos",
213
+ "aggregate",
214
+ "allnodes",
215
+ "apply",
216
+ "ascii",
217
+ "asin",
218
+ "assert",
219
+ "asstring",
220
+ "atan",
221
+ "atan2",
222
+ "ave",
223
+ "build",
224
+ "buildindex",
225
+ "case",
226
+ "catch",
227
+ "choose",
228
+ "choosen",
229
+ "choosesets",
230
+ "clustersize",
231
+ "combine",
232
+ "correlation",
233
+ "cos",
234
+ "cosh",
235
+ "count",
236
+ "covariance",
237
+ "cron",
238
+ "dataset",
239
+ "dedup",
240
+ "define",
241
+ "denormalize",
242
+ "dictionary",
243
+ "distribute",
244
+ "distributed",
245
+ "distribution",
246
+ "ebcdic",
247
+ "enth",
248
+ "error",
249
+ "evaluate",
250
+ "event",
251
+ "eventextra",
252
+ "eventname",
253
+ "exists",
254
+ "exp",
255
+ "fail",
256
+ "failcode",
257
+ "failmessage",
258
+ "fetch",
259
+ "fromunicode",
260
+ "fromxml",
261
+ "getenv",
262
+ "getisvalid",
263
+ "global",
264
+ "graph",
265
+ "group",
266
+ "hash",
267
+ "hash32",
268
+ "hash64",
269
+ "hashcrc",
270
+ "hashmd5",
271
+ "having",
272
+ "httpcall",
273
+ "httpheader",
274
+ "if",
275
+ "iff",
276
+ "index",
277
+ "intformat",
278
+ "isvalid",
279
+ "iterate",
280
+ "join",
281
+ "keydiff",
282
+ "keypatch",
283
+ "keyunicode",
284
+ "length",
285
+ "library",
286
+ "limit",
287
+ "ln",
288
+ "loadxml",
289
+ "local",
290
+ "log",
291
+ "loop",
292
+ "map",
293
+ "matched",
294
+ "matchlength",
295
+ "matchposition",
296
+ "matchtext",
297
+ "matchunicode",
298
+ "max",
299
+ "merge",
300
+ "mergejoin",
301
+ "min",
302
+ "nofold",
303
+ "nolocal",
304
+ "nonempty",
305
+ "normalize",
306
+ "nothor",
307
+ "notify",
308
+ "output",
309
+ "parallel",
310
+ "parse",
311
+ "pipe",
312
+ "power",
313
+ "preload",
314
+ "process",
315
+ "project",
316
+ "pull",
317
+ "random",
318
+ "range",
319
+ "rank",
320
+ "ranked",
321
+ "realformat",
322
+ "recordof",
323
+ "regexfind",
324
+ "regexreplace",
325
+ "regroup",
326
+ "rejected",
327
+ "rollup",
328
+ "round",
329
+ "roundup",
330
+ "row",
331
+ "rowdiff",
332
+ "sample",
333
+ "sequential",
334
+ "set",
335
+ "sin",
336
+ "sinh",
337
+ "sizeof",
338
+ "soapcall",
339
+ "sort",
340
+ "sorted",
341
+ "sqrt",
342
+ "stepped",
343
+ "stored",
344
+ "sum",
345
+ "table",
346
+ "tan",
347
+ "tanh",
348
+ "thisnode",
349
+ "topn",
350
+ "tounicode",
351
+ "toxml",
352
+ "transfer",
353
+ "transform",
354
+ "trim",
355
+ "truncate",
356
+ "typeof",
357
+ "ungroup",
358
+ "unicodeorder",
359
+ "variance",
360
+ "wait",
361
+ "which",
362
+ "workunit",
363
+ "xmldecode",
364
+ "xmlencode",
365
+ "xmltext",
366
+ "xmlunicode"
367
+ ],
368
+ typesint: ["integer", "unsigned"].join("|"),
369
+ typesnum: ["data", "qstring", "string", "unicode", "utf8", "varstring", "varunicode"],
370
+ typesone: [
371
+ "ascii",
372
+ "big_endian",
373
+ "boolean",
374
+ "data",
375
+ "decimal",
376
+ "ebcdic",
377
+ "grouped",
378
+ "integer",
379
+ "linkcounted",
380
+ "pattern",
381
+ "qstring",
382
+ "real",
383
+ "record",
384
+ "rule",
385
+ "set of",
386
+ "streamed",
387
+ "string",
388
+ "token",
389
+ "udecimal",
390
+ "unicode",
391
+ "unsigned",
392
+ "utf8",
393
+ "varstring",
394
+ "varunicode"
395
+ ].join("|"),
396
+ operators: ["+", "-", "/", ":=", "<", "<>", "=", ">", "\\", "and", "in", "not", "or"],
397
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
398
+ // escape sequences
399
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
400
+ // The main tokenizer for our languages
401
+ tokenizer: {
402
+ root: [
403
+ [/@typesint[4|8]/, "type"],
404
+ [/#(@pounds)/, "type"],
405
+ [/@typesone/, "type"],
406
+ [
407
+ /[a-zA-Z_$][\w-$]*/,
408
+ {
409
+ cases: {
410
+ "@functions": "keyword.function",
411
+ "@keywords": "keyword",
412
+ "@operators": "operator"
413
+ }
414
+ }
415
+ ],
416
+ // whitespace
417
+ { include: "@whitespace" },
418
+ [/[{}()\[\]]/, "@brackets"],
419
+ [/[<>](?!@symbols)/, "@brackets"],
420
+ [
421
+ /@symbols/,
422
+ {
423
+ cases: {
424
+ "@operators": "delimiter",
425
+ "@default": ""
426
+ }
427
+ }
428
+ ],
429
+ // numbers
430
+ [/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/, "number.float"],
431
+ [/0[xX][0-9a-fA-F_]+/, "number.hex"],
432
+ [/0[bB][01]+/, "number.hex"],
433
+ // binary: use same theme style as hex
434
+ [/[0-9_]+/, "number"],
435
+ // delimiter: after number because of .\d floats
436
+ [/[;,.]/, "delimiter"],
437
+ // strings
438
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
439
+ [/"/, "string", "@string"],
440
+ // characters
441
+ [/'[^\\']'/, "string"],
442
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
443
+ [/'/, "string.invalid"]
444
+ ],
445
+ whitespace: [
446
+ [/[ \t\v\f\r\n]+/, ""],
447
+ [/\/\*/, "comment", "@comment"],
448
+ [/\/\/.*$/, "comment"]
449
+ ],
450
+ comment: [
451
+ [/[^\/*]+/, "comment"],
452
+ [/\*\//, "comment", "@pop"],
453
+ [/[\/*]/, "comment"]
454
+ ],
455
+ string: [
456
+ [/[^\\']+/, "string"],
457
+ [/@escapes/, "string.escape"],
458
+ [/\\./, "string.escape.invalid"],
459
+ [/'/, "string", "@pop"]
460
+ ]
461
+ }
462
+ };
463
+
464
+ 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: "elixir",
12
+ extensions: [".ex", ".exs"],
13
+ aliases: ["Elixir", "elixir", "ex"],
14
+ loader: () => {
15
+ {
16
+ return import('./elixir.js');
17
+ }
18
+ }
19
+ });