form-imagining 0.0.6 → 0.0.8

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.
Files changed (148) hide show
  1. package/README.md +13 -16
  2. package/dist/abap-5361cc9f.js +1314 -0
  3. package/dist/apex-f9413e6f.js +315 -0
  4. package/dist/assets/css.worker-c3850ceb.js +88 -0
  5. package/dist/assets/editor.worker-94ffd778.js +12 -0
  6. package/dist/assets/html.worker-88b237e1.js +460 -0
  7. package/dist/assets/json.worker-8dd963f3.js +43 -0
  8. package/dist/assets/ts.worker-184cdfdf.js +37022 -0
  9. package/dist/azcli-36f2cb5e.js +74 -0
  10. package/dist/bat-6b05202d.js +95 -0
  11. package/dist/bicep-788415e3.js +108 -0
  12. package/dist/cameligo-4e85ec93.js +168 -0
  13. package/dist/clojure-40fa5799.js +754 -0
  14. package/dist/coffee-f557f5e0.js +228 -0
  15. package/dist/cpp-ebbf7759.js +390 -0
  16. package/dist/csharp-1616f566.js +320 -0
  17. package/dist/csp-5f0bc3c4.js +57 -0
  18. package/dist/css-2b1aec9b.js +186 -0
  19. package/dist/cssMode-0bcb1554.js +1447 -0
  20. package/dist/cypher-b12b4ba8.js +262 -0
  21. package/dist/dart-e0d70030.js +270 -0
  22. package/dist/dockerfile-f9d4b2b0.js +132 -0
  23. package/dist/ecl-5b91fdec.js +454 -0
  24. package/dist/elixir-deffd5a6.js +489 -0
  25. package/dist/flow9-84cd00d7.js +141 -0
  26. package/dist/form-imagining.js +3 -16340
  27. package/dist/form-imagining.umd.cjs +1978 -102
  28. package/dist/freemarker2-4d8e8e55.js +644 -0
  29. package/dist/fsharp-d296151f.js +210 -0
  30. package/dist/go-7e72ff3b.js +208 -0
  31. package/dist/graphql-a93568a1.js +141 -0
  32. package/dist/handlebars-c43672f7.js +392 -0
  33. package/dist/hcl-b3994d8f.js +177 -0
  34. package/dist/html-c6099a2e.js +282 -0
  35. package/dist/htmlMode-31c10440.js +1457 -0
  36. package/dist/index-a3197e12.js +122055 -0
  37. package/dist/ini-df84509a.js +68 -0
  38. package/dist/java-fba3d046.js +221 -0
  39. package/dist/javascript-ac2b4ae2.js +77 -0
  40. package/dist/jsonMode-36333022.js +1868 -0
  41. package/dist/julia-cefd45f6.js +496 -0
  42. package/dist/kotlin-b87b6942.js +245 -0
  43. package/dist/less-8a7f37bc.js +168 -0
  44. package/dist/lexon-cb95cd13.js +151 -0
  45. package/dist/liquid-b5021331.js +239 -0
  46. package/dist/lua-6d5b3ea4.js +157 -0
  47. package/dist/m3-d0daf5d0.js +210 -0
  48. package/dist/markdown-48bb0c6f.js +202 -0
  49. package/dist/mdx-bbae5f86.js +172 -0
  50. package/dist/mips-20dcf886.js +194 -0
  51. package/dist/msdax-e9759e23.js +377 -0
  52. package/dist/mysql-95f335b2.js +876 -0
  53. package/dist/objective-c-ad0cfb47.js +188 -0
  54. package/dist/pascal-eda19dc3.js +245 -0
  55. package/dist/pascaligo-b7e0c89b.js +158 -0
  56. package/dist/perl-bbe5d32a.js +599 -0
  57. package/dist/pgsql-7ebaee1c.js +847 -0
  58. package/dist/php-2526756d.js +471 -0
  59. package/dist/pla-9ebd6f68.js +131 -0
  60. package/dist/postiats-9ac05cf6.js +544 -0
  61. package/dist/powerquery-1cae399d.js +890 -0
  62. package/dist/powershell-093b5b87.js +233 -0
  63. package/dist/protobuf-37993cbc.js +422 -0
  64. package/dist/pug-c2a5db5f.js +393 -0
  65. package/dist/python-fc373d9f.js +260 -0
  66. package/dist/qsharp-1450aac5.js +282 -0
  67. package/dist/r-a0642b90.js +245 -0
  68. package/dist/razor-1e9d135a.js +513 -0
  69. package/dist/redis-405cb63d.js +298 -0
  70. package/dist/redshift-830f82de.js +806 -0
  71. package/dist/restructuredtext-d81f5ef4.js +162 -0
  72. package/dist/ruby-d607b87e.js +444 -0
  73. package/dist/rust-86e74dbb.js +337 -0
  74. package/dist/sb-b7e5010d.js +110 -0
  75. package/dist/scala-a4d4a3c6.js +353 -0
  76. package/dist/scheme-81927e94.js +114 -0
  77. package/dist/scss-3f112fcd.js +244 -0
  78. package/dist/shell-d795bcaa.js +224 -0
  79. package/dist/solidity-5b556d3e.js +1351 -0
  80. package/dist/sophia-1da55998.js +190 -0
  81. package/dist/sparql-ac34318e.js +193 -0
  82. package/dist/sql-eef6393b.js +818 -0
  83. package/dist/st-758b1972.js +415 -0
  84. package/dist/style.css +1 -1
  85. package/dist/swift-63cb1847.js +315 -0
  86. package/dist/systemverilog-2538c608.js +556 -0
  87. package/dist/tcl-53e6282a.js +232 -0
  88. package/dist/tsMode-ea3b05db.js +815 -0
  89. package/dist/twig-80c3dc23.js +323 -0
  90. package/dist/typescript-b2ef5e0f.js +329 -0
  91. package/dist/vb-32089525.js +364 -0
  92. package/dist/wgsl-e681d5a0.js +420 -0
  93. package/dist/xml-579a5775.js +96 -0
  94. package/dist/yaml-c31c56b7.js +185 -0
  95. package/package.json +11 -18
  96. package/dist/components/generate/GenerateForm.vue.d.ts +0 -2
  97. package/dist/components/index.d.ts +0 -9
  98. package/dist/components/model/baseModel.d.ts +0 -8
  99. package/dist/components/model/dataSourceModel.d.ts +0 -19
  100. package/dist/components/model/gridModel.d.ts +0 -55
  101. package/dist/components/model/inputModel.d.ts +0 -14
  102. package/dist/components/model/reportModel.d.ts +0 -43
  103. package/dist/components/model/scriptModel.d.ts +0 -6
  104. package/dist/components/model/sqlModel.d.ts +0 -7
  105. package/dist/components/model/tableModel.d.ts +0 -16
  106. package/dist/components/model/textModel.d.ts +0 -14
  107. package/dist/components/monaco/monacoEditorType.d.ts +0 -56
  108. package/dist/components/registerGlobComp.d.ts +0 -3
  109. package/dist/components/wonderform/HelloWord.vue.d.ts +0 -2
  110. package/dist/components/wonderform/config/index.vue.d.ts +0 -14
  111. package/dist/components/wonderform/config/modules/Col.vue.d.ts +0 -14
  112. package/dist/components/wonderform/config/modules/DataSource.vue.d.ts +0 -2
  113. package/dist/components/wonderform/config/modules/Form.vue.d.ts +0 -2
  114. package/dist/components/wonderform/config/modules/Grid.vue.d.ts +0 -14
  115. package/dist/components/wonderform/config/modules/Properties.vue.d.ts +0 -14
  116. package/dist/components/wonderform/config/modules/Table.vue.d.ts +0 -14
  117. package/dist/components/wonderform/config/modules/TypeScript.vue.d.ts +0 -2
  118. package/dist/components/wonderform/design/index.vue.d.ts +0 -6
  119. package/dist/components/wonderform/design/modules/FormGrid.vue.d.ts +0 -38
  120. package/dist/components/wonderform/design/modules/FormInput.vue.d.ts +0 -26
  121. package/dist/components/wonderform/design/modules/FormReport.vue.d.ts +0 -32
  122. package/dist/components/wonderform/design/modules/FormTable.vue.d.ts +0 -32
  123. package/dist/components/wonderform/dsource/index.vue.d.ts +0 -14
  124. package/dist/components/wonderform/dsource/modules/SqlModule.vue.d.ts +0 -40
  125. package/dist/components/wonderform/header/Header.vue.d.ts +0 -2
  126. package/dist/components/wonderform/header/modules/Code.vue.d.ts +0 -23
  127. package/dist/components/wonderform/header/modules/events.d.ts +0 -1
  128. package/dist/components/wonderform/index.vue.d.ts +0 -2
  129. package/dist/components/wonderform/tool/index.vue.d.ts +0 -2
  130. package/dist/enums/httpEnum.d.ts +0 -37
  131. package/dist/main.d.ts +0 -1
  132. package/dist/mock/dict.d.ts +0 -8
  133. package/dist/router/guard/index.d.ts +0 -2
  134. package/dist/router/guard/permissionGuard.d.ts +0 -2
  135. package/dist/router/index.d.ts +0 -3
  136. package/dist/router/routes/basicRoutes.d.ts +0 -8
  137. package/dist/stores/index.d.ts +0 -4
  138. package/dist/stores/modules/data.d.ts +0 -7177
  139. package/dist/stores/modules/form.d.ts +0 -2060
  140. package/dist/utils/form/commonUtils.d.ts +0 -8
  141. package/dist/utils/form/config.d.ts +0 -107
  142. package/dist/utils/form/generatecode.d.ts +0 -23
  143. package/dist/utils/form/validateUtil.d.ts +0 -13
  144. package/dist/utils/form/wonder1.0.1.d.ts +0 -29
  145. package/dist/utils/http/axios/axios.d.ts +0 -48
  146. package/dist/utils/http/axios/axiosModel.d.ts +0 -8
  147. package/dist/utils/http/axios/index.d.ts +0 -2
  148. package/dist/utils/utils.d.ts +0 -1
