@tuoyuan/code-editor 1.0.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/README.md +505 -0
- package/dist/CodeEditor.vue.d.ts +335 -0
- package/dist/abap-Ck4GwL0j.js +1404 -0
- package/dist/abap-Dm-grL-k.cjs +6 -0
- package/dist/apex-BcgYgERc.cjs +6 -0
- package/dist/apex-ODA7HKAJ.js +332 -0
- package/dist/azcli-CTIyen0u.cjs +6 -0
- package/dist/azcli-Cb6cb8s9.js +74 -0
- package/dist/bat-DNcko697.cjs +6 -0
- package/dist/bat-DTzY2NZq.js +106 -0
- package/dist/bicep-BMFU7f1t.js +108 -0
- package/dist/bicep-CaTas9h4.cjs +7 -0
- package/dist/cameligo-CI3fenw2.cjs +6 -0
- package/dist/cameligo-NLSSnjLV.js +180 -0
- package/dist/clojure-BGGaGC_c.cjs +6 -0
- package/dist/clojure-Du0upEOV.js +767 -0
- package/dist/coffee-ClJtyy1o.cjs +6 -0
- package/dist/coffee-v4uQlkM7.js +238 -0
- package/dist/cpp-C8lRvf76.cjs +6 -0
- package/dist/cpp-D8cWT5D_.js +395 -0
- package/dist/csharp-Czug7i7m.js +332 -0
- package/dist/csharp-DWhydAB-.cjs +6 -0
- package/dist/csp-BWvo8sOh.cjs +6 -0
- package/dist/csp-C8fx6eO8.js +59 -0
- package/dist/css-BpNIi06k.js +193 -0
- package/dist/css-CFi1nolN.cjs +8 -0
- package/dist/cssMode-BfZeZ0sl.js +1577 -0
- package/dist/cssMode-CroponXs.cjs +9 -0
- package/dist/cypher-C17znEzs.js +269 -0
- package/dist/cypher-CeoUqDHe.cjs +6 -0
- package/dist/dart-BmDOWGHn.cjs +6 -0
- package/dist/dart-CYyrqmCr.js +287 -0
- package/dist/dockerfile-BQUsBUh7.js +136 -0
- package/dist/dockerfile-CughGaD6.cjs +6 -0
- package/dist/ecl-BDDxLC55.cjs +6 -0
- package/dist/ecl-CJB68izO.js +462 -0
- package/dist/elixir-BPaYnkX2.cjs +6 -0
- package/dist/elixir-DljgmHqx.js +575 -0
- package/dist/flow9-0BfLJTIY.js +148 -0
- package/dist/flow9-BYsSavfX.cjs +6 -0
- package/dist/formatter.d.ts +16 -0
- package/dist/freemarker2-CpMdvAfd.cjs +8 -0
- package/dist/freemarker2-DVRVJu0B.js +995 -0
- package/dist/fsharp-SmZEcjiu.cjs +6 -0
- package/dist/fsharp-lmsaS1LJ.js +223 -0
- package/dist/go-Tv83ayL9.js +224 -0
- package/dist/go-xVW5xrOi.cjs +6 -0
- package/dist/graphql-BH1G4Uv8.js +157 -0
- package/dist/graphql-BaJ0LkdR.cjs +6 -0
- package/dist/handlebars-8AMUT0_r.cjs +6 -0
- package/dist/handlebars-cspegSxe.js +425 -0
- package/dist/hcl-9tXVo0Oo.js +189 -0
- package/dist/hcl-BTIq68i_.cjs +6 -0
- package/dist/html-Bvlf1Z20.cjs +6 -0
- package/dist/html-zabMn0fr.js +314 -0
- package/dist/htmlMode-B3y58LIC.cjs +9 -0
- package/dist/htmlMode-jXZ-OnTX.js +1587 -0
- package/dist/index-BvnET_j2.js +132407 -0
- package/dist/index-CjGIE44E.cjs +1197 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +5 -0
- package/dist/ini-CJdCU2Im.cjs +6 -0
- package/dist/ini-DZX3aW6M.js +77 -0
- package/dist/java-Day25zBa.cjs +6 -0
- package/dist/java-Q9NjwWso.js +238 -0
- package/dist/javascript-BF91TgD3.js +76 -0
- package/dist/javascript-QgWqIxzo.cjs +6 -0
- package/dist/jsonMode-Chpjh-RM.cjs +15 -0
- package/dist/jsonMode-DD3uMliY.js +2002 -0
- package/dist/julia-BqwBsF5P.cjs +6 -0
- package/dist/julia-QQBeypPo.js +517 -0
- package/dist/kotlin-2AnhId0p.js +259 -0
- package/dist/kotlin-B4u9iQDL.cjs +6 -0
- package/dist/less-CWxTTuX7.cjs +7 -0
- package/dist/less-Daawp9Qu.js +168 -0
- package/dist/lexon-B1xVKv1m.cjs +6 -0
- package/dist/lexon-CqxA-4g1.js +163 -0
- package/dist/liquid-CsQKIvsE.cjs +6 -0
- package/dist/liquid-DxypC1q6.js +246 -0
- package/dist/lua-C9DR8JqQ.js +168 -0
- package/dist/lua-GQ1AlIpR.cjs +6 -0
- package/dist/m3-ChnU6a_2.cjs +6 -0
- package/dist/m3-ChoO2Aeo.js +216 -0
- package/dist/markdown-vGe7N__p.js +235 -0
- package/dist/markdown-yRKnCzup.cjs +6 -0
- package/dist/mdx-BvsKvd6j.cjs +6 -0
- package/dist/mdx-DZRrNJcb.js +171 -0
- package/dist/mips-B35Tctk9.js +204 -0
- package/dist/mips-DE1-KCxg.cjs +6 -0
- package/dist/monaco-worker.d.ts +2 -0
- package/dist/msdax-CKduWRE-.js +381 -0
- package/dist/msdax-D0cml5wZ.cjs +6 -0
- package/dist/mysql-D4V3ltpC.js +884 -0
- package/dist/mysql-DLWkbGoZ.cjs +6 -0
- package/dist/objective-c-CaS419yz.js +189 -0
- package/dist/objective-c-aq90HTjV.cjs +6 -0
- package/dist/pascal-CzzqMa-q.js +257 -0
- package/dist/pascal-Tx_vZ5dG.cjs +6 -0
- package/dist/pascaligo-DPbJfhBm.js +170 -0
- package/dist/pascaligo-D_Ri2CTv.cjs +6 -0
- package/dist/perl-CswrnJgZ.cjs +6 -0
- package/dist/perl-DiakDHGa.js +632 -0
- package/dist/pgsql-CCS271_e.cjs +6 -0
- package/dist/pgsql-FgzHGfbe.js +857 -0
- package/dist/php-BtenrrrR.cjs +6 -0
- package/dist/php-DeEgUIDo.js +506 -0
- package/dist/pla-BtA__bSx.js +143 -0
- package/dist/pla-DqtRVxAK.cjs +6 -0
- package/dist/postiats-CDpKZOjz.js +913 -0
- package/dist/postiats-CMjeSPtv.cjs +6 -0
- package/dist/powerquery-C4wMFtve.js +896 -0
- package/dist/powerquery-DMrlf6nl.cjs +6 -0
- package/dist/powershell-BIXcUAIq.js +245 -0
- package/dist/powershell-BzvWvXBW.cjs +6 -0
- package/dist/protobuf-BHrBiKx5.js +426 -0
- package/dist/protobuf-BkfVMs3q.cjs +7 -0
- package/dist/pug-BgHHt25K.cjs +6 -0
- package/dist/pug-D_c6Bxex.js +408 -0
- package/dist/python-CDI0D2Kf.cjs +6 -0
- package/dist/python-CXOcTmBp.js +307 -0
- package/dist/qsharp-BS_wm4zq.cjs +6 -0
- package/dist/qsharp-Bmp6Uoth.js +291 -0
- package/dist/r-Cw-pZRR6.js +249 -0
- package/dist/r-XsO4bdi0.cjs +6 -0
- package/dist/razor-CAIWGDkN.cjs +6 -0
- package/dist/razor-Do5Lpn1p.js +556 -0
- package/dist/redis-D5elYsZS.cjs +6 -0
- package/dist/redis-DSkWtKTU.js +308 -0
- package/dist/redshift-BrAReR9w.cjs +6 -0
- package/dist/redshift-G3V-UH7H.js +815 -0
- package/dist/restructuredtext-C3HS0Vuf.js +180 -0
- package/dist/restructuredtext-CzNfc37y.cjs +6 -0
- package/dist/ruby-CFRrX6F7.cjs +6 -0
- package/dist/ruby-DdxOY_t-.js +517 -0
- package/dist/rust-BgYTY-pT.cjs +6 -0
- package/dist/rust-CHLNe-uh.js +349 -0
- package/dist/sb-DjdwHjNi.cjs +6 -0
- package/dist/sb-VgZvRVjv.js +121 -0
- package/dist/scala-BEo281v6.js +376 -0
- package/dist/scala-C9e5dt2E.cjs +6 -0
- package/dist/scheme-BPzKEKRg.cjs +6 -0
- package/dist/scheme-BwtlTEx9.js +114 -0
- package/dist/scss-B_KRI23k.cjs +8 -0
- package/dist/scss-DNHJcE5b.js +268 -0
- package/dist/shell-961u9U9E.cjs +6 -0
- package/dist/shell-CYXbUHt6.js +227 -0
- package/dist/solidity-B94td9D0.js +1373 -0
- package/dist/solidity-DyAQZQb-.cjs +6 -0
- package/dist/sophia-C67C1dNJ.cjs +6 -0
- package/dist/sophia-CgOMMImk.js +205 -0
- package/dist/sparql-CmRbqkGW.js +207 -0
- package/dist/sparql-DTHixtMm.cjs +6 -0
- package/dist/sql-CX8rIh5F.cjs +6 -0
- package/dist/sql-DVsVTphc.js +859 -0
- package/dist/st-ATFa4Vu3.js +422 -0
- package/dist/st-CBQkFfzG.cjs +6 -0
- package/dist/style.css +1 -0
- package/dist/swift-K4rp2L0u.js +318 -0
- package/dist/swift-XvmCMD7s.cjs +8 -0
- package/dist/systemverilog-D0lDJRC5.cjs +6 -0
- package/dist/systemverilog-YgLuECrg.js +582 -0
- package/dist/tcl-BHcJGOmo.js +238 -0
- package/dist/tcl-Ju0vlxf3.cjs +6 -0
- package/dist/tsMode-D7bHvHeH.cjs +16 -0
- package/dist/tsMode-DiYbk3vf.js +895 -0
- package/dist/twig-B1JhL8Uy.cjs +6 -0
- package/dist/twig-sVb_x968.js +398 -0
- package/dist/types.d.ts +16 -0
- package/dist/typescript-CI6w3N2S.cjs +6 -0
- package/dist/typescript-DFdjl8Xj.js +349 -0
- package/dist/typespec-BSdcQAUL.js +123 -0
- package/dist/typespec-u6UGyzVa.cjs +6 -0
- package/dist/vb-BZywMj6s.js +378 -0
- package/dist/vb-CB1voSvV.cjs +6 -0
- package/dist/wgsl-eG2bS915.js +445 -0
- package/dist/wgsl-eXQZam6Q.cjs +303 -0
- package/dist/xml-CJndgX4z.js +101 -0
- package/dist/xml-CO5xAOVk.cjs +6 -0
- package/dist/yaml--krIkoJ8.js +212 -0
- package/dist/yaml-BYk2IWKs.cjs +6 -0
- package/package.json +73 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "//",
|
|
10
|
+
blockComment: ["/*", "*/"]
|
|
11
|
+
},
|
|
12
|
+
brackets: [
|
|
13
|
+
["{", "}"],
|
|
14
|
+
["[", "]"],
|
|
15
|
+
["(", ")"]
|
|
16
|
+
],
|
|
17
|
+
autoClosingPairs: [
|
|
18
|
+
{ open: "[", close: "]" },
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "(", close: ")" },
|
|
21
|
+
{ open: '"', close: '"', notIn: ["string"] }
|
|
22
|
+
],
|
|
23
|
+
surroundingPairs: [
|
|
24
|
+
{ open: "{", close: "}" },
|
|
25
|
+
{ open: "[", close: "]" },
|
|
26
|
+
{ open: "(", close: ")" },
|
|
27
|
+
{ open: '"', close: '"' },
|
|
28
|
+
{ open: "'", close: "'" }
|
|
29
|
+
],
|
|
30
|
+
folding: {
|
|
31
|
+
markers: {
|
|
32
|
+
start: new RegExp("^\\s*#pragma\\s+region\\b"),
|
|
33
|
+
end: new RegExp("^\\s*#pragma\\s+endregion\\b")
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}, t = {
|
|
37
|
+
tokenPostfix: ".rust",
|
|
38
|
+
defaultToken: "invalid",
|
|
39
|
+
keywords: [
|
|
40
|
+
"as",
|
|
41
|
+
"async",
|
|
42
|
+
"await",
|
|
43
|
+
"box",
|
|
44
|
+
"break",
|
|
45
|
+
"const",
|
|
46
|
+
"continue",
|
|
47
|
+
"crate",
|
|
48
|
+
"dyn",
|
|
49
|
+
"else",
|
|
50
|
+
"enum",
|
|
51
|
+
"extern",
|
|
52
|
+
"false",
|
|
53
|
+
"fn",
|
|
54
|
+
"for",
|
|
55
|
+
"if",
|
|
56
|
+
"impl",
|
|
57
|
+
"in",
|
|
58
|
+
"let",
|
|
59
|
+
"loop",
|
|
60
|
+
"match",
|
|
61
|
+
"mod",
|
|
62
|
+
"move",
|
|
63
|
+
"mut",
|
|
64
|
+
"pub",
|
|
65
|
+
"ref",
|
|
66
|
+
"return",
|
|
67
|
+
"self",
|
|
68
|
+
"static",
|
|
69
|
+
"struct",
|
|
70
|
+
"super",
|
|
71
|
+
"trait",
|
|
72
|
+
"true",
|
|
73
|
+
"try",
|
|
74
|
+
"type",
|
|
75
|
+
"unsafe",
|
|
76
|
+
"use",
|
|
77
|
+
"where",
|
|
78
|
+
"while",
|
|
79
|
+
"catch",
|
|
80
|
+
"default",
|
|
81
|
+
"union",
|
|
82
|
+
"static",
|
|
83
|
+
"abstract",
|
|
84
|
+
"alignof",
|
|
85
|
+
"become",
|
|
86
|
+
"do",
|
|
87
|
+
"final",
|
|
88
|
+
"macro",
|
|
89
|
+
"offsetof",
|
|
90
|
+
"override",
|
|
91
|
+
"priv",
|
|
92
|
+
"proc",
|
|
93
|
+
"pure",
|
|
94
|
+
"sizeof",
|
|
95
|
+
"typeof",
|
|
96
|
+
"unsized",
|
|
97
|
+
"virtual",
|
|
98
|
+
"yield"
|
|
99
|
+
],
|
|
100
|
+
typeKeywords: [
|
|
101
|
+
"Self",
|
|
102
|
+
"m32",
|
|
103
|
+
"m64",
|
|
104
|
+
"m128",
|
|
105
|
+
"f80",
|
|
106
|
+
"f16",
|
|
107
|
+
"f128",
|
|
108
|
+
"int",
|
|
109
|
+
"uint",
|
|
110
|
+
"float",
|
|
111
|
+
"char",
|
|
112
|
+
"bool",
|
|
113
|
+
"u8",
|
|
114
|
+
"u16",
|
|
115
|
+
"u32",
|
|
116
|
+
"u64",
|
|
117
|
+
"f32",
|
|
118
|
+
"f64",
|
|
119
|
+
"i8",
|
|
120
|
+
"i16",
|
|
121
|
+
"i32",
|
|
122
|
+
"i64",
|
|
123
|
+
"str",
|
|
124
|
+
"Option",
|
|
125
|
+
"Either",
|
|
126
|
+
"c_float",
|
|
127
|
+
"c_double",
|
|
128
|
+
"c_void",
|
|
129
|
+
"FILE",
|
|
130
|
+
"fpos_t",
|
|
131
|
+
"DIR",
|
|
132
|
+
"dirent",
|
|
133
|
+
"c_char",
|
|
134
|
+
"c_schar",
|
|
135
|
+
"c_uchar",
|
|
136
|
+
"c_short",
|
|
137
|
+
"c_ushort",
|
|
138
|
+
"c_int",
|
|
139
|
+
"c_uint",
|
|
140
|
+
"c_long",
|
|
141
|
+
"c_ulong",
|
|
142
|
+
"size_t",
|
|
143
|
+
"ptrdiff_t",
|
|
144
|
+
"clock_t",
|
|
145
|
+
"time_t",
|
|
146
|
+
"c_longlong",
|
|
147
|
+
"c_ulonglong",
|
|
148
|
+
"intptr_t",
|
|
149
|
+
"uintptr_t",
|
|
150
|
+
"off_t",
|
|
151
|
+
"dev_t",
|
|
152
|
+
"ino_t",
|
|
153
|
+
"pid_t",
|
|
154
|
+
"mode_t",
|
|
155
|
+
"ssize_t"
|
|
156
|
+
],
|
|
157
|
+
constants: ["true", "false", "Some", "None", "Left", "Right", "Ok", "Err"],
|
|
158
|
+
supportConstants: [
|
|
159
|
+
"EXIT_FAILURE",
|
|
160
|
+
"EXIT_SUCCESS",
|
|
161
|
+
"RAND_MAX",
|
|
162
|
+
"EOF",
|
|
163
|
+
"SEEK_SET",
|
|
164
|
+
"SEEK_CUR",
|
|
165
|
+
"SEEK_END",
|
|
166
|
+
"_IOFBF",
|
|
167
|
+
"_IONBF",
|
|
168
|
+
"_IOLBF",
|
|
169
|
+
"BUFSIZ",
|
|
170
|
+
"FOPEN_MAX",
|
|
171
|
+
"FILENAME_MAX",
|
|
172
|
+
"L_tmpnam",
|
|
173
|
+
"TMP_MAX",
|
|
174
|
+
"O_RDONLY",
|
|
175
|
+
"O_WRONLY",
|
|
176
|
+
"O_RDWR",
|
|
177
|
+
"O_APPEND",
|
|
178
|
+
"O_CREAT",
|
|
179
|
+
"O_EXCL",
|
|
180
|
+
"O_TRUNC",
|
|
181
|
+
"S_IFIFO",
|
|
182
|
+
"S_IFCHR",
|
|
183
|
+
"S_IFBLK",
|
|
184
|
+
"S_IFDIR",
|
|
185
|
+
"S_IFREG",
|
|
186
|
+
"S_IFMT",
|
|
187
|
+
"S_IEXEC",
|
|
188
|
+
"S_IWRITE",
|
|
189
|
+
"S_IREAD",
|
|
190
|
+
"S_IRWXU",
|
|
191
|
+
"S_IXUSR",
|
|
192
|
+
"S_IWUSR",
|
|
193
|
+
"S_IRUSR",
|
|
194
|
+
"F_OK",
|
|
195
|
+
"R_OK",
|
|
196
|
+
"W_OK",
|
|
197
|
+
"X_OK",
|
|
198
|
+
"STDIN_FILENO",
|
|
199
|
+
"STDOUT_FILENO",
|
|
200
|
+
"STDERR_FILENO"
|
|
201
|
+
],
|
|
202
|
+
supportMacros: [
|
|
203
|
+
"format!",
|
|
204
|
+
"print!",
|
|
205
|
+
"println!",
|
|
206
|
+
"panic!",
|
|
207
|
+
"format_args!",
|
|
208
|
+
"unreachable!",
|
|
209
|
+
"write!",
|
|
210
|
+
"writeln!"
|
|
211
|
+
],
|
|
212
|
+
operators: [
|
|
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
|
+
"|=",
|
|
250
|
+
"||",
|
|
251
|
+
"_",
|
|
252
|
+
"?",
|
|
253
|
+
"#"
|
|
254
|
+
],
|
|
255
|
+
escapes: /\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,
|
|
256
|
+
delimiters: /[,]/,
|
|
257
|
+
symbols: /[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,
|
|
258
|
+
intSuffixes: /[iu](8|16|32|64|128|size)/,
|
|
259
|
+
floatSuffixes: /f(32|64)/,
|
|
260
|
+
tokenizer: {
|
|
261
|
+
root: [
|
|
262
|
+
// Raw string literals
|
|
263
|
+
[/r(#*)"/, { token: "string.quote", bracket: "@open", next: "@stringraw.$1" }],
|
|
264
|
+
[
|
|
265
|
+
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
|
266
|
+
{
|
|
267
|
+
cases: {
|
|
268
|
+
"@typeKeywords": "keyword.type",
|
|
269
|
+
"@keywords": "keyword",
|
|
270
|
+
"@supportConstants": "keyword",
|
|
271
|
+
"@supportMacros": "keyword",
|
|
272
|
+
"@constants": "keyword",
|
|
273
|
+
"@default": "identifier"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
// Designator
|
|
278
|
+
[/\$/, "identifier"],
|
|
279
|
+
// Lifetime annotations
|
|
280
|
+
[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/, "identifier"],
|
|
281
|
+
// Byte literal
|
|
282
|
+
[/'(\S|@escapes)'/, "string.byteliteral"],
|
|
283
|
+
// Strings
|
|
284
|
+
[/"/, { token: "string.quote", bracket: "@open", next: "@string" }],
|
|
285
|
+
{ include: "@numbers" },
|
|
286
|
+
// Whitespace + comments
|
|
287
|
+
{ include: "@whitespace" },
|
|
288
|
+
[
|
|
289
|
+
/@delimiters/,
|
|
290
|
+
{
|
|
291
|
+
cases: {
|
|
292
|
+
"@keywords": "keyword",
|
|
293
|
+
"@default": "delimiter"
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
[/[{}()\[\]<>]/, "@brackets"],
|
|
298
|
+
[/@symbols/, { cases: { "@operators": "operator", "@default": "" } }]
|
|
299
|
+
],
|
|
300
|
+
whitespace: [
|
|
301
|
+
[/[ \t\r\n]+/, "white"],
|
|
302
|
+
[/\/\*/, "comment", "@comment"],
|
|
303
|
+
[/\/\/.*$/, "comment"]
|
|
304
|
+
],
|
|
305
|
+
comment: [
|
|
306
|
+
[/[^\/*]+/, "comment"],
|
|
307
|
+
[/\/\*/, "comment", "@push"],
|
|
308
|
+
["\\*/", "comment", "@pop"],
|
|
309
|
+
[/[\/*]/, "comment"]
|
|
310
|
+
],
|
|
311
|
+
string: [
|
|
312
|
+
[/[^\\"]+/, "string"],
|
|
313
|
+
[/@escapes/, "string.escape"],
|
|
314
|
+
[/\\./, "string.escape.invalid"],
|
|
315
|
+
[/"/, { token: "string.quote", bracket: "@close", next: "@pop" }]
|
|
316
|
+
],
|
|
317
|
+
stringraw: [
|
|
318
|
+
[/[^"#]+/, { token: "string" }],
|
|
319
|
+
[
|
|
320
|
+
/"(#*)/,
|
|
321
|
+
{
|
|
322
|
+
cases: {
|
|
323
|
+
"$1==$S2": { token: "string.quote", bracket: "@close", next: "@pop" },
|
|
324
|
+
"@default": { token: "string" }
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
],
|
|
328
|
+
[/["#]/, { token: "string" }]
|
|
329
|
+
],
|
|
330
|
+
numbers: [
|
|
331
|
+
//Octal
|
|
332
|
+
[/(0o[0-7_]+)(@intSuffixes)?/, { token: "number" }],
|
|
333
|
+
//Binary
|
|
334
|
+
[/(0b[0-1_]+)(@intSuffixes)?/, { token: "number" }],
|
|
335
|
+
//Exponent
|
|
336
|
+
[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/, { token: "number" }],
|
|
337
|
+
//Float
|
|
338
|
+
[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/, { token: "number" }],
|
|
339
|
+
//Hexadecimal
|
|
340
|
+
[/(0x[\da-fA-F]+)_?(@intSuffixes)?/, { token: "number" }],
|
|
341
|
+
//Integer
|
|
342
|
+
[/[\d][\d_]*(@intSuffixes?)?/, { token: "number" }]
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
export {
|
|
347
|
+
e as conf,
|
|
348
|
+
t as language
|
|
349
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/var e={comments:{lineComment:"'"},brackets:[["(",")"],["[","]"],["If","EndIf"],["While","EndWhile"],["For","EndFor"],["Sub","EndSub"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]}]},o={defaultToken:"",tokenPostfix:".sb",ignoreCase:!0,brackets:[{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"keyword.tag-if",open:"If",close:"EndIf"},{token:"keyword.tag-while",open:"While",close:"EndWhile"},{token:"keyword.tag-for",open:"For",close:"EndFor"},{token:"keyword.tag-sub",open:"Sub",close:"EndSub"}],keywords:["Else","ElseIf","EndFor","EndIf","EndSub","EndWhile","For","Goto","If","Step","Sub","Then","To","While"],tagwords:["If","Sub","While","For"],operators:[">","<","<>","<=",">=","And","Or","+","-","*","/","="],identifier:/[a-zA-Z_][\w]*/,symbols:/[=><:+\-*\/%\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/(@identifier)(?=[.])/,"type"],[/@identifier/,{cases:{"@keywords":{token:"keyword.$0"},"@operators":"operator","@default":"variable.name"}}],[/([.])(@identifier)/,{cases:{$2:["delimiter","type.member"],"@default":""}}],[/\d*\.\d+/,"number.float"],[/\d+/,"number"],[/[()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":"delimiter"}}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"]],whitespace:[[/[ \t\r\n]+/,""],[/(\').*$/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"C?/,"string","@pop"]]}};exports.conf=e;exports.language=o;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/*!-----------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
4
|
+
* Released under the MIT license
|
|
5
|
+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
|
+
*-----------------------------------------------------------------------------*/
|
|
7
|
+
var e = {
|
|
8
|
+
comments: {
|
|
9
|
+
lineComment: "'"
|
|
10
|
+
},
|
|
11
|
+
brackets: [
|
|
12
|
+
["(", ")"],
|
|
13
|
+
["[", "]"],
|
|
14
|
+
["If", "EndIf"],
|
|
15
|
+
["While", "EndWhile"],
|
|
16
|
+
["For", "EndFor"],
|
|
17
|
+
["Sub", "EndSub"]
|
|
18
|
+
],
|
|
19
|
+
autoClosingPairs: [
|
|
20
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] },
|
|
21
|
+
{ open: "(", close: ")", notIn: ["string", "comment"] },
|
|
22
|
+
{ open: "[", close: "]", notIn: ["string", "comment"] }
|
|
23
|
+
]
|
|
24
|
+
}, o = {
|
|
25
|
+
defaultToken: "",
|
|
26
|
+
tokenPostfix: ".sb",
|
|
27
|
+
ignoreCase: !0,
|
|
28
|
+
brackets: [
|
|
29
|
+
{ token: "delimiter.array", open: "[", close: "]" },
|
|
30
|
+
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
|
31
|
+
// Special bracket statement pairs
|
|
32
|
+
{ token: "keyword.tag-if", open: "If", close: "EndIf" },
|
|
33
|
+
{ token: "keyword.tag-while", open: "While", close: "EndWhile" },
|
|
34
|
+
{ token: "keyword.tag-for", open: "For", close: "EndFor" },
|
|
35
|
+
{ token: "keyword.tag-sub", open: "Sub", close: "EndSub" }
|
|
36
|
+
],
|
|
37
|
+
keywords: [
|
|
38
|
+
"Else",
|
|
39
|
+
"ElseIf",
|
|
40
|
+
"EndFor",
|
|
41
|
+
"EndIf",
|
|
42
|
+
"EndSub",
|
|
43
|
+
"EndWhile",
|
|
44
|
+
"For",
|
|
45
|
+
"Goto",
|
|
46
|
+
"If",
|
|
47
|
+
"Step",
|
|
48
|
+
"Sub",
|
|
49
|
+
"Then",
|
|
50
|
+
"To",
|
|
51
|
+
"While"
|
|
52
|
+
],
|
|
53
|
+
tagwords: ["If", "Sub", "While", "For"],
|
|
54
|
+
operators: [">", "<", "<>", "<=", ">=", "And", "Or", "+", "-", "*", "/", "="],
|
|
55
|
+
// we include these common regular expressions
|
|
56
|
+
identifier: /[a-zA-Z_][\w]*/,
|
|
57
|
+
symbols: /[=><:+\-*\/%\.,]+/,
|
|
58
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
59
|
+
// The main tokenizer for our languages
|
|
60
|
+
tokenizer: {
|
|
61
|
+
root: [
|
|
62
|
+
// whitespace
|
|
63
|
+
{ include: "@whitespace" },
|
|
64
|
+
// classes
|
|
65
|
+
[/(@identifier)(?=[.])/, "type"],
|
|
66
|
+
// identifiers, tagwords, and keywords
|
|
67
|
+
[
|
|
68
|
+
/@identifier/,
|
|
69
|
+
{
|
|
70
|
+
cases: {
|
|
71
|
+
"@keywords": { token: "keyword.$0" },
|
|
72
|
+
"@operators": "operator",
|
|
73
|
+
"@default": "variable.name"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
// methods, properties, and events
|
|
78
|
+
[
|
|
79
|
+
/([.])(@identifier)/,
|
|
80
|
+
{
|
|
81
|
+
cases: {
|
|
82
|
+
$2: ["delimiter", "type.member"],
|
|
83
|
+
"@default": ""
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
// numbers
|
|
88
|
+
[/\d*\.\d+/, "number.float"],
|
|
89
|
+
[/\d+/, "number"],
|
|
90
|
+
// delimiters and operators
|
|
91
|
+
[/[()\[\]]/, "@brackets"],
|
|
92
|
+
[
|
|
93
|
+
/@symbols/,
|
|
94
|
+
{
|
|
95
|
+
cases: {
|
|
96
|
+
"@operators": "operator",
|
|
97
|
+
"@default": "delimiter"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
// strings
|
|
102
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
103
|
+
// non-teminated string
|
|
104
|
+
[/"/, "string", "@string"]
|
|
105
|
+
],
|
|
106
|
+
whitespace: [
|
|
107
|
+
[/[ \t\r\n]+/, ""],
|
|
108
|
+
[/(\').*$/, "comment"]
|
|
109
|
+
],
|
|
110
|
+
string: [
|
|
111
|
+
[/[^\\"]+/, "string"],
|
|
112
|
+
[/@escapes/, "string.escape"],
|
|
113
|
+
[/\\./, "string.escape.invalid"],
|
|
114
|
+
[/"C?/, "string", "@pop"]
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
export {
|
|
119
|
+
e as conf,
|
|
120
|
+
o as language
|
|
121
|
+
};
|