@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/scss/scss.js ADDED
@@ -0,0 +1,268 @@
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/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 };
@@ -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: "shell",
12
+ extensions: [".sh", ".bash"],
13
+ aliases: ["Shell", "sh"],
14
+ loader: () => {
15
+ {
16
+ return import('./shell.js');
17
+ }
18
+ }
19
+ });
package/shell/shell.js ADDED
@@ -0,0 +1,229 @@
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/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 };
@@ -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: "sol",
12
+ extensions: [".sol"],
13
+ aliases: ["sol", "solidity", "Solidity"],
14
+ loader: () => {
15
+ {
16
+ return import('./solidity.js');
17
+ }
18
+ }
19
+ });