@codingame/monaco-vscode-standalone-languages 23.2.0 → 23.2.2
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.
- package/_.contribution.js +48 -0
- package/abap/abap.contribution.js +8 -0
- package/abap/abap.js +1397 -0
- package/apex/apex.contribution.js +9 -0
- package/apex/apex.js +329 -0
- package/azcli/azcli.contribution.js +8 -0
- package/azcli/azcli.js +67 -0
- package/bat/bat.contribution.js +8 -0
- package/bat/bat.js +99 -0
- package/bicep/bicep.contribution.js +8 -0
- package/bicep/bicep.js +108 -0
- package/cameligo/cameligo.contribution.js +8 -0
- package/cameligo/cameligo.js +173 -0
- package/clojure/clojure.contribution.js +8 -0
- package/clojure/clojure.js +760 -0
- package/coffee/coffee.contribution.js +9 -0
- package/coffee/coffee.js +231 -0
- package/cpp/cpp.contribution.js +14 -0
- package/cpp/cpp.js +388 -0
- package/csharp/csharp.contribution.js +8 -0
- package/csharp/csharp.js +325 -0
- package/csp/csp.contribution.js +8 -0
- package/csp/csp.js +52 -0
- package/css/css.contribution.js +9 -0
- package/css/css.js +184 -0
- package/cypher/cypher.contribution.js +8 -0
- package/cypher/cypher.js +262 -0
- package/dart/dart.contribution.js +9 -0
- package/dart/dart.js +280 -0
- package/dockerfile/dockerfile.contribution.js +9 -0
- package/dockerfile/dockerfile.js +129 -0
- package/ecl/ecl.contribution.js +8 -0
- package/ecl/ecl.js +455 -0
- package/elixir/elixir.contribution.js +8 -0
- package/elixir/elixir.js +568 -0
- package/flow9/flow9.contribution.js +8 -0
- package/flow9/flow9.js +141 -0
- package/freemarker2/freemarker2.contribution.js +52 -0
- package/freemarker2/freemarker2.js +990 -0
- package/fsharp/fsharp.contribution.js +8 -0
- package/fsharp/fsharp.js +216 -0
- package/go/go.contribution.js +8 -0
- package/go/go.js +217 -0
- package/graphql/graphql.contribution.js +9 -0
- package/graphql/graphql.js +150 -0
- package/handlebars/handlebars.contribution.js +9 -0
- package/handlebars/handlebars.js +413 -0
- package/hcl/hcl.contribution.js +8 -0
- package/hcl/hcl.js +182 -0
- package/html/html.contribution.js +9 -0
- package/html/html.js +302 -0
- package/index.js +81 -48
- package/ini/ini.contribution.js +9 -0
- package/ini/ini.js +70 -0
- package/java/java.contribution.js +9 -0
- package/java/java.js +231 -0
- package/javascript/javascript.contribution.js +11 -0
- package/javascript/javascript.js +70 -0
- package/julia/julia.contribution.js +8 -0
- package/julia/julia.js +510 -0
- package/kotlin/kotlin.contribution.js +9 -0
- package/kotlin/kotlin.js +251 -0
- package/less/less.contribution.js +9 -0
- package/less/less.js +160 -0
- package/lexon/lexon.contribution.js +8 -0
- package/lexon/lexon.js +156 -0
- package/liquid/liquid.contribution.js +9 -0
- package/liquid/liquid.js +234 -0
- package/lua/lua.contribution.js +8 -0
- package/lua/lua.js +161 -0
- package/m3/m3.contribution.js +8 -0
- package/m3/m3.js +209 -0
- package/markdown/markdown.contribution.js +8 -0
- package/markdown/markdown.js +228 -0
- package/mdx/mdx.contribution.js +8 -0
- package/mdx/mdx.js +158 -0
- package/mips/mips.contribution.js +9 -0
- package/mips/mips.js +197 -0
- package/msdax/msdax.contribution.js +8 -0
- package/msdax/msdax.js +374 -0
- package/mysql/mysql.contribution.js +8 -0
- package/mysql/mysql.js +877 -0
- package/objective-c/objective-c.contribution.js +8 -0
- package/objective-c/objective-c.js +182 -0
- package/package.json +2 -2
- package/pascal/pascal.contribution.js +9 -0
- package/pascal/pascal.js +250 -0
- package/pascaligo/pascaligo.contribution.js +8 -0
- package/pascaligo/pascaligo.js +163 -0
- package/perl/perl.contribution.js +8 -0
- package/perl/perl.js +625 -0
- package/pgsql/pgsql.contribution.js +8 -0
- package/pgsql/pgsql.js +850 -0
- package/php/php.contribution.js +9 -0
- package/php/php.js +499 -0
- package/pla/pla.contribution.js +7 -0
- package/pla/pla.js +136 -0
- package/postiats/postiats.contribution.js +8 -0
- package/postiats/postiats.js +906 -0
- package/powerquery/powerquery.contribution.js +8 -0
- package/powerquery/powerquery.js +889 -0
- package/powershell/powershell.contribution.js +8 -0
- package/powershell/powershell.js +238 -0
- package/protobuf/protobuf.contribution.js +8 -0
- package/protobuf/protobuf.js +419 -0
- package/pug/pug.contribution.js +8 -0
- package/pug/pug.js +401 -0
- package/python/python.contribution.js +9 -0
- package/python/python.js +294 -0
- package/qsharp/qsharp.contribution.js +8 -0
- package/qsharp/qsharp.js +300 -0
- package/r/r.contribution.js +8 -0
- package/r/r.js +242 -0
- package/razor/razor.contribution.js +9 -0
- package/razor/razor.js +544 -0
- package/redis/redis.contribution.js +8 -0
- package/redis/redis.js +301 -0
- package/redshift/redshift.contribution.js +8 -0
- package/redshift/redshift.js +808 -0
- package/restructuredtext/restructuredtext.contribution.js +8 -0
- package/restructuredtext/restructuredtext.js +173 -0
- package/ruby/ruby.contribution.js +9 -0
- package/ruby/ruby.js +510 -0
- package/rust/rust.contribution.js +8 -0
- package/rust/rust.js +342 -0
- package/sb/sb.contribution.js +8 -0
- package/sb/sb.js +114 -0
- package/scala/scala.contribution.js +9 -0
- package/scala/scala.js +369 -0
- package/scheme/scheme.contribution.js +8 -0
- package/scheme/scheme.js +107 -0
- package/scss/scss.contribution.js +9 -0
- package/scss/scss.js +259 -0
- package/shell/shell.contribution.js +8 -0
- package/shell/shell.js +220 -0
- package/solidity/solidity.contribution.js +8 -0
- package/solidity/solidity.js +1366 -0
- package/sophia/sophia.contribution.js +8 -0
- package/sophia/sophia.js +198 -0
- package/sparql/sparql.contribution.js +8 -0
- package/sparql/sparql.js +200 -0
- package/sql/sql.contribution.js +8 -0
- package/sql/sql.js +852 -0
- package/st/st.contribution.js +8 -0
- package/st/st.js +415 -0
- package/swift/swift.contribution.js +9 -0
- package/swift/swift.js +311 -0
- package/systemverilog/systemverilog.contribution.js +14 -0
- package/systemverilog/systemverilog.js +575 -0
- package/tcl/tcl.contribution.js +8 -0
- package/tcl/tcl.js +231 -0
- package/twig/twig.contribution.js +9 -0
- package/twig/twig.js +391 -0
- package/typescript/typescript.contribution.js +11 -0
- package/typescript/typescript.js +336 -0
- package/typespec/typespec.contribution.js +8 -0
- package/typespec/typespec.js +126 -0
- package/vb/vb.contribution.js +8 -0
- package/vb/vb.js +371 -0
- package/wgsl/wgsl.contribution.js +8 -0
- package/wgsl/wgsl.js +452 -0
- package/xml/xml.contribution.js +28 -0
- package/xml/xml.js +88 -0
- package/yaml/yaml.contribution.js +9 -0
- package/yaml/yaml.js +199 -0
package/java/java.js
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
const conf = {
|
|
2
|
+
// the default separators except `@$`
|
|
3
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
4
|
+
comments: {
|
|
5
|
+
lineComment: "//",
|
|
6
|
+
blockComment: ["/*", "*/"]
|
|
7
|
+
},
|
|
8
|
+
brackets: [
|
|
9
|
+
["{", "}"],
|
|
10
|
+
["[", "]"],
|
|
11
|
+
["(", ")"]
|
|
12
|
+
],
|
|
13
|
+
autoClosingPairs: [
|
|
14
|
+
{ open: "{", close: "}" },
|
|
15
|
+
{ open: "[", close: "]" },
|
|
16
|
+
{ open: "(", close: ")" },
|
|
17
|
+
{ open: '"', close: '"' },
|
|
18
|
+
{ open: "'", close: "'" }
|
|
19
|
+
],
|
|
20
|
+
surroundingPairs: [
|
|
21
|
+
{ open: "{", close: "}" },
|
|
22
|
+
{ open: "[", close: "]" },
|
|
23
|
+
{ open: "(", close: ")" },
|
|
24
|
+
{ open: '"', close: '"' },
|
|
25
|
+
{ open: "'", close: "'" },
|
|
26
|
+
{ open: "<", close: ">" }
|
|
27
|
+
],
|
|
28
|
+
folding: {
|
|
29
|
+
markers: {
|
|
30
|
+
start: new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
|
31
|
+
end: new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const language = {
|
|
36
|
+
defaultToken: "",
|
|
37
|
+
tokenPostfix: ".java",
|
|
38
|
+
keywords: [
|
|
39
|
+
"abstract",
|
|
40
|
+
"continue",
|
|
41
|
+
"for",
|
|
42
|
+
"new",
|
|
43
|
+
"switch",
|
|
44
|
+
"assert",
|
|
45
|
+
"default",
|
|
46
|
+
"goto",
|
|
47
|
+
"package",
|
|
48
|
+
"synchronized",
|
|
49
|
+
"boolean",
|
|
50
|
+
"do",
|
|
51
|
+
"if",
|
|
52
|
+
"private",
|
|
53
|
+
"this",
|
|
54
|
+
"break",
|
|
55
|
+
"double",
|
|
56
|
+
"implements",
|
|
57
|
+
"protected",
|
|
58
|
+
"throw",
|
|
59
|
+
"byte",
|
|
60
|
+
"else",
|
|
61
|
+
"import",
|
|
62
|
+
"public",
|
|
63
|
+
"throws",
|
|
64
|
+
"case",
|
|
65
|
+
"enum",
|
|
66
|
+
"instanceof",
|
|
67
|
+
"return",
|
|
68
|
+
"transient",
|
|
69
|
+
"catch",
|
|
70
|
+
"extends",
|
|
71
|
+
"int",
|
|
72
|
+
"short",
|
|
73
|
+
"try",
|
|
74
|
+
"char",
|
|
75
|
+
"final",
|
|
76
|
+
"interface",
|
|
77
|
+
"static",
|
|
78
|
+
"void",
|
|
79
|
+
"class",
|
|
80
|
+
"finally",
|
|
81
|
+
"long",
|
|
82
|
+
"strictfp",
|
|
83
|
+
"volatile",
|
|
84
|
+
"const",
|
|
85
|
+
"float",
|
|
86
|
+
"native",
|
|
87
|
+
"super",
|
|
88
|
+
"while",
|
|
89
|
+
"true",
|
|
90
|
+
"false",
|
|
91
|
+
"yield",
|
|
92
|
+
"record",
|
|
93
|
+
"sealed",
|
|
94
|
+
"non-sealed",
|
|
95
|
+
"permits"
|
|
96
|
+
],
|
|
97
|
+
operators: [
|
|
98
|
+
"=",
|
|
99
|
+
">",
|
|
100
|
+
"<",
|
|
101
|
+
"!",
|
|
102
|
+
"~",
|
|
103
|
+
"?",
|
|
104
|
+
":",
|
|
105
|
+
"==",
|
|
106
|
+
"<=",
|
|
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
|
+
// we include these common regular expressions
|
|
137
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
138
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
139
|
+
digits: /\d+(_+\d+)*/,
|
|
140
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
141
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
142
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
143
|
+
// The main tokenizer for our languages
|
|
144
|
+
tokenizer: {
|
|
145
|
+
root: [
|
|
146
|
+
// Special keyword with a dash
|
|
147
|
+
["non-sealed", "keyword.non-sealed"],
|
|
148
|
+
// identifiers and keywords
|
|
149
|
+
[
|
|
150
|
+
/[a-zA-Z_$][\w$]*/,
|
|
151
|
+
{
|
|
152
|
+
cases: {
|
|
153
|
+
"@keywords": { token: "keyword.$0" },
|
|
154
|
+
"@default": "identifier"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
// whitespace
|
|
159
|
+
{ include: "@whitespace" },
|
|
160
|
+
// delimiters and operators
|
|
161
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
162
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
163
|
+
[
|
|
164
|
+
/@symbols/,
|
|
165
|
+
{
|
|
166
|
+
cases: {
|
|
167
|
+
"@operators": "delimiter",
|
|
168
|
+
"@default": ""
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
// @ annotations.
|
|
173
|
+
[/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
|
|
174
|
+
// numbers
|
|
175
|
+
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
|
|
176
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
|
|
177
|
+
[/0[xX](@hexdigits)[Ll]?/, "number.hex"],
|
|
178
|
+
[/0(@octaldigits)[Ll]?/, "number.octal"],
|
|
179
|
+
[/0[bB](@binarydigits)[Ll]?/, "number.binary"],
|
|
180
|
+
[/(@digits)[fFdD]/, "number.float"],
|
|
181
|
+
[/(@digits)[lL]?/, "number"],
|
|
182
|
+
// delimiter: after number because of .\d floats
|
|
183
|
+
[/[;,.]/, "delimiter"],
|
|
184
|
+
// strings
|
|
185
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
186
|
+
// non-teminated string
|
|
187
|
+
[/"""/, "string", "@multistring"],
|
|
188
|
+
[/"/, "string", "@string"],
|
|
189
|
+
// characters
|
|
190
|
+
[/'[^\\']'/, "string"],
|
|
191
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
192
|
+
[/'/, "string.invalid"]
|
|
193
|
+
],
|
|
194
|
+
whitespace: [
|
|
195
|
+
[/[ \t\r\n]+/, ""],
|
|
196
|
+
[/\/\*\*(?!\/)/, "comment.doc", "@javadoc"],
|
|
197
|
+
[/\/\*/, "comment", "@comment"],
|
|
198
|
+
[/\/\/.*$/, "comment"]
|
|
199
|
+
],
|
|
200
|
+
comment: [
|
|
201
|
+
[/[^\/*]+/, "comment"],
|
|
202
|
+
// [/\/\*/, 'comment', '@push' ], // nested comment not allowed :-(
|
|
203
|
+
// [/\/\*/, 'comment.invalid' ], // this breaks block comments in the shape of /* //*/
|
|
204
|
+
[/\*\//, "comment", "@pop"],
|
|
205
|
+
[/[\/*]/, "comment"]
|
|
206
|
+
],
|
|
207
|
+
//Identical copy of comment above, except for the addition of .doc
|
|
208
|
+
javadoc: [
|
|
209
|
+
[/[^\/*]+/, "comment.doc"],
|
|
210
|
+
// [/\/\*/, 'comment.doc', '@push' ], // nested comment not allowed :-(
|
|
211
|
+
[/\/\*/, "comment.doc.invalid"],
|
|
212
|
+
[/\*\//, "comment.doc", "@pop"],
|
|
213
|
+
[/[\/*]/, "comment.doc"]
|
|
214
|
+
],
|
|
215
|
+
string: [
|
|
216
|
+
[/[^\\"]+/, "string"],
|
|
217
|
+
[/@escapes/, "string.escape"],
|
|
218
|
+
[/\\./, "string.escape.invalid"],
|
|
219
|
+
[/"/, "string", "@pop"]
|
|
220
|
+
],
|
|
221
|
+
multistring: [
|
|
222
|
+
[/[^\\"]+/, "string"],
|
|
223
|
+
[/@escapes/, "string.escape"],
|
|
224
|
+
[/\\./, "string.escape.invalid"],
|
|
225
|
+
[/"""/, "string", "@pop"],
|
|
226
|
+
[/./, "string"]
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export { conf, language };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { registerLanguage } from '../_.contribution.js';
|
|
2
|
+
|
|
3
|
+
registerLanguage({
|
|
4
|
+
id: "javascript",
|
|
5
|
+
extensions: [".js", ".es6", ".jsx", ".mjs", ".cjs"],
|
|
6
|
+
firstLine: "^#!.*\\bnode",
|
|
7
|
+
filenames: ["jakefile"],
|
|
8
|
+
aliases: ["JavaScript", "javascript", "js"],
|
|
9
|
+
mimetypes: ["text/javascript"],
|
|
10
|
+
loader: () => import('./javascript.js')
|
|
11
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { conf as conf$1, language as language$1 } from '../typescript/typescript.js';
|
|
2
|
+
|
|
3
|
+
const conf = conf$1;
|
|
4
|
+
const language = {
|
|
5
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
|
6
|
+
defaultToken: "invalid",
|
|
7
|
+
tokenPostfix: ".js",
|
|
8
|
+
keywords: [
|
|
9
|
+
"break",
|
|
10
|
+
"case",
|
|
11
|
+
"catch",
|
|
12
|
+
"class",
|
|
13
|
+
"continue",
|
|
14
|
+
"const",
|
|
15
|
+
"constructor",
|
|
16
|
+
"debugger",
|
|
17
|
+
"default",
|
|
18
|
+
"delete",
|
|
19
|
+
"do",
|
|
20
|
+
"else",
|
|
21
|
+
"export",
|
|
22
|
+
"extends",
|
|
23
|
+
"false",
|
|
24
|
+
"finally",
|
|
25
|
+
"for",
|
|
26
|
+
"from",
|
|
27
|
+
"function",
|
|
28
|
+
"get",
|
|
29
|
+
"if",
|
|
30
|
+
"import",
|
|
31
|
+
"in",
|
|
32
|
+
"instanceof",
|
|
33
|
+
"let",
|
|
34
|
+
"new",
|
|
35
|
+
"null",
|
|
36
|
+
"return",
|
|
37
|
+
"set",
|
|
38
|
+
"static",
|
|
39
|
+
"super",
|
|
40
|
+
"switch",
|
|
41
|
+
"symbol",
|
|
42
|
+
"this",
|
|
43
|
+
"throw",
|
|
44
|
+
"true",
|
|
45
|
+
"try",
|
|
46
|
+
"typeof",
|
|
47
|
+
"undefined",
|
|
48
|
+
"var",
|
|
49
|
+
"void",
|
|
50
|
+
"while",
|
|
51
|
+
"with",
|
|
52
|
+
"yield",
|
|
53
|
+
"async",
|
|
54
|
+
"await",
|
|
55
|
+
"of"
|
|
56
|
+
],
|
|
57
|
+
typeKeywords: [],
|
|
58
|
+
operators: language$1.operators,
|
|
59
|
+
symbols: language$1.symbols,
|
|
60
|
+
escapes: language$1.escapes,
|
|
61
|
+
digits: language$1.digits,
|
|
62
|
+
octaldigits: language$1.octaldigits,
|
|
63
|
+
binarydigits: language$1.binarydigits,
|
|
64
|
+
hexdigits: language$1.hexdigits,
|
|
65
|
+
regexpctl: language$1.regexpctl,
|
|
66
|
+
regexpesc: language$1.regexpesc,
|
|
67
|
+
tokenizer: language$1.tokenizer
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export { conf, language };
|