online-compiler-widget 0.0.3 → 1.0.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/dist/abap-CrvW7_qN.js +1398 -0
- package/dist/apex-BAOI8p1v.js +327 -0
- package/dist/assets/css.worker-Cb0JI69t.js +93 -0
- package/dist/assets/html.worker-BNFZMwEc.js +470 -0
- package/dist/assets/json.worker-BCybXpia.js +58 -0
- package/dist/assets/ts.worker-DAVh1bw1.js +67731 -0
- package/dist/azcli-BlCk_UqW.js +68 -0
- package/dist/bat-DPoEelVx.js +100 -0
- package/dist/bicep-Cp1F394l.js +102 -0
- package/dist/cameligo-CWqtSlQs.js +174 -0
- package/dist/clojure-CKBp32Gf.js +761 -0
- package/dist/coffee-CDo6vc-J.js +232 -0
- package/dist/cpp-DokufPgf.js +389 -0
- package/dist/csharp-BQi3szM0.js +326 -0
- package/dist/csp-BSGtCCZ-.js +53 -0
- package/dist/css-DEPFDJfb.js +187 -0
- package/dist/cssMode-nHrB9Mnr.js +141 -0
- package/dist/cypher-DAb1vOxS.js +263 -0
- package/dist/dart-C8p4jewR.js +281 -0
- package/dist/dockerfile-DP0iLFPN.js +130 -0
- package/dist/ecl-BDQHA6fi.js +456 -0
- package/dist/elixir-D4II6kDM.js +569 -0
- package/dist/flow9-StcnL-VB.js +142 -0
- package/dist/freemarker2-BoiXdkJM.js +982 -0
- package/dist/fsharp-DdUVp3EN.js +217 -0
- package/dist/go-D1-I258M.js +218 -0
- package/dist/graphql-DWkL3f8U.js +151 -0
- package/dist/handlebars-C7PJzkmo.js +412 -0
- package/dist/hcl-D_0MNifv.js +183 -0
- package/dist/html-D_xe_tUa.js +301 -0
- package/dist/htmlMode-Dk_luXu_.js +152 -0
- package/dist/index-Ds0EJmOd.js +129200 -0
- package/dist/index.js +14 -0
- package/dist/ini-C4I2-MT7.js +71 -0
- package/dist/java-OBvaP_SS.js +232 -0
- package/dist/javascript-CUK67ITD.js +70 -0
- package/dist/jsonMode-BIAYTpVF.js +569 -0
- package/dist/julia-BmDH8Kkf.js +511 -0
- package/dist/kotlin-Dhu5AGOD.js +252 -0
- package/dist/less-CzmjXREq.js +162 -0
- package/dist/lexon-CV2c4pN9.js +157 -0
- package/dist/liquid-Cgsk8EmK.js +233 -0
- package/dist/lspLanguageFeatures-HqO1l9Me.js +1458 -0
- package/dist/lua-CFY5U8qF.js +162 -0
- package/dist/m3-BL_AnZVh.js +210 -0
- package/dist/markdown-CWKQPXCv.js +229 -0
- package/dist/mdx-QboWmT4M.js +158 -0
- package/dist/mips-ButYmJ5E.js +198 -0
- package/dist/msdax-C3cnXqDh.js +375 -0
- package/dist/mysql-YlSHaf6G.js +878 -0
- package/dist/objective-c-Dwnlproe.js +183 -0
- package/dist/pascal-UzGbSWEN.js +251 -0
- package/dist/pascaligo-CslTgu68.js +164 -0
- package/dist/perl-oj6r_mgw.js +626 -0
- package/dist/pgsql-DSBO0Mev.js +851 -0
- package/dist/php-YzCD--7j.js +500 -0
- package/dist/pla-CmylB8vQ.js +137 -0
- package/dist/postiats-CLFW5gNY.js +907 -0
- package/dist/powerquery-CmOWUvlh.js +890 -0
- package/dist/powershell-fHQcmBLK.js +239 -0
- package/dist/protobuf-p5BArb-9.js +420 -0
- package/dist/pug-gVdUDvqf.js +402 -0
- package/dist/python-kIZaMFF7.js +294 -0
- package/dist/qsharp-DnrWSUlt.js +301 -0
- package/dist/r-Cv309K2z.js +243 -0
- package/dist/razor-ms2cCMGp.js +543 -0
- package/dist/redis-DTcS4wMj.js +302 -0
- package/dist/redshift-hLxZVESM.js +809 -0
- package/dist/restructuredtext-C898lK4f.js +174 -0
- package/dist/ruby-CgKtnJIQ.js +511 -0
- package/dist/rust-bj8oxVnh.js +343 -0
- package/dist/sb-DWynz26l.js +115 -0
- package/dist/scala-BL5z1UEd.js +370 -0
- package/dist/scheme-DUJsH6VU.js +108 -0
- package/dist/scss-CxjmhvaL.js +262 -0
- package/dist/shell-D14Zs1dF.js +221 -0
- package/dist/solidity-WyRm-BGK.js +1367 -0
- package/dist/sophia-CKk-_Oa5.js +199 -0
- package/dist/sparql-DHtmINMZ.js +201 -0
- package/dist/sql-Dqaj5JHC.js +853 -0
- package/dist/st-Bj2IIaop.js +416 -0
- package/dist/style.css +1 -0
- package/dist/swift-DwxP72iM.js +312 -0
- package/dist/systemverilog-D7wJfuql.js +576 -0
- package/dist/tcl-0ApMt-eC.js +232 -0
- package/dist/tsMode-BiXWAJYS.js +946 -0
- package/dist/twig-DxwbdmvQ.js +392 -0
- package/dist/typescript-ByMmjZ38.js +336 -0
- package/dist/typespec-Fd-JwSuS.js +117 -0
- package/dist/vb-CxuyYE1I.js +372 -0
- package/dist/wgsl-DoEGc31J.js +439 -0
- package/dist/xml-iOXTZgNN.js +88 -0
- package/dist/yaml-RRlyy-QW.js +199 -0
- package/package.json +41 -36
- package/FileStorage/obj/FileStorage.csproj.EntityFrameworkCore.targets +0 -28
- package/README.md +0 -1
- package/eslint.config.js +0 -26
- package/index.html +0 -13
- package/index.tsx +0 -3
- package/openapitools.json +0 -7
- package/pnpm-workspace.yaml +0 -2
- package/public/vite.svg +0 -1
- package/src/App.css +0 -49
- package/src/App.tsx +0 -84
- package/src/api/.openapi-generator/FILES +0 -25
- package/src/api/.openapi-generator/VERSION +0 -1
- package/src/api/.openapi-generator-ignore +0 -23
- package/src/api/api.ts +0 -1312
- package/src/api/base.ts +0 -62
- package/src/api/common.ts +0 -113
- package/src/api/configuration.ts +0 -121
- package/src/api/docs/CompilationError.md +0 -26
- package/src/api/docs/CompileRequest.md +0 -22
- package/src/api/docs/CompileResult.md +0 -28
- package/src/api/docs/CompilerApi.md +0 -263
- package/src/api/docs/CreateFileDto.md +0 -22
- package/src/api/docs/CreateProjectRequest.md +0 -20
- package/src/api/docs/FileApi.md +0 -274
- package/src/api/docs/ProcessStatus.md +0 -28
- package/src/api/docs/ProjectApi.md +0 -362
- package/src/api/docs/ProjectInfo.md +0 -24
- package/src/api/docs/ProjectStats.md +0 -28
- package/src/api/docs/RenameFileDto.md +0 -20
- package/src/api/docs/RenameProjectRequest.md +0 -20
- package/src/api/docs/RunRequest.md +0 -24
- package/src/api/docs/RunResult.md +0 -30
- package/src/api/docs/RunningProjectInfo.md +0 -26
- package/src/api/docs/UpdateFileDto.md +0 -20
- package/src/api/git_push.sh +0 -57
- package/src/api/index.ts +0 -18
- package/src/assets/Badge.svg +0 -17
- package/src/assets/closeIcon.svg +0 -20
- package/src/assets/documentIcon.svg +0 -11
- package/src/assets/history.svg +0 -11
- package/src/assets/output.svg +0 -12
- package/src/assets/plus.svg +0 -20
- package/src/assets/react.svg +0 -1
- package/src/assets/save-icon.svg +0 -11
- package/src/assets/shield.svg +0 -10
- package/src/assets/start.svg +0 -11
- package/src/assets/stop.svg +0 -11
- package/src/components/CompilerWidget.module.scss +0 -169
- package/src/components/CompilerWidget.tsx +0 -279
- package/src/components/FileExplorer.module.scss +0 -372
- package/src/components/FileExplorer.tsx +0 -285
- package/src/components/MonacoEditorWrapper.module.scss +0 -29
- package/src/components/MonacoEditorWrapper.tsx +0 -74
- package/src/components/OutputPanel.module.scss +0 -123
- package/src/components/OutputPanel.tsx +0 -53
- package/src/components/RunContainer.module.scss +0 -150
- package/src/components/RunContainer.tsx +0 -34
- package/src/hooks/useCompiler.ts +0 -228
- package/src/hooks/useInitialNodes.ts +0 -0
- package/src/index.css +0 -78
- package/src/main.tsx +0 -8
- package/src/types/EditorDocument.ts +0 -8
- package/swagger.json +0 -1020
- package/tsconfig.app.json +0 -29
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -26
- package/vite.config.ts +0 -8
|
@@ -0,0 +1,456 @@
|
|
|
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", "comment"] },
|
|
16
|
+
{ open: '"', close: '"', notIn: ["string", "comment"] }
|
|
17
|
+
],
|
|
18
|
+
surroundingPairs: [
|
|
19
|
+
{ open: "{", close: "}" },
|
|
20
|
+
{ open: "[", close: "]" },
|
|
21
|
+
{ open: "(", close: ")" },
|
|
22
|
+
{ open: "<", close: ">" },
|
|
23
|
+
{ open: "'", close: "'" },
|
|
24
|
+
{ open: '"', close: '"' }
|
|
25
|
+
]
|
|
26
|
+
}, o = {
|
|
27
|
+
defaultToken: "",
|
|
28
|
+
tokenPostfix: ".ecl",
|
|
29
|
+
ignoreCase: !0,
|
|
30
|
+
brackets: [
|
|
31
|
+
{ open: "{", close: "}", token: "delimiter.curly" },
|
|
32
|
+
{ open: "[", close: "]", token: "delimiter.square" },
|
|
33
|
+
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
34
|
+
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
35
|
+
],
|
|
36
|
+
pounds: [
|
|
37
|
+
"append",
|
|
38
|
+
"break",
|
|
39
|
+
"declare",
|
|
40
|
+
"demangle",
|
|
41
|
+
"end",
|
|
42
|
+
"for",
|
|
43
|
+
"getdatatype",
|
|
44
|
+
"if",
|
|
45
|
+
"inmodule",
|
|
46
|
+
"loop",
|
|
47
|
+
"mangle",
|
|
48
|
+
"onwarning",
|
|
49
|
+
"option",
|
|
50
|
+
"set",
|
|
51
|
+
"stored",
|
|
52
|
+
"uniquename"
|
|
53
|
+
].join("|"),
|
|
54
|
+
keywords: [
|
|
55
|
+
"__compressed__",
|
|
56
|
+
"after",
|
|
57
|
+
"all",
|
|
58
|
+
"and",
|
|
59
|
+
"any",
|
|
60
|
+
"as",
|
|
61
|
+
"atmost",
|
|
62
|
+
"before",
|
|
63
|
+
"beginc",
|
|
64
|
+
"best",
|
|
65
|
+
"between",
|
|
66
|
+
"case",
|
|
67
|
+
"cluster",
|
|
68
|
+
"compressed",
|
|
69
|
+
"compression",
|
|
70
|
+
"const",
|
|
71
|
+
"counter",
|
|
72
|
+
"csv",
|
|
73
|
+
"default",
|
|
74
|
+
"descend",
|
|
75
|
+
"embed",
|
|
76
|
+
"encoding",
|
|
77
|
+
"encrypt",
|
|
78
|
+
"end",
|
|
79
|
+
"endc",
|
|
80
|
+
"endembed",
|
|
81
|
+
"endmacro",
|
|
82
|
+
"enum",
|
|
83
|
+
"escape",
|
|
84
|
+
"except",
|
|
85
|
+
"exclusive",
|
|
86
|
+
"expire",
|
|
87
|
+
"export",
|
|
88
|
+
"extend",
|
|
89
|
+
"fail",
|
|
90
|
+
"few",
|
|
91
|
+
"fileposition",
|
|
92
|
+
"first",
|
|
93
|
+
"flat",
|
|
94
|
+
"forward",
|
|
95
|
+
"from",
|
|
96
|
+
"full",
|
|
97
|
+
"function",
|
|
98
|
+
"functionmacro",
|
|
99
|
+
"group",
|
|
100
|
+
"grouped",
|
|
101
|
+
"heading",
|
|
102
|
+
"hole",
|
|
103
|
+
"ifblock",
|
|
104
|
+
"import",
|
|
105
|
+
"in",
|
|
106
|
+
"inner",
|
|
107
|
+
"interface",
|
|
108
|
+
"internal",
|
|
109
|
+
"joined",
|
|
110
|
+
"keep",
|
|
111
|
+
"keyed",
|
|
112
|
+
"last",
|
|
113
|
+
"left",
|
|
114
|
+
"limit",
|
|
115
|
+
"linkcounted",
|
|
116
|
+
"literal",
|
|
117
|
+
"little_endian",
|
|
118
|
+
"load",
|
|
119
|
+
"local",
|
|
120
|
+
"locale",
|
|
121
|
+
"lookup",
|
|
122
|
+
"lzw",
|
|
123
|
+
"macro",
|
|
124
|
+
"many",
|
|
125
|
+
"maxcount",
|
|
126
|
+
"maxlength",
|
|
127
|
+
"min skew",
|
|
128
|
+
"module",
|
|
129
|
+
"mofn",
|
|
130
|
+
"multiple",
|
|
131
|
+
"named",
|
|
132
|
+
"namespace",
|
|
133
|
+
"nocase",
|
|
134
|
+
"noroot",
|
|
135
|
+
"noscan",
|
|
136
|
+
"nosort",
|
|
137
|
+
"not",
|
|
138
|
+
"noxpath",
|
|
139
|
+
"of",
|
|
140
|
+
"onfail",
|
|
141
|
+
"only",
|
|
142
|
+
"opt",
|
|
143
|
+
"or",
|
|
144
|
+
"outer",
|
|
145
|
+
"overwrite",
|
|
146
|
+
"packed",
|
|
147
|
+
"partition",
|
|
148
|
+
"penalty",
|
|
149
|
+
"physicallength",
|
|
150
|
+
"pipe",
|
|
151
|
+
"prefetch",
|
|
152
|
+
"quote",
|
|
153
|
+
"record",
|
|
154
|
+
"repeat",
|
|
155
|
+
"retry",
|
|
156
|
+
"return",
|
|
157
|
+
"right",
|
|
158
|
+
"right1",
|
|
159
|
+
"right2",
|
|
160
|
+
"rows",
|
|
161
|
+
"rowset",
|
|
162
|
+
"scan",
|
|
163
|
+
"scope",
|
|
164
|
+
"self",
|
|
165
|
+
"separator",
|
|
166
|
+
"service",
|
|
167
|
+
"shared",
|
|
168
|
+
"skew",
|
|
169
|
+
"skip",
|
|
170
|
+
"smart",
|
|
171
|
+
"soapaction",
|
|
172
|
+
"sql",
|
|
173
|
+
"stable",
|
|
174
|
+
"store",
|
|
175
|
+
"terminator",
|
|
176
|
+
"thor",
|
|
177
|
+
"threshold",
|
|
178
|
+
"timelimit",
|
|
179
|
+
"timeout",
|
|
180
|
+
"token",
|
|
181
|
+
"transform",
|
|
182
|
+
"trim",
|
|
183
|
+
"type",
|
|
184
|
+
"unicodeorder",
|
|
185
|
+
"unordered",
|
|
186
|
+
"unsorted",
|
|
187
|
+
"unstable",
|
|
188
|
+
"update",
|
|
189
|
+
"use",
|
|
190
|
+
"validate",
|
|
191
|
+
"virtual",
|
|
192
|
+
"whole",
|
|
193
|
+
"width",
|
|
194
|
+
"wild",
|
|
195
|
+
"within",
|
|
196
|
+
"wnotrim",
|
|
197
|
+
"xml",
|
|
198
|
+
"xpath"
|
|
199
|
+
],
|
|
200
|
+
functions: [
|
|
201
|
+
"abs",
|
|
202
|
+
"acos",
|
|
203
|
+
"aggregate",
|
|
204
|
+
"allnodes",
|
|
205
|
+
"apply",
|
|
206
|
+
"ascii",
|
|
207
|
+
"asin",
|
|
208
|
+
"assert",
|
|
209
|
+
"asstring",
|
|
210
|
+
"atan",
|
|
211
|
+
"atan2",
|
|
212
|
+
"ave",
|
|
213
|
+
"build",
|
|
214
|
+
"buildindex",
|
|
215
|
+
"case",
|
|
216
|
+
"catch",
|
|
217
|
+
"choose",
|
|
218
|
+
"choosen",
|
|
219
|
+
"choosesets",
|
|
220
|
+
"clustersize",
|
|
221
|
+
"combine",
|
|
222
|
+
"correlation",
|
|
223
|
+
"cos",
|
|
224
|
+
"cosh",
|
|
225
|
+
"count",
|
|
226
|
+
"covariance",
|
|
227
|
+
"cron",
|
|
228
|
+
"dataset",
|
|
229
|
+
"dedup",
|
|
230
|
+
"define",
|
|
231
|
+
"denormalize",
|
|
232
|
+
"dictionary",
|
|
233
|
+
"distribute",
|
|
234
|
+
"distributed",
|
|
235
|
+
"distribution",
|
|
236
|
+
"ebcdic",
|
|
237
|
+
"enth",
|
|
238
|
+
"error",
|
|
239
|
+
"evaluate",
|
|
240
|
+
"event",
|
|
241
|
+
"eventextra",
|
|
242
|
+
"eventname",
|
|
243
|
+
"exists",
|
|
244
|
+
"exp",
|
|
245
|
+
"fail",
|
|
246
|
+
"failcode",
|
|
247
|
+
"failmessage",
|
|
248
|
+
"fetch",
|
|
249
|
+
"fromunicode",
|
|
250
|
+
"fromxml",
|
|
251
|
+
"getenv",
|
|
252
|
+
"getisvalid",
|
|
253
|
+
"global",
|
|
254
|
+
"graph",
|
|
255
|
+
"group",
|
|
256
|
+
"hash",
|
|
257
|
+
"hash32",
|
|
258
|
+
"hash64",
|
|
259
|
+
"hashcrc",
|
|
260
|
+
"hashmd5",
|
|
261
|
+
"having",
|
|
262
|
+
"httpcall",
|
|
263
|
+
"httpheader",
|
|
264
|
+
"if",
|
|
265
|
+
"iff",
|
|
266
|
+
"index",
|
|
267
|
+
"intformat",
|
|
268
|
+
"isvalid",
|
|
269
|
+
"iterate",
|
|
270
|
+
"join",
|
|
271
|
+
"keydiff",
|
|
272
|
+
"keypatch",
|
|
273
|
+
"keyunicode",
|
|
274
|
+
"length",
|
|
275
|
+
"library",
|
|
276
|
+
"limit",
|
|
277
|
+
"ln",
|
|
278
|
+
"loadxml",
|
|
279
|
+
"local",
|
|
280
|
+
"log",
|
|
281
|
+
"loop",
|
|
282
|
+
"map",
|
|
283
|
+
"matched",
|
|
284
|
+
"matchlength",
|
|
285
|
+
"matchposition",
|
|
286
|
+
"matchtext",
|
|
287
|
+
"matchunicode",
|
|
288
|
+
"max",
|
|
289
|
+
"merge",
|
|
290
|
+
"mergejoin",
|
|
291
|
+
"min",
|
|
292
|
+
"nofold",
|
|
293
|
+
"nolocal",
|
|
294
|
+
"nonempty",
|
|
295
|
+
"normalize",
|
|
296
|
+
"nothor",
|
|
297
|
+
"notify",
|
|
298
|
+
"output",
|
|
299
|
+
"parallel",
|
|
300
|
+
"parse",
|
|
301
|
+
"pipe",
|
|
302
|
+
"power",
|
|
303
|
+
"preload",
|
|
304
|
+
"process",
|
|
305
|
+
"project",
|
|
306
|
+
"pull",
|
|
307
|
+
"random",
|
|
308
|
+
"range",
|
|
309
|
+
"rank",
|
|
310
|
+
"ranked",
|
|
311
|
+
"realformat",
|
|
312
|
+
"recordof",
|
|
313
|
+
"regexfind",
|
|
314
|
+
"regexreplace",
|
|
315
|
+
"regroup",
|
|
316
|
+
"rejected",
|
|
317
|
+
"rollup",
|
|
318
|
+
"round",
|
|
319
|
+
"roundup",
|
|
320
|
+
"row",
|
|
321
|
+
"rowdiff",
|
|
322
|
+
"sample",
|
|
323
|
+
"sequential",
|
|
324
|
+
"set",
|
|
325
|
+
"sin",
|
|
326
|
+
"sinh",
|
|
327
|
+
"sizeof",
|
|
328
|
+
"soapcall",
|
|
329
|
+
"sort",
|
|
330
|
+
"sorted",
|
|
331
|
+
"sqrt",
|
|
332
|
+
"stepped",
|
|
333
|
+
"stored",
|
|
334
|
+
"sum",
|
|
335
|
+
"table",
|
|
336
|
+
"tan",
|
|
337
|
+
"tanh",
|
|
338
|
+
"thisnode",
|
|
339
|
+
"topn",
|
|
340
|
+
"tounicode",
|
|
341
|
+
"toxml",
|
|
342
|
+
"transfer",
|
|
343
|
+
"transform",
|
|
344
|
+
"trim",
|
|
345
|
+
"truncate",
|
|
346
|
+
"typeof",
|
|
347
|
+
"ungroup",
|
|
348
|
+
"unicodeorder",
|
|
349
|
+
"variance",
|
|
350
|
+
"wait",
|
|
351
|
+
"which",
|
|
352
|
+
"workunit",
|
|
353
|
+
"xmldecode",
|
|
354
|
+
"xmlencode",
|
|
355
|
+
"xmltext",
|
|
356
|
+
"xmlunicode"
|
|
357
|
+
],
|
|
358
|
+
typesint: ["integer", "unsigned"].join("|"),
|
|
359
|
+
typesnum: ["data", "qstring", "string", "unicode", "utf8", "varstring", "varunicode"],
|
|
360
|
+
typesone: [
|
|
361
|
+
"ascii",
|
|
362
|
+
"big_endian",
|
|
363
|
+
"boolean",
|
|
364
|
+
"data",
|
|
365
|
+
"decimal",
|
|
366
|
+
"ebcdic",
|
|
367
|
+
"grouped",
|
|
368
|
+
"integer",
|
|
369
|
+
"linkcounted",
|
|
370
|
+
"pattern",
|
|
371
|
+
"qstring",
|
|
372
|
+
"real",
|
|
373
|
+
"record",
|
|
374
|
+
"rule",
|
|
375
|
+
"set of",
|
|
376
|
+
"streamed",
|
|
377
|
+
"string",
|
|
378
|
+
"token",
|
|
379
|
+
"udecimal",
|
|
380
|
+
"unicode",
|
|
381
|
+
"unsigned",
|
|
382
|
+
"utf8",
|
|
383
|
+
"varstring",
|
|
384
|
+
"varunicode"
|
|
385
|
+
].join("|"),
|
|
386
|
+
operators: ["+", "-", "/", ":=", "<", "<>", "=", ">", "\\", "and", "in", "not", "or"],
|
|
387
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
388
|
+
// escape sequences
|
|
389
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
390
|
+
// The main tokenizer for our languages
|
|
391
|
+
tokenizer: {
|
|
392
|
+
root: [
|
|
393
|
+
[/@typesint[4|8]/, "type"],
|
|
394
|
+
[/#(@pounds)/, "type"],
|
|
395
|
+
[/@typesone/, "type"],
|
|
396
|
+
[
|
|
397
|
+
/[a-zA-Z_$][\w-$]*/,
|
|
398
|
+
{
|
|
399
|
+
cases: {
|
|
400
|
+
"@functions": "keyword.function",
|
|
401
|
+
"@keywords": "keyword",
|
|
402
|
+
"@operators": "operator"
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
// whitespace
|
|
407
|
+
{ include: "@whitespace" },
|
|
408
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
409
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
410
|
+
[
|
|
411
|
+
/@symbols/,
|
|
412
|
+
{
|
|
413
|
+
cases: {
|
|
414
|
+
"@operators": "delimiter",
|
|
415
|
+
"@default": ""
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
// numbers
|
|
420
|
+
[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/, "number.float"],
|
|
421
|
+
[/0[xX][0-9a-fA-F_]+/, "number.hex"],
|
|
422
|
+
[/0[bB][01]+/, "number.hex"],
|
|
423
|
+
// binary: use same theme style as hex
|
|
424
|
+
[/[0-9_]+/, "number"],
|
|
425
|
+
// delimiter: after number because of .\d floats
|
|
426
|
+
[/[;,.]/, "delimiter"],
|
|
427
|
+
// strings
|
|
428
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
429
|
+
[/"/, "string", "@string"],
|
|
430
|
+
// characters
|
|
431
|
+
[/'[^\\']'/, "string"],
|
|
432
|
+
[/(')(@escapes)(')/, ["string", "string.escape", "string"]],
|
|
433
|
+
[/'/, "string.invalid"]
|
|
434
|
+
],
|
|
435
|
+
whitespace: [
|
|
436
|
+
[/[ \t\v\f\r\n]+/, ""],
|
|
437
|
+
[/\/\*/, "comment", "@comment"],
|
|
438
|
+
[/\/\/.*$/, "comment"]
|
|
439
|
+
],
|
|
440
|
+
comment: [
|
|
441
|
+
[/[^\/*]+/, "comment"],
|
|
442
|
+
[/\*\//, "comment", "@pop"],
|
|
443
|
+
[/[\/*]/, "comment"]
|
|
444
|
+
],
|
|
445
|
+
string: [
|
|
446
|
+
[/[^\\']+/, "string"],
|
|
447
|
+
[/@escapes/, "string.escape"],
|
|
448
|
+
[/\\./, "string.escape.invalid"],
|
|
449
|
+
[/'/, "string", "@pop"]
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
export {
|
|
454
|
+
e as conf,
|
|
455
|
+
o as language
|
|
456
|
+
};
|