sun-form-v3 1.0.14 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/sun-form-v3.es.js +12 -2
- package/dist/sun-form-v3.umd.js +1 -1909
- package/package.json +4 -13
- package/dist/abap-DfvySaIJ.js +0 -1404
- package/dist/apex-B__0irD3.js +0 -332
- package/dist/assets/css.worker-OK053IOu.js +0 -84
- package/dist/assets/editor.worker-D9iUZyMP.js +0 -11
- package/dist/assets/html.worker-CL40hqKM.js +0 -458
- package/dist/assets/json.worker-6f9bhSHY.js +0 -42
- package/dist/assets/ts.worker-B6g3wjaE.js +0 -37021
- package/dist/azcli-CDMGhRmx.js +0 -74
- package/dist/bat-0Mk8aqzx.js +0 -106
- package/dist/bicep-BBi_I06Z.js +0 -108
- package/dist/cameligo-D0G_Zm6X.js +0 -180
- package/dist/clojure-o2ZKLeMp.js +0 -767
- package/dist/coffee-DOQff5VC.js +0 -238
- package/dist/cpp-CQGJnWhD.js +0 -395
- package/dist/csharp-C1jLsHl8.js +0 -332
- package/dist/csp-C_ttMQaW.js +0 -59
- package/dist/css-BC202kVV.js +0 -193
- package/dist/cssMode-9a3Nzcz0.js +0 -1541
- package/dist/cypher-DwtEH7Fi.js +0 -269
- package/dist/dart-D9XknsP2.js +0 -287
- package/dist/dockerfile-DgsNjqqa.js +0 -136
- package/dist/ecl-BAMCHBl6.js +0 -462
- package/dist/elixir-CegIttP8.js +0 -575
- package/dist/flow9-9608t7UV.js +0 -148
- package/dist/freemarker2-DK6lwGaq.js +0 -995
- package/dist/fsharp-CCtt9-1_.js +0 -223
- package/dist/go-CGUIPbct.js +0 -224
- package/dist/graphql-BNRIFFIn.js +0 -157
- package/dist/handlebars-DPoEML1d.js +0 -425
- package/dist/hcl-C__KLIXe.js +0 -189
- package/dist/html-Dl-PSmcb.js +0 -314
- package/dist/htmlMode-8x5pkuIT.js +0 -1551
- package/dist/index-DmlyKQU2.js +0 -150
- package/dist/index-DysfiBvw.js +0 -124460
- package/dist/ini-CeKYn_zA.js +0 -77
- package/dist/java-Dm24deQl.js +0 -238
- package/dist/javascript-BKANJFjZ.js +0 -76
- package/dist/jsonMode-C-hmihMO.js +0 -1957
- package/dist/julia-BImNW7VE.js +0 -517
- package/dist/kotlin-BfE79GEb.js +0 -259
- package/dist/less-DglNOcaC.js +0 -168
- package/dist/lexon-BA0dRz9Q.js +0 -163
- package/dist/liquid-BYDAXJQI.js +0 -246
- package/dist/lua-DMkWzJcm.js +0 -168
- package/dist/m3-sA-5shO8.js +0 -216
- package/dist/markdown-OYRB1igA.js +0 -235
- package/dist/mdx-IUvXx2kW.js +0 -171
- package/dist/mips-rRzkJ_7G.js +0 -204
- package/dist/msdax-DoVJdUhd.js +0 -381
- package/dist/mysql-Ty44IHXo.js +0 -884
- package/dist/objective-c-VUfyhYrA.js +0 -189
- package/dist/pascal-DkASiYyw.js +0 -257
- package/dist/pascaligo-p-ELPlVO.js +0 -170
- package/dist/perl-Cjl1FxLZ.js +0 -632
- package/dist/pgsql-DjVenF7s.js +0 -857
- package/dist/php-CwvGzZOO.js +0 -506
- package/dist/pla-Br1iaBIV.js +0 -143
- package/dist/postiats-BaeP8zZY.js +0 -913
- package/dist/powerquery-CLCshuo8.js +0 -896
- package/dist/powershell-CZV50w5N.js +0 -245
- package/dist/protobuf-MV3XTewJ.js +0 -426
- package/dist/pug-DkDg4c4l.js +0 -408
- package/dist/python-B7DepHC9.js +0 -282
- package/dist/qsharp-BAtiKA97.js +0 -291
- package/dist/r-8ocrd-h-.js +0 -249
- package/dist/razor-Cg3JvJXw.js +0 -556
- package/dist/redis-9sZiddxc.js +0 -308
- package/dist/redshift-DQfTOGC0.js +0 -815
- package/dist/restructuredtext-DXU-vkgr.js +0 -180
- package/dist/ruby-DotfqwMf.js +0 -517
- package/dist/rust-BIauJ5KN.js +0 -349
- package/dist/sb-CmWMvDEV.js +0 -121
- package/dist/scala-C81brEbk.js +0 -376
- package/dist/scheme-D0pcFz2x.js +0 -114
- package/dist/scss-BOdN2fGG.js +0 -268
- package/dist/shell-6E09eAkU.js +0 -227
- package/dist/solidity-CWStzA1K.js +0 -1373
- package/dist/sophia-76Sb6CWe.js +0 -205
- package/dist/sparql-BmZTkOWT.js +0 -207
- package/dist/sql-Cs9TBAW5.js +0 -859
- package/dist/st-B-rqE1Bu.js +0 -422
- package/dist/style.css +0 -1
- package/dist/swift-Btsj6YxQ.js +0 -318
- package/dist/systemverilog-B3RHBRa2.js +0 -582
- package/dist/tcl-Dpj776pn.js +0 -238
- package/dist/tsMode-BcYcbLxv.js +0 -886
- package/dist/twig-Bb9JmBsE.js +0 -398
- package/dist/typescript-BiqrZWm4.js +0 -349
- package/dist/typespec-CDWeg3SU.js +0 -123
- package/dist/vb-DEXnYwEI.js +0 -378
- package/dist/wgsl-D602c1lx.js +0 -445
- package/dist/xml-DjCCNX5H.js +0 -101
- package/dist/yaml-D93XL0vv.js +0 -212
- package/src/assets/styles/element/index.scss +0 -15
- package/src/assets/styles/index.css +0 -3
package/dist/perl-Cjl1FxLZ.js
DELETED
@@ -1,632 +0,0 @@
|
|
1
|
-
/*!-----------------------------------------------------------------------------
|
2
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
-
* Version: 0.49.0(383fdf3fc0e1e1a024068b8d0fd4f3dcbae74d04)
|
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
|
-
["(", ")"]
|
15
|
-
],
|
16
|
-
autoClosingPairs: [
|
17
|
-
{ open: "{", close: "}" },
|
18
|
-
{ open: "[", close: "]" },
|
19
|
-
{ open: "(", close: ")" },
|
20
|
-
{ open: '"', close: '"' },
|
21
|
-
{ open: "'", close: "'" },
|
22
|
-
{ open: "`", close: "`" }
|
23
|
-
],
|
24
|
-
surroundingPairs: [
|
25
|
-
{ open: "{", close: "}" },
|
26
|
-
{ open: "[", close: "]" },
|
27
|
-
{ open: "(", close: ")" },
|
28
|
-
{ open: '"', close: '"' },
|
29
|
-
{ open: "'", close: "'" },
|
30
|
-
{ open: "`", close: "`" }
|
31
|
-
]
|
32
|
-
}, t = {
|
33
|
-
defaultToken: "",
|
34
|
-
tokenPostfix: ".perl",
|
35
|
-
brackets: [
|
36
|
-
{ token: "delimiter.bracket", open: "{", close: "}" },
|
37
|
-
{ token: "delimiter.parenthesis", open: "(", close: ")" },
|
38
|
-
{ token: "delimiter.square", open: "[", close: "]" }
|
39
|
-
],
|
40
|
-
// https://learn.perl.org/docs/keywords.html
|
41
|
-
// Perl syntax
|
42
|
-
keywords: [
|
43
|
-
"__DATA__",
|
44
|
-
"else",
|
45
|
-
"lock",
|
46
|
-
"__END__",
|
47
|
-
"elsif",
|
48
|
-
"lt",
|
49
|
-
"__FILE__",
|
50
|
-
"eq",
|
51
|
-
"__LINE__",
|
52
|
-
"exp",
|
53
|
-
"ne",
|
54
|
-
"sub",
|
55
|
-
"__PACKAGE__",
|
56
|
-
"for",
|
57
|
-
"no",
|
58
|
-
"and",
|
59
|
-
"foreach",
|
60
|
-
"or",
|
61
|
-
"unless",
|
62
|
-
"cmp",
|
63
|
-
"ge",
|
64
|
-
"package",
|
65
|
-
"until",
|
66
|
-
"continue",
|
67
|
-
"gt",
|
68
|
-
"while",
|
69
|
-
"CORE",
|
70
|
-
"if",
|
71
|
-
"xor",
|
72
|
-
"do",
|
73
|
-
"le",
|
74
|
-
"__DIE__",
|
75
|
-
"__WARN__"
|
76
|
-
],
|
77
|
-
// Perl functions
|
78
|
-
builtinFunctions: [
|
79
|
-
"-A",
|
80
|
-
"END",
|
81
|
-
"length",
|
82
|
-
"setpgrp",
|
83
|
-
"-B",
|
84
|
-
"endgrent",
|
85
|
-
"link",
|
86
|
-
"setpriority",
|
87
|
-
"-b",
|
88
|
-
"endhostent",
|
89
|
-
"listen",
|
90
|
-
"setprotoent",
|
91
|
-
"-C",
|
92
|
-
"endnetent",
|
93
|
-
"local",
|
94
|
-
"setpwent",
|
95
|
-
"-c",
|
96
|
-
"endprotoent",
|
97
|
-
"localtime",
|
98
|
-
"setservent",
|
99
|
-
"-d",
|
100
|
-
"endpwent",
|
101
|
-
"log",
|
102
|
-
"setsockopt",
|
103
|
-
"-e",
|
104
|
-
"endservent",
|
105
|
-
"lstat",
|
106
|
-
"shift",
|
107
|
-
"-f",
|
108
|
-
"eof",
|
109
|
-
"map",
|
110
|
-
"shmctl",
|
111
|
-
"-g",
|
112
|
-
"eval",
|
113
|
-
"mkdir",
|
114
|
-
"shmget",
|
115
|
-
"-k",
|
116
|
-
"exec",
|
117
|
-
"msgctl",
|
118
|
-
"shmread",
|
119
|
-
"-l",
|
120
|
-
"exists",
|
121
|
-
"msgget",
|
122
|
-
"shmwrite",
|
123
|
-
"-M",
|
124
|
-
"exit",
|
125
|
-
"msgrcv",
|
126
|
-
"shutdown",
|
127
|
-
"-O",
|
128
|
-
"fcntl",
|
129
|
-
"msgsnd",
|
130
|
-
"sin",
|
131
|
-
"-o",
|
132
|
-
"fileno",
|
133
|
-
"my",
|
134
|
-
"sleep",
|
135
|
-
"-p",
|
136
|
-
"flock",
|
137
|
-
"next",
|
138
|
-
"socket",
|
139
|
-
"-r",
|
140
|
-
"fork",
|
141
|
-
"not",
|
142
|
-
"socketpair",
|
143
|
-
"-R",
|
144
|
-
"format",
|
145
|
-
"oct",
|
146
|
-
"sort",
|
147
|
-
"-S",
|
148
|
-
"formline",
|
149
|
-
"open",
|
150
|
-
"splice",
|
151
|
-
"-s",
|
152
|
-
"getc",
|
153
|
-
"opendir",
|
154
|
-
"split",
|
155
|
-
"-T",
|
156
|
-
"getgrent",
|
157
|
-
"ord",
|
158
|
-
"sprintf",
|
159
|
-
"-t",
|
160
|
-
"getgrgid",
|
161
|
-
"our",
|
162
|
-
"sqrt",
|
163
|
-
"-u",
|
164
|
-
"getgrnam",
|
165
|
-
"pack",
|
166
|
-
"srand",
|
167
|
-
"-w",
|
168
|
-
"gethostbyaddr",
|
169
|
-
"pipe",
|
170
|
-
"stat",
|
171
|
-
"-W",
|
172
|
-
"gethostbyname",
|
173
|
-
"pop",
|
174
|
-
"state",
|
175
|
-
"-X",
|
176
|
-
"gethostent",
|
177
|
-
"pos",
|
178
|
-
"study",
|
179
|
-
"-x",
|
180
|
-
"getlogin",
|
181
|
-
"print",
|
182
|
-
"substr",
|
183
|
-
"-z",
|
184
|
-
"getnetbyaddr",
|
185
|
-
"printf",
|
186
|
-
"symlink",
|
187
|
-
"abs",
|
188
|
-
"getnetbyname",
|
189
|
-
"prototype",
|
190
|
-
"syscall",
|
191
|
-
"accept",
|
192
|
-
"getnetent",
|
193
|
-
"push",
|
194
|
-
"sysopen",
|
195
|
-
"alarm",
|
196
|
-
"getpeername",
|
197
|
-
"quotemeta",
|
198
|
-
"sysread",
|
199
|
-
"atan2",
|
200
|
-
"getpgrp",
|
201
|
-
"rand",
|
202
|
-
"sysseek",
|
203
|
-
"AUTOLOAD",
|
204
|
-
"getppid",
|
205
|
-
"read",
|
206
|
-
"system",
|
207
|
-
"BEGIN",
|
208
|
-
"getpriority",
|
209
|
-
"readdir",
|
210
|
-
"syswrite",
|
211
|
-
"bind",
|
212
|
-
"getprotobyname",
|
213
|
-
"readline",
|
214
|
-
"tell",
|
215
|
-
"binmode",
|
216
|
-
"getprotobynumber",
|
217
|
-
"readlink",
|
218
|
-
"telldir",
|
219
|
-
"bless",
|
220
|
-
"getprotoent",
|
221
|
-
"readpipe",
|
222
|
-
"tie",
|
223
|
-
"break",
|
224
|
-
"getpwent",
|
225
|
-
"recv",
|
226
|
-
"tied",
|
227
|
-
"caller",
|
228
|
-
"getpwnam",
|
229
|
-
"redo",
|
230
|
-
"time",
|
231
|
-
"chdir",
|
232
|
-
"getpwuid",
|
233
|
-
"ref",
|
234
|
-
"times",
|
235
|
-
"CHECK",
|
236
|
-
"getservbyname",
|
237
|
-
"rename",
|
238
|
-
"truncate",
|
239
|
-
"chmod",
|
240
|
-
"getservbyport",
|
241
|
-
"require",
|
242
|
-
"uc",
|
243
|
-
"chomp",
|
244
|
-
"getservent",
|
245
|
-
"reset",
|
246
|
-
"ucfirst",
|
247
|
-
"chop",
|
248
|
-
"getsockname",
|
249
|
-
"return",
|
250
|
-
"umask",
|
251
|
-
"chown",
|
252
|
-
"getsockopt",
|
253
|
-
"reverse",
|
254
|
-
"undef",
|
255
|
-
"chr",
|
256
|
-
"glob",
|
257
|
-
"rewinddir",
|
258
|
-
"UNITCHECK",
|
259
|
-
"chroot",
|
260
|
-
"gmtime",
|
261
|
-
"rindex",
|
262
|
-
"unlink",
|
263
|
-
"close",
|
264
|
-
"goto",
|
265
|
-
"rmdir",
|
266
|
-
"unpack",
|
267
|
-
"closedir",
|
268
|
-
"grep",
|
269
|
-
"say",
|
270
|
-
"unshift",
|
271
|
-
"connect",
|
272
|
-
"hex",
|
273
|
-
"scalar",
|
274
|
-
"untie",
|
275
|
-
"cos",
|
276
|
-
"index",
|
277
|
-
"seek",
|
278
|
-
"use",
|
279
|
-
"crypt",
|
280
|
-
"INIT",
|
281
|
-
"seekdir",
|
282
|
-
"utime",
|
283
|
-
"dbmclose",
|
284
|
-
"int",
|
285
|
-
"select",
|
286
|
-
"values",
|
287
|
-
"dbmopen",
|
288
|
-
"ioctl",
|
289
|
-
"semctl",
|
290
|
-
"vec",
|
291
|
-
"defined",
|
292
|
-
"join",
|
293
|
-
"semget",
|
294
|
-
"wait",
|
295
|
-
"delete",
|
296
|
-
"keys",
|
297
|
-
"semop",
|
298
|
-
"waitpid",
|
299
|
-
"DESTROY",
|
300
|
-
"kill",
|
301
|
-
"send",
|
302
|
-
"wantarray",
|
303
|
-
"die",
|
304
|
-
"last",
|
305
|
-
"setgrent",
|
306
|
-
"warn",
|
307
|
-
"dump",
|
308
|
-
"lc",
|
309
|
-
"sethostent",
|
310
|
-
"write",
|
311
|
-
"each",
|
312
|
-
"lcfirst",
|
313
|
-
"setnetent"
|
314
|
-
],
|
315
|
-
// File handlers
|
316
|
-
builtinFileHandlers: ["ARGV", "STDERR", "STDOUT", "ARGVOUT", "STDIN", "ENV"],
|
317
|
-
// Perl variables
|
318
|
-
builtinVariables: [
|
319
|
-
"$!",
|
320
|
-
"$^RE_TRIE_MAXBUF",
|
321
|
-
"$LAST_REGEXP_CODE_RESULT",
|
322
|
-
'$"',
|
323
|
-
"$^S",
|
324
|
-
"$LIST_SEPARATOR",
|
325
|
-
"$#",
|
326
|
-
"$^T",
|
327
|
-
"$MATCH",
|
328
|
-
"$$",
|
329
|
-
"$^TAINT",
|
330
|
-
"$MULTILINE_MATCHING",
|
331
|
-
"$%",
|
332
|
-
"$^UNICODE",
|
333
|
-
"$NR",
|
334
|
-
"$&",
|
335
|
-
"$^UTF8LOCALE",
|
336
|
-
"$OFMT",
|
337
|
-
"$'",
|
338
|
-
"$^V",
|
339
|
-
"$OFS",
|
340
|
-
"$(",
|
341
|
-
"$^W",
|
342
|
-
"$ORS",
|
343
|
-
"$)",
|
344
|
-
"$^WARNING_BITS",
|
345
|
-
"$OS_ERROR",
|
346
|
-
"$*",
|
347
|
-
"$^WIDE_SYSTEM_CALLS",
|
348
|
-
"$OSNAME",
|
349
|
-
"$+",
|
350
|
-
"$^X",
|
351
|
-
"$OUTPUT_AUTO_FLUSH",
|
352
|
-
"$,",
|
353
|
-
"$_",
|
354
|
-
"$OUTPUT_FIELD_SEPARATOR",
|
355
|
-
"$-",
|
356
|
-
"$`",
|
357
|
-
"$OUTPUT_RECORD_SEPARATOR",
|
358
|
-
"$.",
|
359
|
-
"$a",
|
360
|
-
"$PERL_VERSION",
|
361
|
-
"$/",
|
362
|
-
"$ACCUMULATOR",
|
363
|
-
"$PERLDB",
|
364
|
-
"$0",
|
365
|
-
"$ARG",
|
366
|
-
"$PID",
|
367
|
-
"$:",
|
368
|
-
"$ARGV",
|
369
|
-
"$POSTMATCH",
|
370
|
-
"$;",
|
371
|
-
"$b",
|
372
|
-
"$PREMATCH",
|
373
|
-
"$<",
|
374
|
-
"$BASETIME",
|
375
|
-
"$PROCESS_ID",
|
376
|
-
"$=",
|
377
|
-
"$CHILD_ERROR",
|
378
|
-
"$PROGRAM_NAME",
|
379
|
-
"$>",
|
380
|
-
"$COMPILING",
|
381
|
-
"$REAL_GROUP_ID",
|
382
|
-
"$?",
|
383
|
-
"$DEBUGGING",
|
384
|
-
"$REAL_USER_ID",
|
385
|
-
"$@",
|
386
|
-
"$EFFECTIVE_GROUP_ID",
|
387
|
-
"$RS",
|
388
|
-
"$[",
|
389
|
-
"$EFFECTIVE_USER_ID",
|
390
|
-
"$SUBSCRIPT_SEPARATOR",
|
391
|
-
"$\\",
|
392
|
-
"$EGID",
|
393
|
-
"$SUBSEP",
|
394
|
-
"$]",
|
395
|
-
"$ERRNO",
|
396
|
-
"$SYSTEM_FD_MAX",
|
397
|
-
"$^",
|
398
|
-
"$EUID",
|
399
|
-
"$UID",
|
400
|
-
"$^A",
|
401
|
-
"$EVAL_ERROR",
|
402
|
-
"$WARNING",
|
403
|
-
"$^C",
|
404
|
-
"$EXCEPTIONS_BEING_CAUGHT",
|
405
|
-
"$|",
|
406
|
-
"$^CHILD_ERROR_NATIVE",
|
407
|
-
"$EXECUTABLE_NAME",
|
408
|
-
"$~",
|
409
|
-
"$^D",
|
410
|
-
"$EXTENDED_OS_ERROR",
|
411
|
-
"%!",
|
412
|
-
"$^E",
|
413
|
-
"$FORMAT_FORMFEED",
|
414
|
-
"%^H",
|
415
|
-
"$^ENCODING",
|
416
|
-
"$FORMAT_LINE_BREAK_CHARACTERS",
|
417
|
-
"%ENV",
|
418
|
-
"$^F",
|
419
|
-
"$FORMAT_LINES_LEFT",
|
420
|
-
"%INC",
|
421
|
-
"$^H",
|
422
|
-
"$FORMAT_LINES_PER_PAGE",
|
423
|
-
"%OVERLOAD",
|
424
|
-
"$^I",
|
425
|
-
"$FORMAT_NAME",
|
426
|
-
"%SIG",
|
427
|
-
"$^L",
|
428
|
-
"$FORMAT_PAGE_NUMBER",
|
429
|
-
"@+",
|
430
|
-
"$^M",
|
431
|
-
"$FORMAT_TOP_NAME",
|
432
|
-
"@-",
|
433
|
-
"$^N",
|
434
|
-
"$GID",
|
435
|
-
"@_",
|
436
|
-
"$^O",
|
437
|
-
"$INPLACE_EDIT",
|
438
|
-
"@ARGV",
|
439
|
-
"$^OPEN",
|
440
|
-
"$INPUT_LINE_NUMBER",
|
441
|
-
"@INC",
|
442
|
-
"$^P",
|
443
|
-
"$INPUT_RECORD_SEPARATOR",
|
444
|
-
"@LAST_MATCH_START",
|
445
|
-
"$^R",
|
446
|
-
"$LAST_MATCH_END",
|
447
|
-
"$^RE_DEBUG_FLAGS",
|
448
|
-
"$LAST_PAREN_MATCH"
|
449
|
-
],
|
450
|
-
// operators
|
451
|
-
symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/,
|
452
|
-
quoteLikeOps: ["qr", "m", "s", "q", "qq", "qx", "qw", "tr", "y"],
|
453
|
-
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
454
|
-
// The main tokenizer for our languages
|
455
|
-
tokenizer: {
|
456
|
-
root: [
|
457
|
-
{ include: "@whitespace" },
|
458
|
-
[
|
459
|
-
/[a-zA-Z\-_][\w\-_]*/,
|
460
|
-
{
|
461
|
-
cases: {
|
462
|
-
"@keywords": "keyword",
|
463
|
-
"@builtinFunctions": "type.identifier",
|
464
|
-
"@builtinFileHandlers": "variable.predefined",
|
465
|
-
"@quoteLikeOps": {
|
466
|
-
token: "@rematch",
|
467
|
-
next: "quotedConstructs"
|
468
|
-
},
|
469
|
-
"@default": ""
|
470
|
-
}
|
471
|
-
}
|
472
|
-
],
|
473
|
-
// Perl variables
|
474
|
-
[
|
475
|
-
/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,
|
476
|
-
{
|
477
|
-
cases: {
|
478
|
-
"@builtinVariables": "variable.predefined",
|
479
|
-
"@default": "variable"
|
480
|
-
}
|
481
|
-
}
|
482
|
-
],
|
483
|
-
{ include: "@strings" },
|
484
|
-
{ include: "@dblStrings" },
|
485
|
-
// Perl Doc
|
486
|
-
{ include: "@perldoc" },
|
487
|
-
// Here Doc
|
488
|
-
{ include: "@heredoc" },
|
489
|
-
[/[{}\[\]()]/, "@brackets"],
|
490
|
-
// RegExp
|
491
|
-
[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/, "regexp"],
|
492
|
-
[/@symbols/, "operators"],
|
493
|
-
{ include: "@numbers" },
|
494
|
-
[/[,;]/, "delimiter"]
|
495
|
-
],
|
496
|
-
whitespace: [
|
497
|
-
[/\s+/, "white"],
|
498
|
-
[/(^#!.*$)/, "metatag"],
|
499
|
-
[/(^#.*$)/, "comment"]
|
500
|
-
],
|
501
|
-
numbers: [
|
502
|
-
[/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
|
503
|
-
[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
|
504
|
-
[/\d+/, "number"]
|
505
|
-
],
|
506
|
-
// Single quote string
|
507
|
-
strings: [[/'/, "string", "@stringBody"]],
|
508
|
-
stringBody: [
|
509
|
-
[/'/, "string", "@popall"],
|
510
|
-
[/\\'/, "string.escape"],
|
511
|
-
[/./, "string"]
|
512
|
-
],
|
513
|
-
// Double quote string
|
514
|
-
dblStrings: [[/"/, "string", "@dblStringBody"]],
|
515
|
-
dblStringBody: [
|
516
|
-
[/"/, "string", "@popall"],
|
517
|
-
[/@escapes/, "string.escape"],
|
518
|
-
[/\\./, "string.escape.invalid"],
|
519
|
-
{ include: "@variables" },
|
520
|
-
[/./, "string"]
|
521
|
-
],
|
522
|
-
// Quoted constructs
|
523
|
-
// Percent strings in Ruby are similar to quote-like operators in Perl.
|
524
|
-
// This is adapted from pstrings in ../ruby/ruby.ts.
|
525
|
-
quotedConstructs: [
|
526
|
-
[/(q|qw|tr|y)\s*\(/, { token: "string.delim", switchTo: "@qstring.(.)" }],
|
527
|
-
[/(q|qw|tr|y)\s*\[/, { token: "string.delim", switchTo: "@qstring.[.]" }],
|
528
|
-
[/(q|qw|tr|y)\s*\{/, { token: "string.delim", switchTo: "@qstring.{.}" }],
|
529
|
-
[/(q|qw|tr|y)\s*</, { token: "string.delim", switchTo: "@qstring.<.>" }],
|
530
|
-
[/(q|qw|tr|y)#/, { token: "string.delim", switchTo: "@qstring.#.#" }],
|
531
|
-
[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/, { token: "string.delim", switchTo: "@qstring.$2.$2" }],
|
532
|
-
[/(q|qw|tr|y)\s+(\w)/, { token: "string.delim", switchTo: "@qstring.$2.$2" }],
|
533
|
-
[/(qr|m|s)\s*\(/, { token: "regexp.delim", switchTo: "@qregexp.(.)" }],
|
534
|
-
[/(qr|m|s)\s*\[/, { token: "regexp.delim", switchTo: "@qregexp.[.]" }],
|
535
|
-
[/(qr|m|s)\s*\{/, { token: "regexp.delim", switchTo: "@qregexp.{.}" }],
|
536
|
-
[/(qr|m|s)\s*</, { token: "regexp.delim", switchTo: "@qregexp.<.>" }],
|
537
|
-
[/(qr|m|s)#/, { token: "regexp.delim", switchTo: "@qregexp.#.#" }],
|
538
|
-
[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/, { token: "regexp.delim", switchTo: "@qregexp.$2.$2" }],
|
539
|
-
[/(qr|m|s)\s+(\w)/, { token: "regexp.delim", switchTo: "@qregexp.$2.$2" }],
|
540
|
-
[/(qq|qx)\s*\(/, { token: "string.delim", switchTo: "@qqstring.(.)" }],
|
541
|
-
[/(qq|qx)\s*\[/, { token: "string.delim", switchTo: "@qqstring.[.]" }],
|
542
|
-
[/(qq|qx)\s*\{/, { token: "string.delim", switchTo: "@qqstring.{.}" }],
|
543
|
-
[/(qq|qx)\s*</, { token: "string.delim", switchTo: "@qqstring.<.>" }],
|
544
|
-
[/(qq|qx)#/, { token: "string.delim", switchTo: "@qqstring.#.#" }],
|
545
|
-
[/(qq|qx)\s*([^A-Za-z0-9#\s])/, { token: "string.delim", switchTo: "@qqstring.$2.$2" }],
|
546
|
-
[/(qq|qx)\s+(\w)/, { token: "string.delim", switchTo: "@qqstring.$2.$2" }]
|
547
|
-
],
|
548
|
-
// Non-expanded quoted string
|
549
|
-
// qstring<open>.<close>
|
550
|
-
// open = open delimiter
|
551
|
-
// close = close delimiter
|
552
|
-
qstring: [
|
553
|
-
[/\\./, "string.escape"],
|
554
|
-
[
|
555
|
-
/./,
|
556
|
-
{
|
557
|
-
cases: {
|
558
|
-
"$#==$S3": { token: "string.delim", next: "@pop" },
|
559
|
-
"$#==$S2": { token: "string.delim", next: "@push" },
|
560
|
-
// nested delimiters
|
561
|
-
"@default": "string"
|
562
|
-
}
|
563
|
-
}
|
564
|
-
]
|
565
|
-
],
|
566
|
-
// Quoted regexp
|
567
|
-
// qregexp.<open>.<close>
|
568
|
-
// open = open delimiter
|
569
|
-
// close = close delimiter
|
570
|
-
qregexp: [
|
571
|
-
{ include: "@variables" },
|
572
|
-
[/\\./, "regexp.escape"],
|
573
|
-
[
|
574
|
-
/./,
|
575
|
-
{
|
576
|
-
cases: {
|
577
|
-
"$#==$S3": {
|
578
|
-
token: "regexp.delim",
|
579
|
-
next: "@regexpModifiers"
|
580
|
-
},
|
581
|
-
"$#==$S2": { token: "regexp.delim", next: "@push" },
|
582
|
-
// nested delimiters
|
583
|
-
"@default": "regexp"
|
584
|
-
}
|
585
|
-
}
|
586
|
-
]
|
587
|
-
],
|
588
|
-
regexpModifiers: [[/[msixpodualngcer]+/, { token: "regexp.modifier", next: "@popall" }]],
|
589
|
-
// Expanded quoted string
|
590
|
-
// qqstring.<open>.<close>
|
591
|
-
// open = open delimiter
|
592
|
-
// close = close delimiter
|
593
|
-
qqstring: [{ include: "@variables" }, { include: "@qstring" }],
|
594
|
-
heredoc: [
|
595
|
-
[/<<\s*['"`]?([\w\-]+)['"`]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
|
596
|
-
],
|
597
|
-
heredocBody: [
|
598
|
-
[
|
599
|
-
/^([\w\-]+)$/,
|
600
|
-
{
|
601
|
-
cases: {
|
602
|
-
"$1==$S2": [
|
603
|
-
{
|
604
|
-
token: "string.heredoc.delimiter",
|
605
|
-
next: "@popall"
|
606
|
-
}
|
607
|
-
],
|
608
|
-
"@default": "string.heredoc"
|
609
|
-
}
|
610
|
-
}
|
611
|
-
],
|
612
|
-
[/./, "string.heredoc"]
|
613
|
-
],
|
614
|
-
perldoc: [[/^=\w/, "comment.doc", "@perldocBody"]],
|
615
|
-
perldocBody: [
|
616
|
-
[/^=cut\b/, "type.identifier", "@popall"],
|
617
|
-
[/./, "comment.doc"]
|
618
|
-
],
|
619
|
-
variables: [
|
620
|
-
[/\$\w+/, "variable"],
|
621
|
-
// scalar
|
622
|
-
[/@\w+/, "variable"],
|
623
|
-
// array
|
624
|
-
[/%\w+/, "variable"]
|
625
|
-
// key/value
|
626
|
-
]
|
627
|
-
}
|
628
|
-
};
|
629
|
-
export {
|
630
|
-
e as conf,
|
631
|
-
t as language
|
632
|
-
};
|