@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/scala/scala.js ADDED
@@ -0,0 +1,378 @@
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/scala/scala.ts
10
+ var conf = {
11
+ /*
12
+ * `...` is allowed as an identifier.
13
+ * $ is allowed in identifiers.
14
+ * unary_<op> is allowed as an identifier.
15
+ * <name>_= is allowed as an identifier.
16
+ */
17
+ wordPattern: /(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,
18
+ comments: {
19
+ lineComment: "//",
20
+ blockComment: ["/*", "*/"]
21
+ },
22
+ brackets: [
23
+ ["{", "}"],
24
+ ["[", "]"],
25
+ ["(", ")"]
26
+ ],
27
+ autoClosingPairs: [
28
+ { open: "{", close: "}" },
29
+ { open: "[", close: "]" },
30
+ { open: "(", close: ")" },
31
+ { open: '"', close: '"' },
32
+ { open: "'", close: "'" }
33
+ ],
34
+ surroundingPairs: [
35
+ { open: "{", close: "}" },
36
+ { open: "[", close: "]" },
37
+ { open: "(", close: ")" },
38
+ { open: '"', close: '"' },
39
+ { open: "'", close: "'" }
40
+ ],
41
+ folding: {
42
+ markers: {
43
+ start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
44
+ end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
45
+ }
46
+ }
47
+ };
48
+ var language = {
49
+ tokenPostfix: ".scala",
50
+ // We can't easily add everything from Dotty, but we can at least add some of its keywords
51
+ keywords: [
52
+ "asInstanceOf",
53
+ "catch",
54
+ "class",
55
+ "classOf",
56
+ "def",
57
+ "do",
58
+ "else",
59
+ "extends",
60
+ "finally",
61
+ "for",
62
+ "foreach",
63
+ "forSome",
64
+ "if",
65
+ "import",
66
+ "isInstanceOf",
67
+ "macro",
68
+ "match",
69
+ "new",
70
+ "object",
71
+ "package",
72
+ "return",
73
+ "throw",
74
+ "trait",
75
+ "try",
76
+ "type",
77
+ "until",
78
+ "val",
79
+ "var",
80
+ "while",
81
+ "with",
82
+ "yield",
83
+ // Dotty-specific:
84
+ "given",
85
+ "enum",
86
+ "then"
87
+ ],
88
+ // Dotty-specific:
89
+ softKeywords: ["as", "export", "extension", "end", "derives", "on"],
90
+ constants: ["true", "false", "null", "this", "super"],
91
+ modifiers: [
92
+ "abstract",
93
+ "final",
94
+ "implicit",
95
+ "lazy",
96
+ "override",
97
+ "private",
98
+ "protected",
99
+ "sealed"
100
+ ],
101
+ // Dotty-specific:
102
+ softModifiers: ["inline", "opaque", "open", "transparent", "using"],
103
+ name: /(?:[a-z_$][\w$]*|`[^`]+`)/,
104
+ type: /(?:[A-Z][\w$]*)/,
105
+ // we include these common regular expressions
106
+ symbols: /[=><!~?:&|+\-*\/^\\%@#]+/,
107
+ digits: /\d+(_+\d+)*/,
108
+ hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
109
+ // C# style strings
110
+ escapes: /\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
111
+ fstring_conv: /[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,
112
+ // The main tokenizer for our languages
113
+ tokenizer: {
114
+ root: [
115
+ // strings
116
+ [/\braw"""/, { token: "string.quote", bracket: "@open", next: "@rawstringt" }],
117
+ [/\braw"/, { token: "string.quote", bracket: "@open", next: "@rawstring" }],
118
+ [/\bs"""/, { token: "string.quote", bracket: "@open", next: "@sstringt" }],
119
+ [/\bs"/, { token: "string.quote", bracket: "@open", next: "@sstring" }],
120
+ [/\bf""""/, { token: "string.quote", bracket: "@open", next: "@fstringt" }],
121
+ [/\bf"/, { token: "string.quote", bracket: "@open", next: "@fstring" }],
122
+ [/"""/, { token: "string.quote", bracket: "@open", next: "@stringt" }],
123
+ [/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
124
+ // numbers
125
+ [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
126
+ [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float", "@allowMethod"],
127
+ [/0[xX](@hexdigits)[Ll]?/, "number.hex", "@allowMethod"],
128
+ [/(@digits)[fFdD]/, "number.float", "@allowMethod"],
129
+ [/(@digits)[lL]?/, "number", "@allowMethod"],
130
+ [/\b_\*/, "key"],
131
+ [/\b(_)\b/, "keyword", "@allowMethod"],
132
+ // identifiers and keywords
133
+ [/\bimport\b/, "keyword", "@import"],
134
+ [/\b(case)([ \t]+)(class)\b/, ["keyword.modifier", "white", "keyword"]],
135
+ [/\bcase\b/, "keyword", "@case"],
136
+ [/\bva[lr]\b/, "keyword", "@vardef"],
137
+ [
138
+ /\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,
139
+ ["keyword", "white", "identifier"]
140
+ ],
141
+ [/@name(?=[ \t]*:(?!:))/, "variable"],
142
+ [/(\.)(@name|@symbols)/, ["operator", { token: "@rematch", next: "@allowMethod" }]],
143
+ [/([{(])(\s*)(@name(?=\s*=>))/, ["@brackets", "white", "variable"]],
144
+ [
145
+ /@name/,
146
+ {
147
+ cases: {
148
+ "@keywords": "keyword",
149
+ "@softKeywords": "keyword",
150
+ "@modifiers": "keyword.modifier",
151
+ "@softModifiers": "keyword.modifier",
152
+ "@constants": {
153
+ token: "constant",
154
+ next: "@allowMethod"
155
+ },
156
+ "@default": {
157
+ token: "identifier",
158
+ next: "@allowMethod"
159
+ }
160
+ }
161
+ }
162
+ ],
163
+ [/@type/, "type", "@allowMethod"],
164
+ // whitespace
165
+ { include: "@whitespace" },
166
+ // @ annotations.
167
+ [/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/, "annotation"],
168
+ // delimiters and operators
169
+ [/[{(]/, "@brackets"],
170
+ [/[})]/, "@brackets", "@allowMethod"],
171
+ [/\[/, "operator.square"],
172
+ [/](?!\s*(?:va[rl]|def|type)\b)/, "operator.square", "@allowMethod"],
173
+ [/]/, "operator.square"],
174
+ [/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/, "keyword"],
175
+ [/@symbols/, "operator"],
176
+ // delimiter: after number because of .\d floats
177
+ [/[;,\.]/, "delimiter"],
178
+ // symbols
179
+ [/'[a-zA-Z$][\w$]*(?!')/, "attribute.name"],
180
+ // characters
181
+ [/'[^\\']'/, "string", "@allowMethod"],
182
+ [/(')(@escapes)(')/, ["string", "string.escape", { token: "string", next: "@allowMethod" }]],
183
+ [/'/, "string.invalid"]
184
+ ],
185
+ import: [
186
+ [/;/, "delimiter", "@pop"],
187
+ [/^|$/, "", "@pop"],
188
+ [/[ \t]+/, "white"],
189
+ [/[\n\r]+/, "white", "@pop"],
190
+ [/\/\*/, "comment", "@comment"],
191
+ [/@name|@type/, "type"],
192
+ [/[(){}]/, "@brackets"],
193
+ [/[[\]]/, "operator.square"],
194
+ [/[\.,]/, "delimiter"]
195
+ ],
196
+ allowMethod: [
197
+ [/^|$/, "", "@pop"],
198
+ [/[ \t]+/, "white"],
199
+ [/[\n\r]+/, "white", "@pop"],
200
+ [/\/\*/, "comment", "@comment"],
201
+ [/(?==>[\s\w([{])/, "keyword", "@pop"],
202
+ [
203
+ /(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,
204
+ {
205
+ cases: {
206
+ "@keywords": { token: "keyword", next: "@pop" },
207
+ "->|<-|>:|<:|<%": { token: "keyword", next: "@pop" },
208
+ "@default": { token: "@rematch", next: "@pop" }
209
+ }
210
+ }
211
+ ],
212
+ ["", "", "@pop"]
213
+ ],
214
+ comment: [
215
+ [/[^\/*]+/, "comment"],
216
+ [/\/\*/, "comment", "@push"],
217
+ // nested comment
218
+ [/\*\//, "comment", "@pop"],
219
+ [/[\/*]/, "comment"]
220
+ ],
221
+ case: [
222
+ [/\b_\*/, "key"],
223
+ [/\b(_|true|false|null|this|super)\b/, "keyword", "@allowMethod"],
224
+ [/\bif\b|=>/, "keyword", "@pop"],
225
+ [/`[^`]+`/, "identifier", "@allowMethod"],
226
+ [/@name/, "variable", "@allowMethod"],
227
+ [/:::?|\||@(?![a-z_$])/, "keyword"],
228
+ { include: "@root" }
229
+ ],
230
+ vardef: [
231
+ [/\b_\*/, "key"],
232
+ [/\b(_|true|false|null|this|super)\b/, "keyword"],
233
+ [/@name/, "variable"],
234
+ [/:::?|\||@(?![a-z_$])/, "keyword"],
235
+ [/=|:(?!:)/, "operator", "@pop"],
236
+ [/$/, "white", "@pop"],
237
+ { include: "@root" }
238
+ ],
239
+ string: [
240
+ [/[^\\"\n\r]+/, "string"],
241
+ [/@escapes/, "string.escape"],
242
+ [/\\./, "string.escape.invalid"],
243
+ [
244
+ /"/,
245
+ {
246
+ token: "string.quote",
247
+ bracket: "@close",
248
+ switchTo: "@allowMethod"
249
+ }
250
+ ]
251
+ ],
252
+ stringt: [
253
+ [/[^\\"\n\r]+/, "string"],
254
+ [/@escapes/, "string.escape"],
255
+ [/\\./, "string.escape.invalid"],
256
+ [/"(?=""")/, "string"],
257
+ [
258
+ /"""/,
259
+ {
260
+ token: "string.quote",
261
+ bracket: "@close",
262
+ switchTo: "@allowMethod"
263
+ }
264
+ ],
265
+ [/"/, "string"]
266
+ ],
267
+ fstring: [
268
+ [/@escapes/, "string.escape"],
269
+ [
270
+ /"/,
271
+ {
272
+ token: "string.quote",
273
+ bracket: "@close",
274
+ switchTo: "@allowMethod"
275
+ }
276
+ ],
277
+ [/\$\$/, "string"],
278
+ [/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
279
+ [/\$\{/, "operator", "@interp"],
280
+ [/%%/, "string"],
281
+ [
282
+ /(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
283
+ ["metatag", "keyword.modifier", "number", "metatag"]
284
+ ],
285
+ [/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
286
+ [/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
287
+ [/(%)(@fstring_conv)/, ["metatag", "metatag"]],
288
+ [/./, "string"]
289
+ ],
290
+ fstringt: [
291
+ [/@escapes/, "string.escape"],
292
+ [/"(?=""")/, "string"],
293
+ [
294
+ /"""/,
295
+ {
296
+ token: "string.quote",
297
+ bracket: "@close",
298
+ switchTo: "@allowMethod"
299
+ }
300
+ ],
301
+ [/\$\$/, "string"],
302
+ [/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
303
+ [/\$\{/, "operator", "@interp"],
304
+ [/%%/, "string"],
305
+ [
306
+ /(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,
307
+ ["metatag", "keyword.modifier", "number", "metatag"]
308
+ ],
309
+ [/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/, ["metatag", "number", "metatag"]],
310
+ [/(%)([\-#+ 0,(])(@fstring_conv)/, ["metatag", "keyword.modifier", "metatag"]],
311
+ [/(%)(@fstring_conv)/, ["metatag", "metatag"]],
312
+ [/./, "string"]
313
+ ],
314
+ sstring: [
315
+ [/@escapes/, "string.escape"],
316
+ [
317
+ /"/,
318
+ {
319
+ token: "string.quote",
320
+ bracket: "@close",
321
+ switchTo: "@allowMethod"
322
+ }
323
+ ],
324
+ [/\$\$/, "string"],
325
+ [/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
326
+ [/\$\{/, "operator", "@interp"],
327
+ [/./, "string"]
328
+ ],
329
+ sstringt: [
330
+ [/@escapes/, "string.escape"],
331
+ [/"(?=""")/, "string"],
332
+ [
333
+ /"""/,
334
+ {
335
+ token: "string.quote",
336
+ bracket: "@close",
337
+ switchTo: "@allowMethod"
338
+ }
339
+ ],
340
+ [/\$\$/, "string"],
341
+ [/(\$)([a-z_]\w*)/, ["operator", "identifier"]],
342
+ [/\$\{/, "operator", "@interp"],
343
+ [/./, "string"]
344
+ ],
345
+ interp: [[/{/, "operator", "@push"], [/}/, "operator", "@pop"], { include: "@root" }],
346
+ rawstring: [
347
+ [/[^"]/, "string"],
348
+ [
349
+ /"/,
350
+ {
351
+ token: "string.quote",
352
+ bracket: "@close",
353
+ switchTo: "@allowMethod"
354
+ }
355
+ ]
356
+ ],
357
+ rawstringt: [
358
+ [/[^"]/, "string"],
359
+ [/"(?=""")/, "string"],
360
+ [
361
+ /"""/,
362
+ {
363
+ token: "string.quote",
364
+ bracket: "@close",
365
+ switchTo: "@allowMethod"
366
+ }
367
+ ],
368
+ [/"/, "string"]
369
+ ],
370
+ whitespace: [
371
+ [/[ \t\r\n]+/, "white"],
372
+ [/\/\*/, "comment", "@comment"],
373
+ [/\/\/.*$/, "comment"]
374
+ ]
375
+ }
376
+ };
377
+
378
+ 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: "scheme",
12
+ extensions: [".scm", ".ss", ".sch", ".rkt"],
13
+ aliases: ["scheme", "Scheme"],
14
+ loader: () => {
15
+ {
16
+ return import('./scheme.js');
17
+ }
18
+ }
19
+ });
@@ -0,0 +1,116 @@
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/scheme/scheme.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: '"' }
25
+ ],
26
+ surroundingPairs: [
27
+ { open: "{", close: "}" },
28
+ { open: "[", close: "]" },
29
+ { open: "(", close: ")" },
30
+ { open: '"', close: '"' }
31
+ ]
32
+ };
33
+ var language = {
34
+ defaultToken: "",
35
+ ignoreCase: true,
36
+ tokenPostfix: ".scheme",
37
+ brackets: [
38
+ { open: "(", close: ")", token: "delimiter.parenthesis" },
39
+ { open: "{", close: "}", token: "delimiter.curly" },
40
+ { open: "[", close: "]", token: "delimiter.square" }
41
+ ],
42
+ keywords: [
43
+ "case",
44
+ "do",
45
+ "let",
46
+ "loop",
47
+ "if",
48
+ "else",
49
+ "when",
50
+ "cons",
51
+ "car",
52
+ "cdr",
53
+ "cond",
54
+ "lambda",
55
+ "lambda*",
56
+ "syntax-rules",
57
+ "format",
58
+ "set!",
59
+ "quote",
60
+ "eval",
61
+ "append",
62
+ "list",
63
+ "list?",
64
+ "member?",
65
+ "load"
66
+ ],
67
+ constants: ["#t", "#f"],
68
+ operators: ["eq?", "eqv?", "equal?", "and", "or", "not", "null?"],
69
+ tokenizer: {
70
+ root: [
71
+ [/#[xXoObB][0-9a-fA-F]+/, "number.hex"],
72
+ [/[+-]?\d+(?:(?:\.\d*)?(?:[eE][+-]?\d+)?)?/, "number.float"],
73
+ [
74
+ /(?:\b(?:(define|define-syntax|define-macro))\b)(\s+)((?:\w|\-|\!|\?)*)/,
75
+ ["keyword", "white", "variable"]
76
+ ],
77
+ { include: "@whitespace" },
78
+ { include: "@strings" },
79
+ [
80
+ /[a-zA-Z_#][a-zA-Z0-9_\-\?\!\*]*/,
81
+ {
82
+ cases: {
83
+ "@keywords": "keyword",
84
+ "@constants": "constant",
85
+ "@operators": "operators",
86
+ "@default": "identifier"
87
+ }
88
+ }
89
+ ]
90
+ ],
91
+ comment: [
92
+ [/[^\|#]+/, "comment"],
93
+ [/#\|/, "comment", "@push"],
94
+ [/\|#/, "comment", "@pop"],
95
+ [/[\|#]/, "comment"]
96
+ ],
97
+ whitespace: [
98
+ [/[ \t\r\n]+/, "white"],
99
+ [/#\|/, "comment", "@comment"],
100
+ [/;.*$/, "comment"]
101
+ ],
102
+ strings: [
103
+ [/"$/, "string", "@popall"],
104
+ [/"(?=.)/, "string", "@multiLineString"]
105
+ ],
106
+ multiLineString: [
107
+ [/[^\\"]+$/, "string", "@popall"],
108
+ [/[^\\"]+/, "string"],
109
+ [/\\./, "string.escape"],
110
+ [/"/, "string", "@popall"],
111
+ [/\\$/, "string"]
112
+ ]
113
+ }
114
+ };
115
+
116
+ 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: "scss",
12
+ extensions: [".scss"],
13
+ aliases: ["Sass", "sass", "scss"],
14
+ mimetypes: ["text/x-scss", "text/scss"],
15
+ loader: () => {
16
+ {
17
+ return import('./scss.js');
18
+ }
19
+ }
20
+ });