@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
package/scala/scala.js DELETED
@@ -1,378 +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/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 };
@@ -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: "scheme",
12
- extensions: [".scm", ".ss", ".sch", ".rkt"],
13
- aliases: ["scheme", "Scheme"],
14
- loader: () => {
15
- {
16
- return import('./scheme.js');
17
- }
18
- }
19
- });
package/scheme/scheme.js DELETED
@@ -1,116 +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/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 };
@@ -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: "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
- });