@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/html/html.js DELETED
@@ -1,328 +0,0 @@
1
- import * as monaco_editor_core_star from 'monaco-editor';
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
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __copyProps = (to, from, except, desc) => {
15
- if (from && typeof from === "object" || typeof from === "function") {
16
- for (let key of __getOwnPropNames(from))
17
- if (!__hasOwnProp.call(to, key) && key !== except)
18
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
- }
20
- return to;
21
- };
22
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget);
23
-
24
- // src/fillers/monaco-editor-core.ts
25
- var monaco_editor_core_exports = {};
26
- __reExport(monaco_editor_core_exports, monaco_editor_core_star);
27
-
28
- // src/basic-languages/html/html.ts
29
- var EMPTY_ELEMENTS = [
30
- "area",
31
- "base",
32
- "br",
33
- "col",
34
- "embed",
35
- "hr",
36
- "img",
37
- "input",
38
- "keygen",
39
- "link",
40
- "menuitem",
41
- "meta",
42
- "param",
43
- "source",
44
- "track",
45
- "wbr"
46
- ];
47
- var conf = {
48
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
49
- comments: {
50
- blockComment: ["<!--", "-->"]
51
- },
52
- brackets: [
53
- ["<!--", "-->"],
54
- ["<", ">"],
55
- ["{", "}"],
56
- ["(", ")"]
57
- ],
58
- autoClosingPairs: [
59
- { open: "{", close: "}" },
60
- { open: "[", close: "]" },
61
- { open: "(", close: ")" },
62
- { open: '"', close: '"' },
63
- { open: "'", close: "'" }
64
- ],
65
- surroundingPairs: [
66
- { open: '"', close: '"' },
67
- { open: "'", close: "'" },
68
- { open: "{", close: "}" },
69
- { open: "[", close: "]" },
70
- { open: "(", close: ")" },
71
- { open: "<", close: ">" }
72
- ],
73
- onEnterRules: [
74
- {
75
- beforeText: new RegExp(
76
- `<(?!(?:${EMPTY_ELEMENTS.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,
77
- "i"
78
- ),
79
- afterText: /^<\/([_:\w][_:\w-.\d]*)\s*>$/i,
80
- action: {
81
- indentAction: monaco_editor_core_exports.languages.IndentAction.IndentOutdent
82
- }
83
- },
84
- {
85
- beforeText: new RegExp(
86
- `<(?!(?:${EMPTY_ELEMENTS.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,
87
- "i"
88
- ),
89
- action: { indentAction: monaco_editor_core_exports.languages.IndentAction.Indent }
90
- }
91
- ],
92
- folding: {
93
- markers: {
94
- start: new RegExp("^\\s*<!--\\s*#region\\b.*-->"),
95
- end: new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")
96
- }
97
- }
98
- };
99
- var language = {
100
- defaultToken: "",
101
- tokenPostfix: ".html",
102
- ignoreCase: true,
103
- // The main tokenizer for our languages
104
- tokenizer: {
105
- root: [
106
- [/<!DOCTYPE/, "metatag", "@doctype"],
107
- [/<!--/, "comment", "@comment"],
108
- [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter", "tag", "", "delimiter"]],
109
- [/(<)(script)/, ["delimiter", { token: "tag", next: "@script" }]],
110
- [/(<)(style)/, ["delimiter", { token: "tag", next: "@style" }]],
111
- [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
112
- [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter", { token: "tag", next: "@otherTag" }]],
113
- [/</, "delimiter"],
114
- [/[^<]+/]
115
- // text
116
- ],
117
- doctype: [
118
- [/[^>]+/, "metatag.content"],
119
- [/>/, "metatag", "@pop"]
120
- ],
121
- comment: [
122
- [/-->/, "comment", "@pop"],
123
- [/[^-]+/, "comment.content"],
124
- [/./, "comment.content"]
125
- ],
126
- otherTag: [
127
- [/\/?>/, "delimiter", "@pop"],
128
- [/"([^"]*)"/, "attribute.value"],
129
- [/'([^']*)'/, "attribute.value"],
130
- [/[\w\-]+/, "attribute.name"],
131
- [/=/, "delimiter"],
132
- [/[ \t\r\n]+/]
133
- // whitespace
134
- ],
135
- // -- BEGIN <script> tags handling
136
- // After <script
137
- script: [
138
- [/type/, "attribute.name", "@scriptAfterType"],
139
- [/"([^"]*)"/, "attribute.value"],
140
- [/'([^']*)'/, "attribute.value"],
141
- [/[\w\-]+/, "attribute.name"],
142
- [/=/, "delimiter"],
143
- [
144
- />/,
145
- {
146
- token: "delimiter",
147
- next: "@scriptEmbedded",
148
- nextEmbedded: "text/javascript"
149
- }
150
- ],
151
- [/[ \t\r\n]+/],
152
- // whitespace
153
- [/(<\/)(script\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
154
- ],
155
- // After <script ... type
156
- scriptAfterType: [
157
- [/=/, "delimiter", "@scriptAfterTypeEquals"],
158
- [
159
- />/,
160
- {
161
- token: "delimiter",
162
- next: "@scriptEmbedded",
163
- nextEmbedded: "text/javascript"
164
- }
165
- ],
166
- // cover invalid e.g. <script type>
167
- [/[ \t\r\n]+/],
168
- // whitespace
169
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
170
- ],
171
- // After <script ... type =
172
- scriptAfterTypeEquals: [
173
- [
174
- /"module"/,
175
- {
176
- token: "attribute.value",
177
- switchTo: "@scriptWithCustomType.text/javascript"
178
- }
179
- ],
180
- [
181
- /'module'/,
182
- {
183
- token: "attribute.value",
184
- switchTo: "@scriptWithCustomType.text/javascript"
185
- }
186
- ],
187
- [
188
- /"([^"]*)"/,
189
- {
190
- token: "attribute.value",
191
- switchTo: "@scriptWithCustomType.$1"
192
- }
193
- ],
194
- [
195
- /'([^']*)'/,
196
- {
197
- token: "attribute.value",
198
- switchTo: "@scriptWithCustomType.$1"
199
- }
200
- ],
201
- [
202
- />/,
203
- {
204
- token: "delimiter",
205
- next: "@scriptEmbedded",
206
- nextEmbedded: "text/javascript"
207
- }
208
- ],
209
- // cover invalid e.g. <script type=>
210
- [/[ \t\r\n]+/],
211
- // whitespace
212
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
213
- ],
214
- // After <script ... type = $S2
215
- scriptWithCustomType: [
216
- [
217
- />/,
218
- {
219
- token: "delimiter",
220
- next: "@scriptEmbedded.$S2",
221
- nextEmbedded: "$S2"
222
- }
223
- ],
224
- [/"([^"]*)"/, "attribute.value"],
225
- [/'([^']*)'/, "attribute.value"],
226
- [/[\w\-]+/, "attribute.name"],
227
- [/=/, "delimiter"],
228
- [/[ \t\r\n]+/],
229
- // whitespace
230
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
231
- ],
232
- scriptEmbedded: [
233
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
234
- [/[^<]+/, ""]
235
- ],
236
- // -- END <script> tags handling
237
- // -- BEGIN <style> tags handling
238
- // After <style
239
- style: [
240
- [/type/, "attribute.name", "@styleAfterType"],
241
- [/"([^"]*)"/, "attribute.value"],
242
- [/'([^']*)'/, "attribute.value"],
243
- [/[\w\-]+/, "attribute.name"],
244
- [/=/, "delimiter"],
245
- [
246
- />/,
247
- {
248
- token: "delimiter",
249
- next: "@styleEmbedded",
250
- nextEmbedded: "text/css"
251
- }
252
- ],
253
- [/[ \t\r\n]+/],
254
- // whitespace
255
- [/(<\/)(style\s*)(>)/, ["delimiter", "tag", { token: "delimiter", next: "@pop" }]]
256
- ],
257
- // After <style ... type
258
- styleAfterType: [
259
- [/=/, "delimiter", "@styleAfterTypeEquals"],
260
- [
261
- />/,
262
- {
263
- token: "delimiter",
264
- next: "@styleEmbedded",
265
- nextEmbedded: "text/css"
266
- }
267
- ],
268
- // cover invalid e.g. <style type>
269
- [/[ \t\r\n]+/],
270
- // whitespace
271
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
272
- ],
273
- // After <style ... type =
274
- styleAfterTypeEquals: [
275
- [
276
- /"([^"]*)"/,
277
- {
278
- token: "attribute.value",
279
- switchTo: "@styleWithCustomType.$1"
280
- }
281
- ],
282
- [
283
- /'([^']*)'/,
284
- {
285
- token: "attribute.value",
286
- switchTo: "@styleWithCustomType.$1"
287
- }
288
- ],
289
- [
290
- />/,
291
- {
292
- token: "delimiter",
293
- next: "@styleEmbedded",
294
- nextEmbedded: "text/css"
295
- }
296
- ],
297
- // cover invalid e.g. <style type=>
298
- [/[ \t\r\n]+/],
299
- // whitespace
300
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
301
- ],
302
- // After <style ... type = $S2
303
- styleWithCustomType: [
304
- [
305
- />/,
306
- {
307
- token: "delimiter",
308
- next: "@styleEmbedded.$S2",
309
- nextEmbedded: "$S2"
310
- }
311
- ],
312
- [/"([^"]*)"/, "attribute.value"],
313
- [/'([^']*)'/, "attribute.value"],
314
- [/[\w\-]+/, "attribute.name"],
315
- [/=/, "delimiter"],
316
- [/[ \t\r\n]+/],
317
- // whitespace
318
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
319
- ],
320
- styleEmbedded: [
321
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
322
- [/[^<]+/, ""]
323
- ]
324
- // -- END <style> tags handling
325
- }
326
- };
327
-
328
- 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: "ini",
12
- extensions: [".ini", ".properties", ".gitconfig"],
13
- filenames: ["config", ".gitattributes", ".gitconfig", ".editorconfig"],
14
- aliases: ["Ini", "ini"],
15
- loader: () => {
16
- {
17
- return import('./ini.js');
18
- }
19
- }
20
- });
package/ini/ini.js DELETED
@@ -1,79 +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/ini/ini.ts
10
- var conf = {
11
- comments: {
12
- lineComment: "#"
13
- },
14
- brackets: [
15
- ["{", "}"],
16
- ["[", "]"],
17
- ["(", ")"]
18
- ],
19
- autoClosingPairs: [
20
- { open: "{", close: "}" },
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
- { open: "'", close: "'" }
32
- ]
33
- };
34
- var language = {
35
- defaultToken: "",
36
- tokenPostfix: ".ini",
37
- // we include these common regular expressions
38
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
39
- // The main tokenizer for our languages
40
- tokenizer: {
41
- root: [
42
- // sections
43
- [/^\[[^\]]*\]/, "metatag"],
44
- // keys
45
- [/(^\w+)(\s*)(\=)/, ["key", "", "delimiter"]],
46
- // whitespace
47
- { include: "@whitespace" },
48
- // numbers
49
- [/\d+/, "number"],
50
- // strings: recover on non-terminated strings
51
- [/"([^"\\]|\\.)*$/, "string.invalid"],
52
- // non-teminated string
53
- [/'([^'\\]|\\.)*$/, "string.invalid"],
54
- // non-teminated string
55
- [/"/, "string", '@string."'],
56
- [/'/, "string", "@string.'"]
57
- ],
58
- whitespace: [
59
- [/[ \t\r\n]+/, ""],
60
- [/^\s*[#;].*$/, "comment"]
61
- ],
62
- string: [
63
- [/[^\\"']+/, "string"],
64
- [/@escapes/, "string.escape"],
65
- [/\\./, "string.escape.invalid"],
66
- [
67
- /["']/,
68
- {
69
- cases: {
70
- "$#==$S2": { token: "string", next: "@pop" },
71
- "@default": "string"
72
- }
73
- }
74
- ]
75
- ]
76
- }
77
- };
78
-
79
- 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: "java",
12
- extensions: [".java", ".jav"],
13
- aliases: ["Java", "java"],
14
- mimetypes: ["text/x-java-source", "text/x-java"],
15
- loader: () => {
16
- {
17
- return import('./java.js');
18
- }
19
- }
20
- });
package/java/java.js DELETED
@@ -1,240 +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/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 };