@codingame/monaco-vscode-standalone-languages 23.1.1 → 23.2.1

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/rust/rust.js DELETED
@@ -1,351 +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/rust/rust.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"] }
25
- ],
26
- surroundingPairs: [
27
- { open: "{", close: "}" },
28
- { open: "[", close: "]" },
29
- { open: "(", close: ")" },
30
- { open: '"', close: '"' },
31
- { open: "'", close: "'" }
32
- ],
33
- folding: {
34
- markers: {
35
- start: new RegExp("^\\s*#pragma\\s+region\\b"),
36
- end: new RegExp("^\\s*#pragma\\s+endregion\\b")
37
- }
38
- }
39
- };
40
- var language = {
41
- tokenPostfix: ".rust",
42
- defaultToken: "invalid",
43
- keywords: [
44
- "as",
45
- "async",
46
- "await",
47
- "box",
48
- "break",
49
- "const",
50
- "continue",
51
- "crate",
52
- "dyn",
53
- "else",
54
- "enum",
55
- "extern",
56
- "false",
57
- "fn",
58
- "for",
59
- "if",
60
- "impl",
61
- "in",
62
- "let",
63
- "loop",
64
- "match",
65
- "mod",
66
- "move",
67
- "mut",
68
- "pub",
69
- "ref",
70
- "return",
71
- "self",
72
- "static",
73
- "struct",
74
- "super",
75
- "trait",
76
- "true",
77
- "try",
78
- "type",
79
- "unsafe",
80
- "use",
81
- "where",
82
- "while",
83
- "catch",
84
- "default",
85
- "union",
86
- "static",
87
- "abstract",
88
- "alignof",
89
- "become",
90
- "do",
91
- "final",
92
- "macro",
93
- "offsetof",
94
- "override",
95
- "priv",
96
- "proc",
97
- "pure",
98
- "sizeof",
99
- "typeof",
100
- "unsized",
101
- "virtual",
102
- "yield"
103
- ],
104
- typeKeywords: [
105
- "Self",
106
- "m32",
107
- "m64",
108
- "m128",
109
- "f80",
110
- "f16",
111
- "f128",
112
- "int",
113
- "uint",
114
- "float",
115
- "char",
116
- "bool",
117
- "u8",
118
- "u16",
119
- "u32",
120
- "u64",
121
- "f32",
122
- "f64",
123
- "i8",
124
- "i16",
125
- "i32",
126
- "i64",
127
- "str",
128
- "Option",
129
- "Either",
130
- "c_float",
131
- "c_double",
132
- "c_void",
133
- "FILE",
134
- "fpos_t",
135
- "DIR",
136
- "dirent",
137
- "c_char",
138
- "c_schar",
139
- "c_uchar",
140
- "c_short",
141
- "c_ushort",
142
- "c_int",
143
- "c_uint",
144
- "c_long",
145
- "c_ulong",
146
- "size_t",
147
- "ptrdiff_t",
148
- "clock_t",
149
- "time_t",
150
- "c_longlong",
151
- "c_ulonglong",
152
- "intptr_t",
153
- "uintptr_t",
154
- "off_t",
155
- "dev_t",
156
- "ino_t",
157
- "pid_t",
158
- "mode_t",
159
- "ssize_t"
160
- ],
161
- constants: ["true", "false", "Some", "None", "Left", "Right", "Ok", "Err"],
162
- supportConstants: [
163
- "EXIT_FAILURE",
164
- "EXIT_SUCCESS",
165
- "RAND_MAX",
166
- "EOF",
167
- "SEEK_SET",
168
- "SEEK_CUR",
169
- "SEEK_END",
170
- "_IOFBF",
171
- "_IONBF",
172
- "_IOLBF",
173
- "BUFSIZ",
174
- "FOPEN_MAX",
175
- "FILENAME_MAX",
176
- "L_tmpnam",
177
- "TMP_MAX",
178
- "O_RDONLY",
179
- "O_WRONLY",
180
- "O_RDWR",
181
- "O_APPEND",
182
- "O_CREAT",
183
- "O_EXCL",
184
- "O_TRUNC",
185
- "S_IFIFO",
186
- "S_IFCHR",
187
- "S_IFBLK",
188
- "S_IFDIR",
189
- "S_IFREG",
190
- "S_IFMT",
191
- "S_IEXEC",
192
- "S_IWRITE",
193
- "S_IREAD",
194
- "S_IRWXU",
195
- "S_IXUSR",
196
- "S_IWUSR",
197
- "S_IRUSR",
198
- "F_OK",
199
- "R_OK",
200
- "W_OK",
201
- "X_OK",
202
- "STDIN_FILENO",
203
- "STDOUT_FILENO",
204
- "STDERR_FILENO"
205
- ],
206
- supportMacros: [
207
- "format!",
208
- "print!",
209
- "println!",
210
- "panic!",
211
- "format_args!",
212
- "unreachable!",
213
- "write!",
214
- "writeln!"
215
- ],
216
- operators: [
217
- "!",
218
- "!=",
219
- "%",
220
- "%=",
221
- "&",
222
- "&=",
223
- "&&",
224
- "*",
225
- "*=",
226
- "+",
227
- "+=",
228
- "-",
229
- "-=",
230
- "->",
231
- ".",
232
- "..",
233
- "...",
234
- "/",
235
- "/=",
236
- ":",
237
- ";",
238
- "<<",
239
- "<<=",
240
- "<",
241
- "<=",
242
- "=",
243
- "==",
244
- "=>",
245
- ">",
246
- ">=",
247
- ">>",
248
- ">>=",
249
- "@",
250
- "^",
251
- "^=",
252
- "|",
253
- "|=",
254
- "||",
255
- "_",
256
- "?",
257
- "#"
258
- ],
259
- escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,
260
- delimiters: /[,]/,
261
- symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,
262
- intSuffixes: /[iu](8|16|32|64|128|size)/,
263
- floatSuffixes: /f(32|64)/,
264
- tokenizer: {
265
- root: [
266
- // Raw string literals
267
- [/r(#*)"/, { token: "string.quote", bracket: "@open", next: "@stringraw.$1" }],
268
- [
269
- /[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
270
- {
271
- cases: {
272
- "@typeKeywords": "keyword.type",
273
- "@keywords": "keyword",
274
- "@supportConstants": "keyword",
275
- "@supportMacros": "keyword",
276
- "@constants": "keyword",
277
- "@default": "identifier"
278
- }
279
- }
280
- ],
281
- // Designator
282
- [/\$/, "identifier"],
283
- // Lifetime annotations
284
- [/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"],
285
- // Byte literal
286
- [/'(\S|@escapes)'/, "string.byteliteral"],
287
- // Strings
288
- [/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
289
- { include: "@numbers" },
290
- // Whitespace + comments
291
- { include: "@whitespace" },
292
- [
293
- /@delimiters/,
294
- {
295
- cases: {
296
- "@keywords": "keyword",
297
- "@default": "delimiter"
298
- }
299
- }
300
- ],
301
- [/[{}()\[\]<>]/, "@brackets"],
302
- [/@symbols/, { cases: { "@operators": "operator", "@default": "" } }]
303
- ],
304
- whitespace: [
305
- [/[ \t\r\n]+/, "white"],
306
- [/\/\*/, "comment", "@comment"],
307
- [/\/\/.*$/, "comment"]
308
- ],
309
- comment: [
310
- [/[^\/*]+/, "comment"],
311
- [/\/\*/, "comment", "@push"],
312
- ["\\*/", "comment", "@pop"],
313
- [/[\/*]/, "comment"]
314
- ],
315
- string: [
316
- [/[^\\"]+/, "string"],
317
- [/@escapes/, "string.escape"],
318
- [/\\./, "string.escape.invalid"],
319
- [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
320
- ],
321
- stringraw: [
322
- [/[^"#]+/, { token: "string" }],
323
- [
324
- /"(#*)/,
325
- {
326
- cases: {
327
- "$1==$S2": { token: "string.quote", bracket: "@close", next: "@pop" },
328
- "@default": { token: "string" }
329
- }
330
- }
331
- ],
332
- [/["#]/, { token: "string" }]
333
- ],
334
- numbers: [
335
- //Octal
336
- [/(0o[0-7_]+)(@intSuffixes)?/, { token: "number" }],
337
- //Binary
338
- [/(0b[0-1_]+)(@intSuffixes)?/, { token: "number" }],
339
- //Exponent
340
- [/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, { token: "number" }],
341
- //Float
342
- [/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, { token: "number" }],
343
- //Hexadecimal
344
- [/(0x[\da-fA-F]+)_?(@intSuffixes)?/, { token: "number" }],
345
- //Integer
346
- [/[\d][\d_]*(@intSuffixes?)?/, { token: "number" }]
347
- ]
348
- }
349
- };
350
-
351
- 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: "sb",
12
- extensions: [".sb"],
13
- aliases: ["Small Basic", "sb"],
14
- loader: () => {
15
- {
16
- return import('./sb.js');
17
- }
18
- }
19
- });
package/sb/sb.js DELETED
@@ -1,123 +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/sb/sb.ts
10
- var conf = {
11
- comments: {
12
- lineComment: "'"
13
- },
14
- brackets: [
15
- ["(", ")"],
16
- ["[", "]"],
17
- ["If", "EndIf"],
18
- ["While", "EndWhile"],
19
- ["For", "EndFor"],
20
- ["Sub", "EndSub"]
21
- ],
22
- autoClosingPairs: [
23
- { open: '"', close: '"', notIn: ["string", "comment"] },
24
- { open: "(", close: ")", notIn: ["string", "comment"] },
25
- { open: "[", close: "]", notIn: ["string", "comment"] }
26
- ]
27
- };
28
- var language = {
29
- defaultToken: "",
30
- tokenPostfix: ".sb",
31
- ignoreCase: true,
32
- brackets: [
33
- { token: "delimiter.array", open: "[", close: "]" },
34
- { token: "delimiter.parenthesis", open: "(", close: ")" },
35
- // Special bracket statement pairs
36
- { token: "keyword.tag-if", open: "If", close: "EndIf" },
37
- { token: "keyword.tag-while", open: "While", close: "EndWhile" },
38
- { token: "keyword.tag-for", open: "For", close: "EndFor" },
39
- { token: "keyword.tag-sub", open: "Sub", close: "EndSub" }
40
- ],
41
- keywords: [
42
- "Else",
43
- "ElseIf",
44
- "EndFor",
45
- "EndIf",
46
- "EndSub",
47
- "EndWhile",
48
- "For",
49
- "Goto",
50
- "If",
51
- "Step",
52
- "Sub",
53
- "Then",
54
- "To",
55
- "While"
56
- ],
57
- tagwords: ["If", "Sub", "While", "For"],
58
- operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="],
59
- // we include these common regular expressions
60
- identifier: /[a-zA-Z_][\w]*/,
61
- symbols: /[=><:+\-*\/%\.,]+/,
62
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
63
- // The main tokenizer for our languages
64
- tokenizer: {
65
- root: [
66
- // whitespace
67
- { include: "@whitespace" },
68
- // classes
69
- [/(@identifier)(?=[.])/, "type"],
70
- // identifiers, tagwords, and keywords
71
- [
72
- /@identifier/,
73
- {
74
- cases: {
75
- "@keywords": { token: "keyword.$0" },
76
- "@operators": "operator",
77
- "@default": "variable.name"
78
- }
79
- }
80
- ],
81
- // methods, properties, and events
82
- [
83
- /([.])(@identifier)/,
84
- {
85
- cases: {
86
- $2: ["delimiter", "type.member"],
87
- "@default": ""
88
- }
89
- }
90
- ],
91
- // numbers
92
- [/\d*\.\d+/, "number.float"],
93
- [/\d+/, "number"],
94
- // delimiters and operators
95
- [/[()\[\]]/, "@brackets"],
96
- [
97
- /@symbols/,
98
- {
99
- cases: {
100
- "@operators": "operator",
101
- "@default": "delimiter"
102
- }
103
- }
104
- ],
105
- // strings
106
- [/"([^"\\]|\\.)*$/, "string.invalid"],
107
- // non-teminated string
108
- [/"/, "string", "@string"]
109
- ],
110
- whitespace: [
111
- [/[ \t\r\n]+/, ""],
112
- [/(\').*$/, "comment"]
113
- ],
114
- string: [
115
- [/[^\\"]+/, "string"],
116
- [/@escapes/, "string.escape"],
117
- [/\\./, "string.escape.invalid"],
118
- [/"C?/, "string", "@pop"]
119
- ]
120
- }
121
- };
122
-
123
- 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: "scala",
12
- extensions: [".scala", ".sc", ".sbt"],
13
- aliases: ["Scala", "scala", "SBT", "Sbt", "sbt", "Dotty", "dotty"],
14
- mimetypes: ["text/x-scala-source", "text/x-scala", "text/x-sbt", "text/x-dotty"],
15
- loader: () => {
16
- {
17
- return import('./scala.js');
18
- }
19
- }
20
- });