@@ -0,0 +1,599 @@
1
+ /*!-----------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
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
+ keywords: [
41
+ "__DATA__",
42
+ "else",
43
+ "lock",
44
+ "__END__",
45
+ "elsif",
46
+ "lt",
47
+ "__FILE__",
48
+ "eq",
49
+ "__LINE__",
50
+ "exp",
51
+ "ne",
52
+ "sub",
53
+ "__PACKAGE__",
54
+ "for",
55
+ "no",
56
+ "and",
57
+ "foreach",
58
+ "or",
59
+ "unless",
60
+ "cmp",
61
+ "ge",
62
+ "package",
63
+ "until",
64
+ "continue",
65
+ "gt",
66
+ "while",
67
+ "CORE",
68
+ "if",
69
+ "xor",
70
+ "do",
71
+ "le",
72
+ "__DIE__",
73
+ "__WARN__"
74
+ ],
75
+ builtinFunctions: [
76
+ "-A",
77
+ "END",
78
+ "length",
79
+ "setpgrp",
80
+ "-B",
81
+ "endgrent",
82
+ "link",
83
+ "setpriority",
84
+ "-b",
85
+ "endhostent",
86
+ "listen",
87
+ "setprotoent",
88
+ "-C",
89
+ "endnetent",
90
+ "local",
91
+ "setpwent",
92
+ "-c",
93
+ "endprotoent",
94
+ "localtime",
95
+ "setservent",
96
+ "-d",
97
+ "endpwent",
98
+ "log",
99
+ "setsockopt",
100
+ "-e",
101
+ "endservent",
102
+ "lstat",
103
+ "shift",
104
+ "-f",
105
+ "eof",
106
+ "map",
107
+ "shmctl",
108
+ "-g",
109
+ "eval",
110
+ "mkdir",
111
+ "shmget",
112
+ "-k",
113
+ "exec",
114
+ "msgctl",
115
+ "shmread",
116
+ "-l",
117
+ "exists",
118
+ "msgget",
119
+ "shmwrite",
120
+ "-M",
121
+ "exit",
122
+ "msgrcv",
123
+ "shutdown",
124
+ "-O",
125
+ "fcntl",
126
+ "msgsnd",
127
+ "sin",
128
+ "-o",
129
+ "fileno",
130
+ "my",
131
+ "sleep",
132
+ "-p",
133
+ "flock",
134
+ "next",
135
+ "socket",
136
+ "-r",
137
+ "fork",
138
+ "not",
139
+ "socketpair",
140
+ "-R",
141
+ "format",
142
+ "oct",
143
+ "sort",
144
+ "-S",
145
+ "formline",
146
+ "open",
147
+ "splice",
148
+ "-s",
149
+ "getc",
150
+ "opendir",
151
+ "split",
152
+ "-T",
153
+ "getgrent",
154
+ "ord",
155
+ "sprintf",
156
+ "-t",
157
+ "getgrgid",
158
+ "our",
159
+ "sqrt",
160
+ "-u",
161
+ "getgrnam",
162
+ "pack",
163
+ "srand",
164
+ "-w",
165
+ "gethostbyaddr",
166
+ "pipe",
167
+ "stat",
168
+ "-W",
169
+ "gethostbyname",
170
+ "pop",
171
+ "state",
172
+ "-X",
173
+ "gethostent",
174
+ "pos",
175
+ "study",
176
+ "-x",
177
+ "getlogin",
178
+ "print",
179
+ "substr",
180
+ "-z",
181
+ "getnetbyaddr",
182
+ "printf",
183
+ "symlink",
184
+ "abs",
185
+ "getnetbyname",
186
+ "prototype",
187
+ "syscall",
188
+ "accept",
189
+ "getnetent",
190
+ "push",
191
+ "sysopen",
192
+ "alarm",
193
+ "getpeername",
194
+ "quotemeta",
195
+ "sysread",
196
+ "atan2",
197
+ "getpgrp",
198
+ "rand",
199
+ "sysseek",
200
+ "AUTOLOAD",
201
+ "getppid",
202
+ "read",
203
+ "system",
204
+ "BEGIN",
205
+ "getpriority",
206
+ "readdir",
207
+ "syswrite",
208
+ "bind",
209
+ "getprotobyname",
210
+ "readline",
211
+ "tell",
212
+ "binmode",
213
+ "getprotobynumber",
214
+ "readlink",
215
+ "telldir",
216
+ "bless",
217
+ "getprotoent",
218
+ "readpipe",
219
+ "tie",
220
+ "break",
221
+ "getpwent",
222
+ "recv",
223
+ "tied",
224
+ "caller",
225
+ "getpwnam",
226
+ "redo",
227
+ "time",
228
+ "chdir",
229
+ "getpwuid",
230
+ "ref",
231
+ "times",
232
+ "CHECK",
233
+ "getservbyname",
234
+ "rename",
235
+ "truncate",
236
+ "chmod",
237
+ "getservbyport",
238
+ "require",
239
+ "uc",
240
+ "chomp",
241
+ "getservent",
242
+ "reset",
243
+ "ucfirst",
244
+ "chop",
245
+ "getsockname",
246
+ "return",
247
+ "umask",
248
+ "chown",
249
+ "getsockopt",
250
+ "reverse",
251
+ "undef",
252
+ "chr",
253
+ "glob",
254
+ "rewinddir",
255
+ "UNITCHECK",
256
+ "chroot",
257
+ "gmtime",
258
+ "rindex",
259
+ "unlink",
260
+ "close",
261
+ "goto",
262
+ "rmdir",
263
+ "unpack",
264
+ "closedir",
265
+ "grep",
266
+ "say",
267
+ "unshift",
268
+ "connect",
269
+ "hex",
270
+ "scalar",
271
+ "untie",
272
+ "cos",
273
+ "index",
274
+ "seek",
275
+ "use",
276
+ "crypt",
277
+ "INIT",
278
+ "seekdir",
279
+ "utime",
280
+ "dbmclose",
281
+ "int",
282
+ "select",
283
+ "values",
284
+ "dbmopen",
285
+ "ioctl",
286
+ "semctl",
287
+ "vec",
288
+ "defined",
289
+ "join",
290
+ "semget",
291
+ "wait",
292
+ "delete",
293
+ "keys",
294
+ "semop",
295
+ "waitpid",
296
+ "DESTROY",
297
+ "kill",
298
+ "send",
299
+ "wantarray",
300
+ "die",
301
+ "last",
302
+ "setgrent",
303
+ "warn",
304
+ "dump",
305
+ "lc",
306
+ "sethostent",
307
+ "write",
308
+ "each",
309
+ "lcfirst",
310
+ "setnetent"
311
+ ],
312
+ builtinFileHandlers: ["ARGV", "STDERR", "STDOUT", "ARGVOUT", "STDIN", "ENV"],
313
+ builtinVariables: [
314
+ "$!",
315
+ "$^RE_TRIE_MAXBUF",
316
+ "$LAST_REGEXP_CODE_RESULT",
317
+ '$"',
318
+ "$^S",
319
+ "$LIST_SEPARATOR",
320
+ "$#",
321
+ "$^T",
322
+ "$MATCH",
323
+ "$$",
324
+ "$^TAINT",
325
+ "$MULTILINE_MATCHING",
326
+ "$%",
327
+ "$^UNICODE",
328
+ "$NR",
329
+ "$&",
330
+ "$^UTF8LOCALE",
331
+ "$OFMT",
332
+ "$'",
333
+ "$^V",
334
+ "$OFS",
335
+ "$(",
336
+ "$^W",
337
+ "$ORS",
338
+ "$)",
339
+ "$^WARNING_BITS",
340
+ "$OS_ERROR",
341
+ "$*",
342
+ "$^WIDE_SYSTEM_CALLS",
343
+ "$OSNAME",
344
+ "$+",
345
+ "$^X",
346
+ "$OUTPUT_AUTO_FLUSH",
347
+ "$,",
348
+ "$_",
349
+ "$OUTPUT_FIELD_SEPARATOR",
350
+ "$-",
351
+ "$`",
352
+ "$OUTPUT_RECORD_SEPARATOR",
353
+ "$.",
354
+ "$a",
355
+ "$PERL_VERSION",
356
+ "$/",
357
+ "$ACCUMULATOR",
358
+ "$PERLDB",
359
+ "$0",
360
+ "$ARG",
361
+ "$PID",
362
+ "$:",
363
+ "$ARGV",
364
+ "$POSTMATCH",
365
+ "$;",
366
+ "$b",
367
+ "$PREMATCH",
368
+ "$<",
369
+ "$BASETIME",
370
+ "$PROCESS_ID",
371
+ "$=",
372
+ "$CHILD_ERROR",
373
+ "$PROGRAM_NAME",
374
+ "$>",
375
+ "$COMPILING",
376
+ "$REAL_GROUP_ID",
377
+ "$?",
378
+ "$DEBUGGING",
379
+ "$REAL_USER_ID",
380
+ "$@",
381
+ "$EFFECTIVE_GROUP_ID",
382
+ "$RS",
383
+ "$[",
384
+ "$EFFECTIVE_USER_ID",
385
+ "$SUBSCRIPT_SEPARATOR",
386
+ "$\\",
387
+ "$EGID",
388
+ "$SUBSEP",
389
+ "$]",
390
+ "$ERRNO",
391
+ "$SYSTEM_FD_MAX",
392
+ "$^",
393
+ "$EUID",
394
+ "$UID",
395
+ "$^A",
396
+ "$EVAL_ERROR",
397
+ "$WARNING",
398
+ "$^C",
399
+ "$EXCEPTIONS_BEING_CAUGHT",
400
+ "$|",
401
+ "$^CHILD_ERROR_NATIVE",
402
+ "$EXECUTABLE_NAME",
403
+ "$~",
404
+ "$^D",
405
+ "$EXTENDED_OS_ERROR",
406
+ "%!",
407
+ "$^E",
408
+ "$FORMAT_FORMFEED",
409
+ "%^H",
410
+ "$^ENCODING",
411
+ "$FORMAT_LINE_BREAK_CHARACTERS",
412
+ "%ENV",
413
+ "$^F",
414
+ "$FORMAT_LINES_LEFT",
415
+ "%INC",
416
+ "$^H",
417
+ "$FORMAT_LINES_PER_PAGE",
418
+ "%OVERLOAD",
419
+ "$^I",
420
+ "$FORMAT_NAME",
421
+ "%SIG",
422
+ "$^L",
423
+ "$FORMAT_PAGE_NUMBER",
424
+ "@+",
425
+ "$^M",
426
+ "$FORMAT_TOP_NAME",
427
+ "@-",
428
+ "$^N",
429
+ "$GID",
430
+ "@_",
431
+ "$^O",
432
+ "$INPLACE_EDIT",
433
+ "@ARGV",
434
+ "$^OPEN",
435
+ "$INPUT_LINE_NUMBER",
436
+ "@INC",
437
+ "$^P",
438
+ "$INPUT_RECORD_SEPARATOR",
439
+ "@LAST_MATCH_START",
440
+ "$^R",
441
+ "$LAST_MATCH_END",
442
+ "$^RE_DEBUG_FLAGS",
443
+ "$LAST_PAREN_MATCH"
444
+ ],
445
+ symbols: /[:+\-\^*$&%@=<>!?|\/~\.]/,
446
+ quoteLikeOps: ["qr", "m", "s", "q", "qq", "qx", "qw", "tr", "y"],
447
+ escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
448
+ tokenizer: {
449
+ root: [
450
+ { include: "@whitespace" },
451
+ [
452
+ /[a-zA-Z\-_][\w\-_]*/,
453
+ {
454
+ cases: {
455
+ "@keywords": "keyword",
456
+ "@builtinFunctions": "type.identifier",
457
+ "@builtinFileHandlers": "variable.predefined",
458
+ "@quoteLikeOps": {
459
+ token: "@rematch",
460
+ next: "quotedConstructs"
461
+ },
462
+ "@default": ""
463
+ }
464
+ }
465
+ ],
466
+ [
467
+ /[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,
468
+ {
469
+ cases: {
470
+ "@builtinVariables": "variable.predefined",
471
+ "@default": "variable"
472
+ }
473
+ }
474
+ ],
475
+ { include: "@strings" },
476
+ { include: "@dblStrings" },
477
+ { include: "@perldoc" },
478
+ { include: "@heredoc" },
479
+ [/[{}\[\]()]/, "@brackets"],
480
+ [/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/, "regexp"],
481
+ [/@symbols/, "operators"],
482
+ { include: "@numbers" },
483
+ [/[,;]/, "delimiter"]
484
+ ],
485
+ whitespace: [
486
+ [/\s+/, "white"],
487
+ [/(^#!.*$)/, "metatag"],
488
+ [/(^#.*$)/, "comment"]
489
+ ],
490
+ numbers: [
491
+ [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
492
+ [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, "number.hex"],
493
+ [/\d+/, "number"]
494
+ ],
495
+ strings: [[/'/, "string", "@stringBody"]],
496
+ stringBody: [
497
+ [/'/, "string", "@popall"],
498
+ [/\\'/, "string.escape"],
499
+ [/./, "string"]
500
+ ],
501
+ dblStrings: [[/"/, "string", "@dblStringBody"]],
502
+ dblStringBody: [
503
+ [/"/, "string", "@popall"],
504
+ [/@escapes/, "string.escape"],
505
+ [/\\./, "string.escape.invalid"],
506
+ { include: "@variables" },
507
+ [/./, "string"]
508
+ ],
509
+ quotedConstructs: [
510
+ [/(q|qw|tr|y)\s*\(/, { token: "string.delim", switchTo: "@qstring.(.)" }],
511
+ [/(q|qw|tr|y)\s*\[/, { token: "string.delim", switchTo: "@qstring.[.]" }],
512
+ [/(q|qw|tr|y)\s*\{/, { token: "string.delim", switchTo: "@qstring.{.}" }],
513
+ [/(q|qw|tr|y)\s*</, { token: "string.delim", switchTo: "@qstring.<.>" }],
514
+ [/(q|qw|tr|y)#/, { token: "string.delim", switchTo: "@qstring.#.#" }],
515
+ [/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/, { token: "string.delim", switchTo: "@qstring.$2.$2" }],
516
+ [/(q|qw|tr|y)\s+(\w)/, { token: "string.delim", switchTo: "@qstring.$2.$2" }],
517
+ [/(qr|m|s)\s*\(/, { token: "regexp.delim", switchTo: "@qregexp.(.)" }],
518
+ [/(qr|m|s)\s*\[/, { token: "regexp.delim", switchTo: "@qregexp.[.]" }],
519
+ [/(qr|m|s)\s*\{/, { token: "regexp.delim", switchTo: "@qregexp.{.}" }],
520
+ [/(qr|m|s)\s*</, { token: "regexp.delim", switchTo: "@qregexp.<.>" }],
521
+ [/(qr|m|s)#/, { token: "regexp.delim", switchTo: "@qregexp.#.#" }],
522
+ [/(qr|m|s)\s*([^A-Za-z0-9_#\s])/, { token: "regexp.delim", switchTo: "@qregexp.$2.$2" }],
523
+ [/(qr|m|s)\s+(\w)/, { token: "regexp.delim", switchTo: "@qregexp.$2.$2" }],
524
+ [/(qq|qx)\s*\(/, { token: "string.delim", switchTo: "@qqstring.(.)" }],
525
+ [/(qq|qx)\s*\[/, { token: "string.delim", switchTo: "@qqstring.[.]" }],
526
+ [/(qq|qx)\s*\{/, { token: "string.delim", switchTo: "@qqstring.{.}" }],
527
+ [/(qq|qx)\s*</, { token: "string.delim", switchTo: "@qqstring.<.>" }],
528
+ [/(qq|qx)#/, { token: "string.delim", switchTo: "@qqstring.#.#" }],
529
+ [/(qq|qx)\s*([^A-Za-z0-9#\s])/, { token: "string.delim", switchTo: "@qqstring.$2.$2" }],
530
+ [/(qq|qx)\s+(\w)/, { token: "string.delim", switchTo: "@qqstring.$2.$2" }]
531
+ ],
532
+ qstring: [
533
+ [/\\./, "string.escape"],
534
+ [
535
+ /./,
536
+ {
537
+ cases: {
538
+ "$#==$S3": { token: "string.delim", next: "@pop" },
539
+ "$#==$S2": { token: "string.delim", next: "@push" },
540
+ "@default": "string"
541
+ }
542
+ }
543
+ ]
544
+ ],
545
+ qregexp: [
546
+ { include: "@variables" },
547
+ [/\\./, "regexp.escape"],
548
+ [
549
+ /./,
550
+ {
551
+ cases: {
552
+ "$#==$S3": {
553
+ token: "regexp.delim",
554
+ next: "@regexpModifiers"
555
+ },
556
+ "$#==$S2": { token: "regexp.delim", next: "@push" },
557
+ "@default": "regexp"
558
+ }
559
+ }
560
+ ]
561
+ ],
562
+ regexpModifiers: [[/[msixpodualngcer]+/, { token: "regexp.modifier", next: "@popall" }]],
563
+ qqstring: [{ include: "@variables" }, { include: "@qstring" }],
564
+ heredoc: [
565
+ [/<<\s*['"`]?([\w\-]+)['"`]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
566
+ ],
567
+ heredocBody: [
568
+ [
569
+ /^([\w\-]+)$/,
570
+ {
571
+ cases: {
572
+ "$1==$S2": [
573
+ {
574
+ token: "string.heredoc.delimiter",
575
+ next: "@popall"
576
+ }
577
+ ],
578
+ "@default": "string.heredoc"
579
+ }
580
+ }
581
+ ],
582
+ [/./, "string.heredoc"]
583
+ ],
584
+ perldoc: [[/^=\w/, "comment.doc", "@perldocBody"]],
585
+ perldocBody: [
586
+ [/^=cut\b/, "type.identifier", "@popall"],
587
+ [/./, "comment.doc"]
588
+ ],
589
+ variables: [
590
+ [/\$\w+/, "variable"],
591
+ [/@\w+/, "variable"],
592
+ [/%\w+/, "variable"]
593
+ ]
594
+ }
595
+ };
596
+ export {
597
+ e as conf,
598
+ t as language
599
+ };