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

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