@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/scss/scss.js DELETED
@@ -1,268 +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/scss/scss.ts
10
- var conf = {
11
- wordPattern: /(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,
12
- comments: {
13
- blockComment: ["/*", "*/"],
14
- lineComment: "//"
15
- },
16
- brackets: [
17
- ["{", "}"],
18
- ["[", "]"],
19
- ["(", ")"]
20
- ],
21
- autoClosingPairs: [
22
- { open: "{", close: "}", notIn: ["string", "comment"] },
23
- { open: "[", close: "]", notIn: ["string", "comment"] },
24
- { open: "(", close: ")", notIn: ["string", "comment"] },
25
- { open: '"', close: '"', notIn: ["string", "comment"] },
26
- { open: "'", close: "'", notIn: ["string", "comment"] }
27
- ],
28
- surroundingPairs: [
29
- { open: "{", close: "}" },
30
- { open: "[", close: "]" },
31
- { open: "(", close: ")" },
32
- { open: '"', close: '"' },
33
- { open: "'", close: "'" }
34
- ],
35
- folding: {
36
- markers: {
37
- start: new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),
38
- end: new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")
39
- }
40
- }
41
- };
42
- var language = {
43
- defaultToken: "",
44
- tokenPostfix: ".scss",
45
- ws: "[ \n\r\f]*",
46
- // whitespaces (referenced in several rules)
47
- identifier: "-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",
48
- brackets: [
49
- { open: "{", close: "}", token: "delimiter.curly" },
50
- { open: "[", close: "]", token: "delimiter.bracket" },
51
- { open: "(", close: ")", token: "delimiter.parenthesis" },
52
- { open: "<", close: ">", token: "delimiter.angle" }
53
- ],
54
- tokenizer: {
55
- root: [{ include: "@selector" }],
56
- selector: [
57
- { include: "@comments" },
58
- { include: "@import" },
59
- { include: "@variabledeclaration" },
60
- { include: "@warndebug" },
61
- // sass: log statements
62
- ["[@](include)", { token: "keyword", next: "@includedeclaration" }],
63
- // sass: include statement
64
- [
65
- "[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",
66
- { token: "keyword", next: "@keyframedeclaration" }
67
- ],
68
- ["[@](page|content|font-face|-moz-document)", { token: "keyword" }],
69
- // sass: placeholder for includes
70
- ["[@](charset|namespace)", { token: "keyword", next: "@declarationbody" }],
71
- ["[@](function)", { token: "keyword", next: "@functiondeclaration" }],
72
- ["[@](mixin)", { token: "keyword", next: "@mixindeclaration" }],
73
- ["url(\\-prefix)?\\(", { token: "meta", next: "@urldeclaration" }],
74
- { include: "@controlstatement" },
75
- // sass control statements
76
- { include: "@selectorname" },
77
- ["[&\\*]", "tag"],
78
- // selector symbols
79
- ["[>\\+,]", "delimiter"],
80
- // selector operators
81
- ["\\[", { token: "delimiter.bracket", next: "@selectorattribute" }],
82
- ["{", { token: "delimiter.curly", next: "@selectorbody" }]
83
- ],
84
- selectorbody: [
85
- ["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))", "attribute.name", "@rulevalue"],
86
- // rule definition: to distinguish from a nested selector check for whitespace, number or a semicolon
87
- { include: "@selector" },
88
- // sass: nested selectors
89
- ["[@](extend)", { token: "keyword", next: "@extendbody" }],
90
- // sass: extend other selectors
91
- ["[@](return)", { token: "keyword", next: "@declarationbody" }],
92
- ["}", { token: "delimiter.curly", next: "@pop" }]
93
- ],
94
- selectorname: [
95
- ["#{", { token: "meta", next: "@variableinterpolation" }],
96
- // sass: interpolation
97
- ["(\\.|#(?=[^{])|%|(@identifier)|:)+", "tag"]
98
- // selector (.foo, div, ...)
99
- ],
100
- selectorattribute: [{ include: "@term" }, ["]", { token: "delimiter.bracket", next: "@pop" }]],
101
- term: [
102
- { include: "@comments" },
103
- ["url(\\-prefix)?\\(", { token: "meta", next: "@urldeclaration" }],
104
- { include: "@functioninvocation" },
105
- { include: "@numbers" },
106
- { include: "@strings" },
107
- { include: "@variablereference" },
108
- ["(and\\b|or\\b|not\\b)", "operator"],
109
- { include: "@name" },
110
- ["([<>=\\+\\-\\*\\/\\^\\|\\~,])", "operator"],
111
- [",", "delimiter"],
112
- ["!default", "literal"],
113
- ["\\(", { token: "delimiter.parenthesis", next: "@parenthizedterm" }]
114
- ],
115
- rulevalue: [
116
- { include: "@term" },
117
- ["!important", "literal"],
118
- [";", "delimiter", "@pop"],
119
- ["{", { token: "delimiter.curly", switchTo: "@nestedproperty" }],
120
- // sass: nested properties
121
- ["(?=})", { token: "", next: "@pop" }]
122
- // missing semicolon
123
- ],
124
- nestedproperty: [
125
- ["[*_]?@identifier@ws:", "attribute.name", "@rulevalue"],
126
- { include: "@comments" },
127
- ["}", { token: "delimiter.curly", next: "@pop" }]
128
- ],
129
- warndebug: [["[@](warn|debug)", { token: "keyword", next: "@declarationbody" }]],
130
- import: [["[@](import)", { token: "keyword", next: "@declarationbody" }]],
131
- variabledeclaration: [
132
- // sass variables
133
- ["\\$@identifier@ws:", "variable.decl", "@declarationbody"]
134
- ],
135
- urldeclaration: [
136
- { include: "@strings" },
137
- ["[^)\r\n]+", "string"],
138
- ["\\)", { token: "meta", next: "@pop" }]
139
- ],
140
- parenthizedterm: [
141
- { include: "@term" },
142
- ["\\)", { token: "delimiter.parenthesis", next: "@pop" }]
143
- ],
144
- declarationbody: [
145
- { include: "@term" },
146
- [";", "delimiter", "@pop"],
147
- ["(?=})", { token: "", next: "@pop" }]
148
- // missing semicolon
149
- ],
150
- extendbody: [
151
- { include: "@selectorname" },
152
- ["!optional", "literal"],
153
- [";", "delimiter", "@pop"],
154
- ["(?=})", { token: "", next: "@pop" }]
155
- // missing semicolon
156
- ],
157
- variablereference: [
158
- // sass variable reference
159
- ["\\$@identifier", "variable.ref"],
160
- ["\\.\\.\\.", "operator"],
161
- // var args in reference
162
- ["#{", { token: "meta", next: "@variableinterpolation" }]
163
- // sass var resolve
164
- ],
165
- variableinterpolation: [
166
- { include: "@variablereference" },
167
- ["}", { token: "meta", next: "@pop" }]
168
- ],
169
- comments: [
170
- ["\\/\\*", "comment", "@comment"],
171
- ["\\/\\/+.*", "comment"]
172
- ],
173
- comment: [
174
- ["\\*\\/", "comment", "@pop"],
175
- [".", "comment"]
176
- ],
177
- name: [["@identifier", "attribute.value"]],
178
- numbers: [
179
- ["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?", { token: "number", next: "@units" }],
180
- ["#[0-9a-fA-F_]+(?!\\w)", "number.hex"]
181
- ],
182
- units: [
183
- [
184
- "(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?",
185
- "number",
186
- "@pop"
187
- ]
188
- ],
189
- functiondeclaration: [
190
- ["@identifier@ws\\(", { token: "meta", next: "@parameterdeclaration" }],
191
- ["{", { token: "delimiter.curly", switchTo: "@functionbody" }]
192
- ],
193
- mixindeclaration: [
194
- // mixin with parameters
195
- ["@identifier@ws\\(", { token: "meta", next: "@parameterdeclaration" }],
196
- // mixin without parameters
197
- ["@identifier", "meta"],
198
- ["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
199
- ],
200
- parameterdeclaration: [
201
- ["\\$@identifier@ws:", "variable.decl"],
202
- ["\\.\\.\\.", "operator"],
203
- // var args in declaration
204
- [",", "delimiter"],
205
- { include: "@term" },
206
- ["\\)", { token: "meta", next: "@pop" }]
207
- ],
208
- includedeclaration: [
209
- { include: "@functioninvocation" },
210
- ["@identifier", "meta"],
211
- [";", "delimiter", "@pop"],
212
- ["(?=})", { token: "", next: "@pop" }],
213
- // missing semicolon
214
- ["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
215
- ],
216
- keyframedeclaration: [
217
- ["@identifier", "meta"],
218
- ["{", { token: "delimiter.curly", switchTo: "@keyframebody" }]
219
- ],
220
- keyframebody: [
221
- { include: "@term" },
222
- ["{", { token: "delimiter.curly", next: "@selectorbody" }],
223
- ["}", { token: "delimiter.curly", next: "@pop" }]
224
- ],
225
- controlstatement: [
226
- [
227
- "[@](if|else|for|while|each|media)",
228
- { token: "keyword.flow", next: "@controlstatementdeclaration" }
229
- ]
230
- ],
231
- controlstatementdeclaration: [
232
- ["(in|from|through|if|to)\\b", { token: "keyword.flow" }],
233
- { include: "@term" },
234
- ["{", { token: "delimiter.curly", switchTo: "@selectorbody" }]
235
- ],
236
- functionbody: [
237
- ["[@](return)", { token: "keyword" }],
238
- { include: "@variabledeclaration" },
239
- { include: "@term" },
240
- { include: "@controlstatement" },
241
- [";", "delimiter"],
242
- ["}", { token: "delimiter.curly", next: "@pop" }]
243
- ],
244
- functioninvocation: [["@identifier\\(", { token: "meta", next: "@functionarguments" }]],
245
- functionarguments: [
246
- ["\\$@identifier@ws:", "attribute.name"],
247
- ["[,]", "delimiter"],
248
- { include: "@term" },
249
- ["\\)", { token: "meta", next: "@pop" }]
250
- ],
251
- strings: [
252
- ['~?"', { token: "string.delimiter", next: "@stringenddoublequote" }],
253
- ["~?'", { token: "string.delimiter", next: "@stringendquote" }]
254
- ],
255
- stringenddoublequote: [
256
- ["\\\\.", "string"],
257
- ['"', { token: "string.delimiter", next: "@pop" }],
258
- [".", "string"]
259
- ],
260
- stringendquote: [
261
- ["\\\\.", "string"],
262
- ["'", { token: "string.delimiter", next: "@pop" }],
263
- [".", "string"]
264
- ]
265
- }
266
- };
267
-
268
- 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: "shell",
12
- extensions: [".sh", ".bash"],
13
- aliases: ["Shell", "sh"],
14
- loader: () => {
15
- {
16
- return import('./shell.js');
17
- }
18
- }
19
- });
package/shell/shell.js DELETED
@@ -1,229 +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/shell/shell.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
- { open: "`", close: "`" }
26
- ],
27
- surroundingPairs: [
28
- { open: "{", close: "}" },
29
- { open: "[", close: "]" },
30
- { open: "(", close: ")" },
31
- { open: '"', close: '"' },
32
- { open: "'", close: "'" },
33
- { open: "`", close: "`" }
34
- ]
35
- };
36
- var language = {
37
- defaultToken: "",
38
- ignoreCase: true,
39
- tokenPostfix: ".shell",
40
- brackets: [
41
- { token: "delimiter.bracket", open: "{", close: "}" },
42
- { token: "delimiter.parenthesis", open: "(", close: ")" },
43
- { token: "delimiter.square", open: "[", close: "]" }
44
- ],
45
- keywords: [
46
- "if",
47
- "then",
48
- "do",
49
- "else",
50
- "elif",
51
- "while",
52
- "until",
53
- "for",
54
- "in",
55
- "esac",
56
- "fi",
57
- "fin",
58
- "fil",
59
- "done",
60
- "exit",
61
- "set",
62
- "unset",
63
- "export",
64
- "function"
65
- ],
66
- builtins: [
67
- "ab",
68
- "awk",
69
- "bash",
70
- "beep",
71
- "cat",
72
- "cc",
73
- "cd",
74
- "chown",
75
- "chmod",
76
- "chroot",
77
- "clear",
78
- "cp",
79
- "curl",
80
- "cut",
81
- "diff",
82
- "echo",
83
- "find",
84
- "gawk",
85
- "gcc",
86
- "get",
87
- "git",
88
- "grep",
89
- "hg",
90
- "kill",
91
- "killall",
92
- "ln",
93
- "ls",
94
- "make",
95
- "mkdir",
96
- "openssl",
97
- "mv",
98
- "nc",
99
- "node",
100
- "npm",
101
- "ping",
102
- "ps",
103
- "restart",
104
- "rm",
105
- "rmdir",
106
- "sed",
107
- "service",
108
- "sh",
109
- "shopt",
110
- "shred",
111
- "source",
112
- "sort",
113
- "sleep",
114
- "ssh",
115
- "start",
116
- "stop",
117
- "su",
118
- "sudo",
119
- "svn",
120
- "tee",
121
- "telnet",
122
- "top",
123
- "touch",
124
- "vi",
125
- "vim",
126
- "wall",
127
- "wc",
128
- "wget",
129
- "who",
130
- "write",
131
- "yes",
132
- "zsh"
133
- ],
134
- startingWithDash: /\-+\w+/,
135
- identifiersWithDashes: /[a-zA-Z]\w+(?:@startingWithDash)+/,
136
- // we include these common regular expressions
137
- symbols: /[=><!~?&|+\-*\/\^;\.,]+/,
138
- // The main tokenizer for our languages
139
- tokenizer: {
140
- root: [
141
- [/@identifiersWithDashes/, ""],
142
- [/(\s)((?:@startingWithDash)+)/, ["white", "attribute.name"]],
143
- [
144
- /[a-zA-Z]\w*/,
145
- {
146
- cases: {
147
- "@keywords": "keyword",
148
- "@builtins": "type.identifier",
149
- "@default": ""
150
- }
151
- }
152
- ],
153
- { include: "@whitespace" },
154
- { include: "@strings" },
155
- { include: "@parameters" },
156
- { include: "@heredoc" },
157
- [/[{}\[\]()]/, "@brackets"],
158
- [/@symbols/, "delimiter"],
159
- { include: "@numbers" },
160
- [/[,;]/, "delimiter"]
161
- ],
162
- whitespace: [
163
- [/\s+/, "white"],
164
- [/(^#!.*$)/, "metatag"],
165
- [/(^#.*$)/, "comment"]
166
- ],
167
- numbers: [
168
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
169
- [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
170
- [/\d+/, "number"]
171
- ],
172
- // Recognize strings, including those broken across lines
173
- strings: [
174
- [/'/, "string", "@stringBody"],
175
- [/"/, "string", "@dblStringBody"]
176
- ],
177
- stringBody: [
178
- [/'/, "string", "@popall"],
179
- [/./, "string"]
180
- ],
181
- dblStringBody: [
182
- [/"/, "string", "@popall"],
183
- [/./, "string"]
184
- ],
185
- heredoc: [
186
- [
187
- /(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,
188
- [
189
- "constants",
190
- "white",
191
- "string.heredoc.delimiter",
192
- "string.heredoc",
193
- "string.heredoc.delimiter"
194
- ]
195
- ]
196
- ],
197
- parameters: [
198
- [/\$\d+/, "variable.predefined"],
199
- [/\$\w+/, "variable"],
200
- [/\$[*@#?\-$!0_]/, "variable"],
201
- [/\$'/, "variable", "@parameterBodyQuote"],
202
- [/\$"/, "variable", "@parameterBodyDoubleQuote"],
203
- [/\$\(/, "variable", "@parameterBodyParen"],
204
- [/\$\{/, "variable", "@parameterBodyCurlyBrace"]
205
- ],
206
- parameterBodyQuote: [
207
- [/[^#:%*@\-!_']+/, "variable"],
208
- [/[#:%*@\-!_]/, "delimiter"],
209
- [/[']/, "variable", "@pop"]
210
- ],
211
- parameterBodyDoubleQuote: [
212
- [/[^#:%*@\-!_"]+/, "variable"],
213
- [/[#:%*@\-!_]/, "delimiter"],
214
- [/["]/, "variable", "@pop"]
215
- ],
216
- parameterBodyParen: [
217
- [/[^#:%*@\-!_)]+/, "variable"],
218
- [/[#:%*@\-!_]/, "delimiter"],
219
- [/[)]/, "variable", "@pop"]
220
- ],
221
- parameterBodyCurlyBrace: [
222
- [/[^#:%*@\-!_}]+/, "variable"],
223
- [/[#:%*@\-!_]/, "delimiter"],
224
- [/[}]/, "variable", "@pop"]
225
- ]
226
- }
227
- };
228
-
229
- 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: "sol",
12
- extensions: [".sol"],
13
- aliases: ["sol", "solidity", "Solidity"],
14
- loader: () => {
15
- {
16
- return import('./solidity.js');
17
- }
18
- }
19
- });