@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/java/java.js ADDED
@@ -0,0 +1,240 @@
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/java/java.ts
10
+ var conf = {
11
+ // the default separators except `@$`
12
+ wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
13
+ comments: {
14
+ lineComment: "//",
15
+ blockComment: ["/*", "*/"]
16
+ },
17
+ brackets: [
18
+ ["{", "}"],
19
+ ["[", "]"],
20
+ ["(", ")"]
21
+ ],
22
+ autoClosingPairs: [
23
+ { open: "{", close: "}" },
24
+ { open: "[", close: "]" },
25
+ { open: "(", close: ")" },
26
+ { open: '"', close: '"' },
27
+ { open: "'", close: "'" }
28
+ ],
29
+ surroundingPairs: [
30
+ { open: "{", close: "}" },
31
+ { open: "[", close: "]" },
32
+ { open: "(", close: ")" },
33
+ { open: '"', close: '"' },
34
+ { open: "'", close: "'" },
35
+ { open: "<", close: ">" }
36
+ ],
37
+ folding: {
38
+ markers: {
39
+ start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
40
+ end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
41
+ }
42
+ }
43
+ };
44
+ var language = {
45
+ defaultToken: "",
46
+ tokenPostfix: ".java",
47
+ keywords: [
48
+ "abstract",
49
+ "continue",
50
+ "for",
51
+ "new",
52
+ "switch",
53
+ "assert",
54
+ "default",
55
+ "goto",
56
+ "package",
57
+ "synchronized",
58
+ "boolean",
59
+ "do",
60
+ "if",
61
+ "private",
62
+ "this",
63
+ "break",
64
+ "double",
65
+ "implements",
66
+ "protected",
67
+ "throw",
68
+ "byte",
69
+ "else",
70
+ "import",
71
+ "public",
72
+ "throws",
73
+ "case",
74
+ "enum",
75
+ "instanceof",
76
+ "return",
77
+ "transient",
78
+ "catch",
79
+ "extends",
80
+ "int",
81
+ "short",
82
+ "try",
83
+ "char",
84
+ "final",
85
+ "interface",
86
+ "static",
87
+ "void",
88
+ "class",
89
+ "finally",
90
+ "long",
91
+ "strictfp",
92
+ "volatile",
93
+ "const",
94
+ "float",
95
+ "native",
96
+ "super",
97
+ "while",
98
+ "true",
99
+ "false",
100
+ "yield",
101
+ "record",
102
+ "sealed",
103
+ "non-sealed",
104
+ "permits"
105
+ ],
106
+ operators: [
107
+ "=",
108
+ ">",
109
+ "<",
110
+ "!",
111
+ "~",
112
+ "?",
113
+ ":",
114
+ "==",
115
+ "<=",
116
+ ">=",
117
+ "!=",
118
+ "&&",
119
+ "||",
120
+ "++",
121
+ "--",
122
+ "+",
123
+ "-",
124
+ "*",
125
+ "/",
126
+ "&",
127
+ "|",
128
+ "^",
129
+ "%",
130
+ "<<",
131
+ ">>",
132
+ ">>>",
133
+ "+=",
134
+ "-=",
135
+ "*=",
136
+ "/=",
137
+ "&=",
138
+ "|=",
139
+ "^=",
140
+ "%=",
141
+ "<<=",
142
+ ">>=",
143
+ ">>>="
144
+ ],
145
+ // we include these common regular expressions
146
+ symbols: /[=><!~?:&|+\-*\/\^%]+/,
147
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
148
+ digits: /\d+(_+\d+)*/,
149
+ octaldigits: /[0-7]+(_+[0-7]+)*/,
150
+ binarydigits: /[0-1]+(_+[0-1]+)*/,
151
+ hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
152
+ // The main tokenizer for our languages
153
+ tokenizer: {
154
+ root: [
155
+ // Special keyword with a dash
156
+ ["non-sealed", "keyword.non-sealed"],
157
+ // identifiers and keywords
158
+ [
159
+ /[a-zA-Z_$][\w$]*/,
160
+ {
161
+ cases: {
162
+ "@keywords": { token: "keyword.$0" },
163
+ "@default": "identifier"
164
+ }
165
+ }
166
+ ],
167
+ // whitespace
168
+ { include: "@whitespace" },
169
+ // delimiters and operators
170
+ [/[{}()\[\]]/, "@brackets"],
171
+ [/[<>](?!@symbols)/, "@brackets"],
172
+ [
173
+ /@symbols/,
174
+ {
175
+ cases: {
176
+ "@operators": "delimiter",
177
+ "@default": ""
178
+ }
179
+ }
180
+ ],
181
+ // @ annotations.
182
+ [/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
183
+ // numbers
184
+ [/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
185
+ [/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
186
+ [/0[xX](@hexdigits)[Ll]?/, "number.hex"],
187
+ [/0(@octaldigits)[Ll]?/, "number.octal"],
188
+ [/0[bB](@binarydigits)[Ll]?/, "number.binary"],
189
+ [/(@digits)[fFdD]/, "number.float"],
190
+ [/(@digits)[lL]?/, "number"],
191
+ // delimiter: after number because of .\d floats
192
+ [/[;,.]/, "delimiter"],
193
+ // strings
194
+ [/"([^"\\]|\\.)*$/, "string.invalid"],
195
+ // non-teminated string
196
+ [/"""/, "string", "@multistring"],
197
+ [/"/, "string", "@string"],
198
+ // characters
199
+ [/'[^\\']'/, "string"],
200
+ [/(')(@escapes)(')/, ["string", "string.escape", "string"]],
201
+ [/'/, "string.invalid"]
202
+ ],
203
+ whitespace: [
204
+ [/[ \t\r\n]+/, ""],
205
+ [/\/\*\*(?!\/)/, "comment.doc", "@javadoc"],
206
+ [/\/\*/, "comment", "@comment"],
207
+ [/\/\/.*$/, "comment"]
208
+ ],
209
+ comment: [
210
+ [/[^\/*]+/, "comment"],
211
+ // [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-(
212
+ // [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/
213
+ [/\*\//, "comment", "@pop"],
214
+ [/[\/*]/, "comment"]
215
+ ],
216
+ //Identical copy of comment above, except for the addition of .doc
217
+ javadoc: [
218
+ [/[^\/*]+/, "comment.doc"],
219
+ // [/\/\*/, 'comment.doc', '@push' ], // nested comment not allowed :-(
220
+ [/\/\*/, "comment.doc.invalid"],
221
+ [/\*\//, "comment.doc", "@pop"],
222
+ [/[\/*]/, "comment.doc"]
223
+ ],
224
+ string: [
225
+ [/[^\\"]+/, "string"],
226
+ [/@escapes/, "string.escape"],
227
+ [/\\./, "string.escape.invalid"],
228
+ [/"/, "string", "@pop"]
229
+ ],
230
+ multistring: [
231
+ [/[^\\"]+/, "string"],
232
+ [/@escapes/, "string.escape"],
233
+ [/\\./, "string.escape.invalid"],
234
+ [/"""/, "string", "@pop"],
235
+ [/./, "string"]
236
+ ]
237
+ }
238
+ };
239
+
240
+ export { conf, language };
@@ -0,0 +1,22 @@
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: "javascript",
12
+ extensions: [".js", ".es6", ".jsx", ".mjs", ".cjs"],
13
+ firstLine: "^#!.*\\bnode",
14
+ filenames: ["jakefile"],
15
+ aliases: ["JavaScript", "javascript", "js"],
16
+ mimetypes: ["text/javascript"],
17
+ loader: () => {
18
+ {
19
+ return import('./javascript.js');
20
+ }
21
+ }
22
+ });
@@ -0,0 +1,77 @@
1
+ import { conf as conf$1, language as language$1 } from '../typescript/typescript.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
+ var conf = conf$1;
11
+ var language = {
12
+ // Set defaultToken to invalid to see what you do not tokenize yet
13
+ defaultToken: "invalid",
14
+ tokenPostfix: ".js",
15
+ keywords: [
16
+ "break",
17
+ "case",
18
+ "catch",
19
+ "class",
20
+ "continue",
21
+ "const",
22
+ "constructor",
23
+ "debugger",
24
+ "default",
25
+ "delete",
26
+ "do",
27
+ "else",
28
+ "export",
29
+ "extends",
30
+ "false",
31
+ "finally",
32
+ "for",
33
+ "from",
34
+ "function",
35
+ "get",
36
+ "if",
37
+ "import",
38
+ "in",
39
+ "instanceof",
40
+ "let",
41
+ "new",
42
+ "null",
43
+ "return",
44
+ "set",
45
+ "static",
46
+ "super",
47
+ "switch",
48
+ "symbol",
49
+ "this",
50
+ "throw",
51
+ "true",
52
+ "try",
53
+ "typeof",
54
+ "undefined",
55
+ "var",
56
+ "void",
57
+ "while",
58
+ "with",
59
+ "yield",
60
+ "async",
61
+ "await",
62
+ "of"
63
+ ],
64
+ typeKeywords: [],
65
+ operators: language$1.operators,
66
+ symbols: language$1.symbols,
67
+ escapes: language$1.escapes,
68
+ digits: language$1.digits,
69
+ octaldigits: language$1.octaldigits,
70
+ binarydigits: language$1.binarydigits,
71
+ hexdigits: language$1.hexdigits,
72
+ regexpctl: language$1.regexpctl,
73
+ regexpesc: language$1.regexpesc,
74
+ tokenizer: language$1.tokenizer
75
+ };
76
+
77
+ 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: "julia",
12
+ extensions: [".jl"],
13
+ aliases: ["julia", "Julia"],
14
+ loader: () => {
15
+ {
16
+ return import('./julia.js');
17
+ }
18
+ }
19
+ });