@kong-ui-public/monaco-editor 0.3.0 → 0.3.1-pr.2622.ca1f578c8.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.
- package/package.json +1 -1
- package/dist/abap-CrvW7_qN.js +0 -1398
- package/dist/apex-BAOI8p1v.js +0 -327
- package/dist/assets/css.worker-Cb0JI69t.js +0 -93
- package/dist/assets/editor.worker-DzMH9hFo.js +0 -26
- package/dist/assets/html.worker-BNFZMwEc.js +0 -470
- package/dist/assets/json.worker-BCybXpia.js +0 -58
- package/dist/assets/ts.worker-DAVh1bw1.js +0 -67731
- package/dist/azcli-BlCk_UqW.js +0 -68
- package/dist/bat-DPoEelVx.js +0 -100
- package/dist/bicep-Cp1F394l.js +0 -102
- package/dist/cameligo-CWqtSlQs.js +0 -174
- package/dist/clojure-CKBp32Gf.js +0 -761
- package/dist/coffee-CDo6vc-J.js +0 -232
- package/dist/cpp-DokufPgf.js +0 -389
- package/dist/csharp-BQi3szM0.js +0 -326
- package/dist/csp-BSGtCCZ-.js +0 -53
- package/dist/css-DEPFDJfb.js +0 -187
- package/dist/cssMode-BoaW_8EY.js +0 -141
- package/dist/cypher-DAb1vOxS.js +0 -263
- package/dist/dart-C8p4jewR.js +0 -281
- package/dist/dockerfile-DP0iLFPN.js +0 -130
- package/dist/ecl-BDQHA6fi.js +0 -456
- package/dist/elixir-D4II6kDM.js +0 -569
- package/dist/flow9-StcnL-VB.js +0 -142
- package/dist/freemarker2-DLxAEbra.js +0 -982
- package/dist/fsharp-DdUVp3EN.js +0 -217
- package/dist/go-D1-I258M.js +0 -218
- package/dist/graphql-DWkL3f8U.js +0 -151
- package/dist/handlebars-H1fAc7pY.js +0 -412
- package/dist/hcl-D_0MNifv.js +0 -183
- package/dist/html-Bjh5RSoV.js +0 -301
- package/dist/htmlMode-XE4-FvOp.js +0 -152
- package/dist/index-BtAApC8Z.js +0 -129109
- package/dist/ini-C4I2-MT7.js +0 -71
- package/dist/java-OBvaP_SS.js +0 -232
- package/dist/javascript-BL-y8a3N.js +0 -70
- package/dist/jsonMode-BO164Oml.js +0 -569
- package/dist/julia-BmDH8Kkf.js +0 -511
- package/dist/kotlin-Dhu5AGOD.js +0 -252
- package/dist/less-CzmjXREq.js +0 -162
- package/dist/lexon-CV2c4pN9.js +0 -157
- package/dist/liquid-B4OW2xCW.js +0 -233
- package/dist/lspLanguageFeatures-CLOLvtro.js +0 -1458
- package/dist/lua-CFY5U8qF.js +0 -162
- package/dist/m3-BL_AnZVh.js +0 -210
- package/dist/markdown-CWKQPXCv.js +0 -229
- package/dist/mdx-BscoYQtT.js +0 -158
- package/dist/mips-ButYmJ5E.js +0 -198
- package/dist/monaco-editor.es.js +0 -5
- package/dist/monaco-editor.umd.js +0 -1234
- package/dist/msdax-C3cnXqDh.js +0 -375
- package/dist/mysql-YlSHaf6G.js +0 -878
- package/dist/objective-c-Dwnlproe.js +0 -183
- package/dist/pascal-UzGbSWEN.js +0 -251
- package/dist/pascaligo-CslTgu68.js +0 -164
- package/dist/perl-oj6r_mgw.js +0 -626
- package/dist/pgsql-DSBO0Mev.js +0 -851
- package/dist/php-YzCD--7j.js +0 -500
- package/dist/pla-CmylB8vQ.js +0 -137
- package/dist/postiats-CLFW5gNY.js +0 -907
- package/dist/powerquery-CmOWUvlh.js +0 -890
- package/dist/powershell-fHQcmBLK.js +0 -239
- package/dist/protobuf-p5BArb-9.js +0 -420
- package/dist/pug-gVdUDvqf.js +0 -402
- package/dist/python-CdwN88xa.js +0 -294
- package/dist/qsharp-DnrWSUlt.js +0 -301
- package/dist/r-Cv309K2z.js +0 -243
- package/dist/razor-BzIEQn-i.js +0 -543
- package/dist/redis-DTcS4wMj.js +0 -302
- package/dist/redshift-hLxZVESM.js +0 -809
- package/dist/restructuredtext-C898lK4f.js +0 -174
- package/dist/ruby-CgKtnJIQ.js +0 -511
- package/dist/rust-bj8oxVnh.js +0 -343
- package/dist/sb-DWynz26l.js +0 -115
- package/dist/scala-BL5z1UEd.js +0 -370
- package/dist/scheme-DUJsH6VU.js +0 -108
- package/dist/scss-CxjmhvaL.js +0 -262
- package/dist/shell-D14Zs1dF.js +0 -221
- package/dist/solidity-WyRm-BGK.js +0 -1367
- package/dist/sophia-CKk-_Oa5.js +0 -199
- package/dist/sparql-DHtmINMZ.js +0 -201
- package/dist/sql-Dqaj5JHC.js +0 -853
- package/dist/st-Bj2IIaop.js +0 -416
- package/dist/style.css +0 -1
- package/dist/swift-DwxP72iM.js +0 -312
- package/dist/systemverilog-D7wJfuql.js +0 -576
- package/dist/tcl-0ApMt-eC.js +0 -232
- package/dist/tsMode-Bm7Ao8a0.js +0 -946
- package/dist/twig-DxwbdmvQ.js +0 -392
- package/dist/types/components/MonacoEditor.vue.d.ts +0 -52
- package/dist/types/components/MonacoEditor.vue.d.ts.map +0 -1
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts +0 -19
- package/dist/types/components/MonacoEditorStatusOverlay.vue.d.ts.map +0 -1
- package/dist/types/composables/useI18n.d.ts +0 -9
- package/dist/types/composables/useI18n.d.ts.map +0 -1
- package/dist/types/composables/useMonacoEditor.d.ts +0 -25
- package/dist/types/composables/useMonacoEditor.d.ts.map +0 -1
- package/dist/types/constants/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/mocks/monaco-editor-api.d.ts +0 -2
- package/dist/types/tests/mocks/monaco-editor-api.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -69
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/typescript-xVL7xVgf.js +0 -336
- package/dist/typespec-Fd-JwSuS.js +0 -117
- package/dist/vb-CxuyYE1I.js +0 -372
- package/dist/wgsl-DoEGc31J.js +0 -439
- package/dist/xml-5AZvXygb.js +0 -88
- package/dist/yaml-BpKYQQZ4.js +0 -199
package/dist/rust-bj8oxVnh.js
DELETED
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "//",
|
|
4
|
-
blockComment: ["/*", "*/"]
|
|
5
|
-
},
|
|
6
|
-
brackets: [
|
|
7
|
-
["{", "}"],
|
|
8
|
-
["[", "]"],
|
|
9
|
-
["(", ")"]
|
|
10
|
-
],
|
|
11
|
-
autoClosingPairs: [
|
|
12
|
-
{ open: "[", close: "]" },
|
|
13
|
-
{ open: "{", close: "}" },
|
|
14
|
-
{ open: "(", close: ")" },
|
|
15
|
-
{ open: '"', close: '"', notIn: ["string"] }
|
|
16
|
-
],
|
|
17
|
-
surroundingPairs: [
|
|
18
|
-
{ open: "{", close: "}" },
|
|
19
|
-
{ open: "[", close: "]" },
|
|
20
|
-
{ open: "(", close: ")" },
|
|
21
|
-
{ open: '"', close: '"' },
|
|
22
|
-
{ open: "'", close: "'" }
|
|
23
|
-
],
|
|
24
|
-
folding: {
|
|
25
|
-
markers: {
|
|
26
|
-
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
|
27
|
-
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}, t = {
|
|
31
|
-
tokenPostfix: ".rust",
|
|
32
|
-
defaultToken: "invalid",
|
|
33
|
-
keywords: [
|
|
34
|
-
"as",
|
|
35
|
-
"async",
|
|
36
|
-
"await",
|
|
37
|
-
"box",
|
|
38
|
-
"break",
|
|
39
|
-
"const",
|
|
40
|
-
"continue",
|
|
41
|
-
"crate",
|
|
42
|
-
"dyn",
|
|
43
|
-
"else",
|
|
44
|
-
"enum",
|
|
45
|
-
"extern",
|
|
46
|
-
"false",
|
|
47
|
-
"fn",
|
|
48
|
-
"for",
|
|
49
|
-
"if",
|
|
50
|
-
"impl",
|
|
51
|
-
"in",
|
|
52
|
-
"let",
|
|
53
|
-
"loop",
|
|
54
|
-
"match",
|
|
55
|
-
"mod",
|
|
56
|
-
"move",
|
|
57
|
-
"mut",
|
|
58
|
-
"pub",
|
|
59
|
-
"ref",
|
|
60
|
-
"return",
|
|
61
|
-
"self",
|
|
62
|
-
"static",
|
|
63
|
-
"struct",
|
|
64
|
-
"super",
|
|
65
|
-
"trait",
|
|
66
|
-
"true",
|
|
67
|
-
"try",
|
|
68
|
-
"type",
|
|
69
|
-
"unsafe",
|
|
70
|
-
"use",
|
|
71
|
-
"where",
|
|
72
|
-
"while",
|
|
73
|
-
"catch",
|
|
74
|
-
"default",
|
|
75
|
-
"union",
|
|
76
|
-
"static",
|
|
77
|
-
"abstract",
|
|
78
|
-
"alignof",
|
|
79
|
-
"become",
|
|
80
|
-
"do",
|
|
81
|
-
"final",
|
|
82
|
-
"macro",
|
|
83
|
-
"offsetof",
|
|
84
|
-
"override",
|
|
85
|
-
"priv",
|
|
86
|
-
"proc",
|
|
87
|
-
"pure",
|
|
88
|
-
"sizeof",
|
|
89
|
-
"typeof",
|
|
90
|
-
"unsized",
|
|
91
|
-
"virtual",
|
|
92
|
-
"yield"
|
|
93
|
-
],
|
|
94
|
-
typeKeywords: [
|
|
95
|
-
"Self",
|
|
96
|
-
"m32",
|
|
97
|
-
"m64",
|
|
98
|
-
"m128",
|
|
99
|
-
"f80",
|
|
100
|
-
"f16",
|
|
101
|
-
"f128",
|
|
102
|
-
"int",
|
|
103
|
-
"uint",
|
|
104
|
-
"float",
|
|
105
|
-
"char",
|
|
106
|
-
"bool",
|
|
107
|
-
"u8",
|
|
108
|
-
"u16",
|
|
109
|
-
"u32",
|
|
110
|
-
"u64",
|
|
111
|
-
"f32",
|
|
112
|
-
"f64",
|
|
113
|
-
"i8",
|
|
114
|
-
"i16",
|
|
115
|
-
"i32",
|
|
116
|
-
"i64",
|
|
117
|
-
"str",
|
|
118
|
-
"Option",
|
|
119
|
-
"Either",
|
|
120
|
-
"c_float",
|
|
121
|
-
"c_double",
|
|
122
|
-
"c_void",
|
|
123
|
-
"FILE",
|
|
124
|
-
"fpos_t",
|
|
125
|
-
"DIR",
|
|
126
|
-
"dirent",
|
|
127
|
-
"c_char",
|
|
128
|
-
"c_schar",
|
|
129
|
-
"c_uchar",
|
|
130
|
-
"c_short",
|
|
131
|
-
"c_ushort",
|
|
132
|
-
"c_int",
|
|
133
|
-
"c_uint",
|
|
134
|
-
"c_long",
|
|
135
|
-
"c_ulong",
|
|
136
|
-
"size_t",
|
|
137
|
-
"ptrdiff_t",
|
|
138
|
-
"clock_t",
|
|
139
|
-
"time_t",
|
|
140
|
-
"c_longlong",
|
|
141
|
-
"c_ulonglong",
|
|
142
|
-
"intptr_t",
|
|
143
|
-
"uintptr_t",
|
|
144
|
-
"off_t",
|
|
145
|
-
"dev_t",
|
|
146
|
-
"ino_t",
|
|
147
|
-
"pid_t",
|
|
148
|
-
"mode_t",
|
|
149
|
-
"ssize_t"
|
|
150
|
-
],
|
|
151
|
-
constants: ["true", "false", "Some", "None", "Left", "Right", "Ok", "Err"],
|
|
152
|
-
supportConstants: [
|
|
153
|
-
"EXIT_FAILURE",
|
|
154
|
-
"EXIT_SUCCESS",
|
|
155
|
-
"RAND_MAX",
|
|
156
|
-
"EOF",
|
|
157
|
-
"SEEK_SET",
|
|
158
|
-
"SEEK_CUR",
|
|
159
|
-
"SEEK_END",
|
|
160
|
-
"_IOFBF",
|
|
161
|
-
"_IONBF",
|
|
162
|
-
"_IOLBF",
|
|
163
|
-
"BUFSIZ",
|
|
164
|
-
"FOPEN_MAX",
|
|
165
|
-
"FILENAME_MAX",
|
|
166
|
-
"L_tmpnam",
|
|
167
|
-
"TMP_MAX",
|
|
168
|
-
"O_RDONLY",
|
|
169
|
-
"O_WRONLY",
|
|
170
|
-
"O_RDWR",
|
|
171
|
-
"O_APPEND",
|
|
172
|
-
"O_CREAT",
|
|
173
|
-
"O_EXCL",
|
|
174
|
-
"O_TRUNC",
|
|
175
|
-
"S_IFIFO",
|
|
176
|
-
"S_IFCHR",
|
|
177
|
-
"S_IFBLK",
|
|
178
|
-
"S_IFDIR",
|
|
179
|
-
"S_IFREG",
|
|
180
|
-
"S_IFMT",
|
|
181
|
-
"S_IEXEC",
|
|
182
|
-
"S_IWRITE",
|
|
183
|
-
"S_IREAD",
|
|
184
|
-
"S_IRWXU",
|
|
185
|
-
"S_IXUSR",
|
|
186
|
-
"S_IWUSR",
|
|
187
|
-
"S_IRUSR",
|
|
188
|
-
"F_OK",
|
|
189
|
-
"R_OK",
|
|
190
|
-
"W_OK",
|
|
191
|
-
"X_OK",
|
|
192
|
-
"STDIN_FILENO",
|
|
193
|
-
"STDOUT_FILENO",
|
|
194
|
-
"STDERR_FILENO"
|
|
195
|
-
],
|
|
196
|
-
supportMacros: [
|
|
197
|
-
"format!",
|
|
198
|
-
"print!",
|
|
199
|
-
"println!",
|
|
200
|
-
"panic!",
|
|
201
|
-
"format_args!",
|
|
202
|
-
"unreachable!",
|
|
203
|
-
"write!",
|
|
204
|
-
"writeln!"
|
|
205
|
-
],
|
|
206
|
-
operators: [
|
|
207
|
-
"!",
|
|
208
|
-
"!=",
|
|
209
|
-
"%",
|
|
210
|
-
"%=",
|
|
211
|
-
"&",
|
|
212
|
-
"&=",
|
|
213
|
-
"&&",
|
|
214
|
-
"*",
|
|
215
|
-
"*=",
|
|
216
|
-
"+",
|
|
217
|
-
"+=",
|
|
218
|
-
"-",
|
|
219
|
-
"-=",
|
|
220
|
-
"->",
|
|
221
|
-
".",
|
|
222
|
-
"..",
|
|
223
|
-
"...",
|
|
224
|
-
"/",
|
|
225
|
-
"/=",
|
|
226
|
-
":",
|
|
227
|
-
";",
|
|
228
|
-
"<<",
|
|
229
|
-
"<<=",
|
|
230
|
-
"<",
|
|
231
|
-
"<=",
|
|
232
|
-
"=",
|
|
233
|
-
"==",
|
|
234
|
-
"=>",
|
|
235
|
-
">",
|
|
236
|
-
">=",
|
|
237
|
-
">>",
|
|
238
|
-
">>=",
|
|
239
|
-
"@",
|
|
240
|
-
"^",
|
|
241
|
-
"^=",
|
|
242
|
-
"|",
|
|
243
|
-
"|=",
|
|
244
|
-
"||",
|
|
245
|
-
"_",
|
|
246
|
-
"?",
|
|
247
|
-
"#"
|
|
248
|
-
],
|
|
249
|
-
escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,
|
|
250
|
-
delimiters: /[,]/,
|
|
251
|
-
symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,
|
|
252
|
-
intSuffixes: /[iu](8|16|32|64|128|size)/,
|
|
253
|
-
floatSuffixes: /f(32|64)/,
|
|
254
|
-
tokenizer: {
|
|
255
|
-
root: [
|
|
256
|
-
// Raw string literals
|
|
257
|
-
[/r(#*)"/, { token: "string.quote", bracket: "@open", next: "@stringraw.$1" }],
|
|
258
|
-
[
|
|
259
|
-
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
|
260
|
-
{
|
|
261
|
-
cases: {
|
|
262
|
-
"@typeKeywords": "keyword.type",
|
|
263
|
-
"@keywords": "keyword",
|
|
264
|
-
"@supportConstants": "keyword",
|
|
265
|
-
"@supportMacros": "keyword",
|
|
266
|
-
"@constants": "keyword",
|
|
267
|
-
"@default": "identifier"
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
// Designator
|
|
272
|
-
[/\$/, "identifier"],
|
|
273
|
-
// Lifetime annotations
|
|
274
|
-
[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"],
|
|
275
|
-
// Byte literal
|
|
276
|
-
[/'(\S|@escapes)'/, "string.byteliteral"],
|
|
277
|
-
// Strings
|
|
278
|
-
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
279
|
-
{ include: "@numbers" },
|
|
280
|
-
// Whitespace + comments
|
|
281
|
-
{ include: "@whitespace" },
|
|
282
|
-
[
|
|
283
|
-
/@delimiters/,
|
|
284
|
-
{
|
|
285
|
-
cases: {
|
|
286
|
-
"@keywords": "keyword",
|
|
287
|
-
"@default": "delimiter"
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
[/[{}()\[\]<>]/, "@brackets"],
|
|
292
|
-
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }]
|
|
293
|
-
],
|
|
294
|
-
whitespace: [
|
|
295
|
-
[/[ \t\r\n]+/, "white"],
|
|
296
|
-
[/\/\*/, "comment", "@comment"],
|
|
297
|
-
[/\/\/.*$/, "comment"]
|
|
298
|
-
],
|
|
299
|
-
comment: [
|
|
300
|
-
[/[^\/*]+/, "comment"],
|
|
301
|
-
[/\/\*/, "comment", "@push"],
|
|
302
|
-
["\\*/", "comment", "@pop"],
|
|
303
|
-
[/[\/*]/, "comment"]
|
|
304
|
-
],
|
|
305
|
-
string: [
|
|
306
|
-
[/[^\\"]+/, "string"],
|
|
307
|
-
[/@escapes/, "string.escape"],
|
|
308
|
-
[/\\./, "string.escape.invalid"],
|
|
309
|
-
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
310
|
-
],
|
|
311
|
-
stringraw: [
|
|
312
|
-
[/[^"#]+/, { token: "string" }],
|
|
313
|
-
[
|
|
314
|
-
/"(#*)/,
|
|
315
|
-
{
|
|
316
|
-
cases: {
|
|
317
|
-
"$1==$S2": { token: "string.quote", bracket: "@close", next: "@pop" },
|
|
318
|
-
"@default": { token: "string" }
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
],
|
|
322
|
-
[/["#]/, { token: "string" }]
|
|
323
|
-
],
|
|
324
|
-
numbers: [
|
|
325
|
-
//Octal
|
|
326
|
-
[/(0o[0-7_]+)(@intSuffixes)?/, { token: "number" }],
|
|
327
|
-
//Binary
|
|
328
|
-
[/(0b[0-1_]+)(@intSuffixes)?/, { token: "number" }],
|
|
329
|
-
//Exponent
|
|
330
|
-
[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, { token: "number" }],
|
|
331
|
-
//Float
|
|
332
|
-
[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, { token: "number" }],
|
|
333
|
-
//Hexadecimal
|
|
334
|
-
[/(0x[\da-fA-F]+)_?(@intSuffixes)?/, { token: "number" }],
|
|
335
|
-
//Integer
|
|
336
|
-
[/[\d][\d_]*(@intSuffixes?)?/, { token: "number" }]
|
|
337
|
-
]
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
export {
|
|
341
|
-
e as conf,
|
|
342
|
-
t as language
|
|
343
|
-
};
|
package/dist/sb-DWynz26l.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
const e = {
|
|
2
|
-
comments: {
|
|
3
|
-
lineComment: "'"
|
|
4
|
-
},
|
|
5
|
-
brackets: [
|
|
6
|
-
["(", ")"],
|
|
7
|
-
["[", "]"],
|
|
8
|
-
["If", "EndIf"],
|
|
9
|
-
["While", "EndWhile"],
|
|
10
|
-
["For", "EndFor"],
|
|
11
|
-
["Sub", "EndSub"]
|
|
12
|
-
],
|
|
13
|
-
autoClosingPairs: [
|
|
14
|
-
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
|
15
|
-
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
|
16
|
-
{ open: "[", close: "]", notIn: ["string", "comment"] }
|
|
17
|
-
]
|
|
18
|
-
}, o = {
|
|
19
|
-
defaultToken: "",
|
|
20
|
-
tokenPostfix: ".sb",
|
|
21
|
-
ignoreCase: !0,
|
|
22
|
-
brackets: [
|
|
23
|
-
{ token: "delimiter.array", open: "[", close: "]" },
|
|
24
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
25
|
-
// Special bracket statement pairs
|
|
26
|
-
{ token: "keyword.tag-if", open: "If", close: "EndIf" },
|
|
27
|
-
{ token: "keyword.tag-while", open: "While", close: "EndWhile" },
|
|
28
|
-
{ token: "keyword.tag-for", open: "For", close: "EndFor" },
|
|
29
|
-
{ token: "keyword.tag-sub", open: "Sub", close: "EndSub" }
|
|
30
|
-
],
|
|
31
|
-
keywords: [
|
|
32
|
-
"Else",
|
|
33
|
-
"ElseIf",
|
|
34
|
-
"EndFor",
|
|
35
|
-
"EndIf",
|
|
36
|
-
"EndSub",
|
|
37
|
-
"EndWhile",
|
|
38
|
-
"For",
|
|
39
|
-
"Goto",
|
|
40
|
-
"If",
|
|
41
|
-
"Step",
|
|
42
|
-
"Sub",
|
|
43
|
-
"Then",
|
|
44
|
-
"To",
|
|
45
|
-
"While"
|
|
46
|
-
],
|
|
47
|
-
tagwords: ["If", "Sub", "While", "For"],
|
|
48
|
-
operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="],
|
|
49
|
-
// we include these common regular expressions
|
|
50
|
-
identifier: /[a-zA-Z_][\w]*/,
|
|
51
|
-
symbols: /[=><:+\-*\/%\.,]+/,
|
|
52
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
53
|
-
// The main tokenizer for our languages
|
|
54
|
-
tokenizer: {
|
|
55
|
-
root: [
|
|
56
|
-
// whitespace
|
|
57
|
-
{ include: "@whitespace" },
|
|
58
|
-
// classes
|
|
59
|
-
[/(@identifier)(?=[.])/, "type"],
|
|
60
|
-
// identifiers, tagwords, and keywords
|
|
61
|
-
[
|
|
62
|
-
/@identifier/,
|
|
63
|
-
{
|
|
64
|
-
cases: {
|
|
65
|
-
"@keywords": { token: "keyword.$0" },
|
|
66
|
-
"@operators": "operator",
|
|
67
|
-
"@default": "variable.name"
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
// methods, properties, and events
|
|
72
|
-
[
|
|
73
|
-
/([.])(@identifier)/,
|
|
74
|
-
{
|
|
75
|
-
cases: {
|
|
76
|
-
$2: ["delimiter", "type.member"],
|
|
77
|
-
"@default": ""
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
],
|
|
81
|
-
// numbers
|
|
82
|
-
[/\d*\.\d+/, "number.float"],
|
|
83
|
-
[/\d+/, "number"],
|
|
84
|
-
// delimiters and operators
|
|
85
|
-
[/[()\[\]]/, "@brackets"],
|
|
86
|
-
[
|
|
87
|
-
/@symbols/,
|
|
88
|
-
{
|
|
89
|
-
cases: {
|
|
90
|
-
"@operators": "operator",
|
|
91
|
-
"@default": "delimiter"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
// strings
|
|
96
|
-
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
97
|
-
// non-teminated string
|
|
98
|
-
[/"/, "string", "@string"]
|
|
99
|
-
],
|
|
100
|
-
whitespace: [
|
|
101
|
-
[/[ \t\r\n]+/, ""],
|
|
102
|
-
[/(\').*$/, "comment"]
|
|
103
|
-
],
|
|
104
|
-
string: [
|
|
105
|
-
[/[^\\"]+/, "string"],
|
|
106
|
-
[/@escapes/, "string.escape"],
|
|
107
|
-
[/\\./, "string.escape.invalid"],
|
|
108
|
-
[/"C?/, "string", "@pop"]
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
export {
|
|
113
|
-
e as conf,
|
|
114
|
-
o as language
|
|
115
|
-
};
|