@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/html/html.js ADDED
@@ -0,0 +1,328 @@
1
+ import * as monaco_editor_core_star from 'monaco-editor';
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 __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 && __copyProps(secondTarget, mod, "default"));
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 };
package/index.js ADDED
@@ -0,0 +1,81 @@
1
+ import 'monaco-editor';
2
+ import './abap/abap.contribution.js';
3
+ import './apex/apex.contribution.js';
4
+ import './azcli/azcli.contribution.js';
5
+ import './bat/bat.contribution.js';
6
+ import './bicep/bicep.contribution.js';
7
+ import './cameligo/cameligo.contribution.js';
8
+ import './clojure/clojure.contribution.js';
9
+ import './coffee/coffee.contribution.js';
10
+ import './cpp/cpp.contribution.js';
11
+ import './csharp/csharp.contribution.js';
12
+ import './csp/csp.contribution.js';
13
+ import './css/css.contribution.js';
14
+ import './cypher/cypher.contribution.js';
15
+ import './dart/dart.contribution.js';
16
+ import './dockerfile/dockerfile.contribution.js';
17
+ import './ecl/ecl.contribution.js';
18
+ import './elixir/elixir.contribution.js';
19
+ import './flow9/flow9.contribution.js';
20
+ import './fsharp/fsharp.contribution.js';
21
+ import './freemarker2/freemarker2.contribution.js';
22
+ import './go/go.contribution.js';
23
+ import './graphql/graphql.contribution.js';
24
+ import './handlebars/handlebars.contribution.js';
25
+ import './hcl/hcl.contribution.js';
26
+ import './html/html.contribution.js';
27
+ import './ini/ini.contribution.js';
28
+ import './java/java.contribution.js';
29
+ import './javascript/javascript.contribution.js';
30
+ import './julia/julia.contribution.js';
31
+ import './kotlin/kotlin.contribution.js';
32
+ import './less/less.contribution.js';
33
+ import './lexon/lexon.contribution.js';
34
+ import './lua/lua.contribution.js';
35
+ import './liquid/liquid.contribution.js';
36
+ import './m3/m3.contribution.js';
37
+ import './markdown/markdown.contribution.js';
38
+ import './mdx/mdx.contribution.js';
39
+ import './mips/mips.contribution.js';
40
+ import './msdax/msdax.contribution.js';
41
+ import './mysql/mysql.contribution.js';
42
+ import './objective-c/objective-c.contribution.js';
43
+ import './pascal/pascal.contribution.js';
44
+ import './pascaligo/pascaligo.contribution.js';
45
+ import './perl/perl.contribution.js';
46
+ import './pgsql/pgsql.contribution.js';
47
+ import './php/php.contribution.js';
48
+ import './pla/pla.contribution.js';
49
+ import './postiats/postiats.contribution.js';
50
+ import './powerquery/powerquery.contribution.js';
51
+ import './powershell/powershell.contribution.js';
52
+ import './protobuf/protobuf.contribution.js';
53
+ import './pug/pug.contribution.js';
54
+ import './python/python.contribution.js';
55
+ import './qsharp/qsharp.contribution.js';
56
+ import './r/r.contribution.js';
57
+ import './razor/razor.contribution.js';
58
+ import './redis/redis.contribution.js';
59
+ import './redshift/redshift.contribution.js';
60
+ import './restructuredtext/restructuredtext.contribution.js';
61
+ import './ruby/ruby.contribution.js';
62
+ import './rust/rust.contribution.js';
63
+ import './sb/sb.contribution.js';
64
+ import './scala/scala.contribution.js';
65
+ import './scheme/scheme.contribution.js';
66
+ import './scss/scss.contribution.js';
67
+ import './shell/shell.contribution.js';
68
+ import './solidity/solidity.contribution.js';
69
+ import './sophia/sophia.contribution.js';
70
+ import './sparql/sparql.contribution.js';
71
+ import './sql/sql.contribution.js';
72
+ import './st/st.contribution.js';
73
+ import './swift/swift.contribution.js';
74
+ import './systemverilog/systemverilog.contribution.js';
75
+ import './tcl/tcl.contribution.js';
76
+ import './twig/twig.contribution.js';
77
+ import './typescript/typescript.contribution.js';
78
+ import './vb/vb.contribution.js';
79
+ import './wgsl/wgsl.contribution.js';
80
+ import './xml/xml.contribution.js';
81
+ import './yaml/yaml.contribution.js';
@@ -0,0 +1,20 @@
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: "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 ADDED
@@ -0,0 +1,79 @@
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/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 };
@@ -0,0 +1,20 @@
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: "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
+ });