act-plus 1.1.23 → 1.1.25

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 (106) hide show
  1. package/act-plus.js +6 -5
  2. package/act-plus.umd.cjs +87 -1733
  3. package/lib/configBtns-63d416ef.js +152 -0
  4. package/lib/{configFileds-4633be91.js → configFileds-105ca288.js} +13 -11
  5. package/lib/{configTable-160a99e8.js → configTable-5bf09aac.js} +33 -31
  6. package/lib/{dialogAddField-a8db1c57.js → dialogAddField-bb493c88.js} +6 -4
  7. package/lib/{dialogConfigBtn-e5c41ad9.js → dialogConfigBtn-1fcd1496.js} +57 -55
  8. package/lib/{dialogSiteComponentsParams-05a400cc.js → dialogSiteComponentsParams-708737d2.js} +1 -1
  9. package/lib/{index-28cfa770.js → index-6b7ddc83.js} +74 -65
  10. package/lib/{index-44e2732a.js → index-740fe217.js} +10 -8
  11. package/lib/{index-7a1700c3.js → index-9071c381.js} +12 -10
  12. package/lib/{index-421ea84f.js → index-9bd009b2.js} +32 -30
  13. package/lib/index-ba8fa827.js +61597 -0
  14. package/lib/{index-cceb15dd.js → index-f8e81c41.js} +126 -148
  15. package/package.json +2 -6
  16. package/style.css +1 -1
  17. package/assets/css.worker-1af1972f.js +0 -84
  18. package/assets/editor.worker-df55e1ff.js +0 -8
  19. package/assets/html.worker-38c267f1.js +0 -456
  20. package/assets/json.worker-bf861c27.js +0 -39
  21. package/assets/ts.worker-e151483b.js +0 -33972
  22. package/lib/abap-1354785f.js +0 -1314
  23. package/lib/apex-279d4f27.js +0 -315
  24. package/lib/azcli-ba812c55.js +0 -74
  25. package/lib/bat-4d77495d.js +0 -95
  26. package/lib/bicep-7b240724.js +0 -108
  27. package/lib/cameligo-5d2daeb8.js +0 -168
  28. package/lib/clojure-b7ea12a3.js +0 -754
  29. package/lib/coffee-1a8cfbf4.js +0 -228
  30. package/lib/configBtns-c51c642b.js +0 -150
  31. package/lib/cpp-642b10c4.js +0 -387
  32. package/lib/csharp-d987ddad.js +0 -320
  33. package/lib/csp-96407af0.js +0 -57
  34. package/lib/css-5dd354ac.js +0 -186
  35. package/lib/cssMode-55e3e2b9.js +0 -1448
  36. package/lib/cypher-11e5a4b6.js +0 -262
  37. package/lib/dart-5d209f63.js +0 -270
  38. package/lib/dockerfile-8739cff7.js +0 -132
  39. package/lib/ecl-a20c5155.js +0 -454
  40. package/lib/elixir-8b028584.js +0 -467
  41. package/lib/flow9-0dea2e73.js +0 -141
  42. package/lib/freemarker2-86429a9d.js +0 -646
  43. package/lib/fsharp-49a70fad.js +0 -210
  44. package/lib/go-46e3b371.js +0 -208
  45. package/lib/graphql-51a577e5.js +0 -141
  46. package/lib/handlebars-dcad112f.js +0 -394
  47. package/lib/hcl-56b85754.js +0 -177
  48. package/lib/html-95cf87e3.js +0 -284
  49. package/lib/htmlMode-93d4ea14.js +0 -1458
  50. package/lib/index-22ab90dc.js +0 -162522
  51. package/lib/index-e2f2023d.js +0 -35
  52. package/lib/ini-1d58d82f.js +0 -68
  53. package/lib/java-cd017f60.js +0 -221
  54. package/lib/javascript-55252557.js +0 -78
  55. package/lib/jsonMode-b73c28d1.js +0 -1869
  56. package/lib/julia-a0caf483.js +0 -496
  57. package/lib/kotlin-c6e52a56.js +0 -245
  58. package/lib/less-718543b4.js +0 -168
  59. package/lib/lexon-5e6e7a44.js +0 -151
  60. package/lib/liquid-c923578c.js +0 -241
  61. package/lib/lua-f159160b.js +0 -157
  62. package/lib/m3-aadaf771.js +0 -210
  63. package/lib/markdown-9b448c46.js +0 -202
  64. package/lib/mips-161e49ce.js +0 -194
  65. package/lib/msdax-f65cb1e6.js +0 -377
  66. package/lib/mysql-24549dd1.js +0 -875
  67. package/lib/objective-c-e129a5ca.js +0 -188
  68. package/lib/pascal-4ccdf5ce.js +0 -245
  69. package/lib/pascaligo-a9603dcd.js +0 -158
  70. package/lib/perl-ba1fb97a.js +0 -599
  71. package/lib/pgsql-89978310.js +0 -843
  72. package/lib/php-987b9d87.js +0 -471
  73. package/lib/pla-96c2695d.js +0 -131
  74. package/lib/postiats-7b52ebac.js +0 -544
  75. package/lib/powerquery-8954ec26.js +0 -890
  76. package/lib/powershell-f00d0274.js +0 -233
  77. package/lib/protobuf-3eb85f80.js +0 -422
  78. package/lib/pug-6fab415a.js +0 -393
  79. package/lib/python-319c4cbb.js +0 -262
  80. package/lib/qsharp-4792f872.js +0 -282
  81. package/lib/r-630f5d6b.js +0 -245
  82. package/lib/razor-9a8bae51.js +0 -515
  83. package/lib/redis-276b8288.js +0 -298
  84. package/lib/redshift-520a7359.js +0 -806
  85. package/lib/restructuredtext-4676a3fc.js +0 -162
  86. package/lib/ruby-764137cd.js +0 -444
  87. package/lib/rust-97f8f6e1.js +0 -337
  88. package/lib/sb-8c22f14c.js +0 -110
  89. package/lib/scala-c68c650c.js +0 -353
  90. package/lib/scheme-e6a52cb0.js +0 -114
  91. package/lib/scss-45104c77.js +0 -244
  92. package/lib/shell-09452d42.js +0 -224
  93. package/lib/solidity-d4979008.js +0 -1351
  94. package/lib/sophia-21995caf.js +0 -190
  95. package/lib/sparql-5088743c.js +0 -193
  96. package/lib/sql-63ec8e76.js +0 -818
  97. package/lib/st-fa9ab362.js +0 -414
  98. package/lib/swift-abdf1835.js +0 -315
  99. package/lib/systemverilog-a4f858ed.js +0 -556
  100. package/lib/tcl-8adf937f.js +0 -232
  101. package/lib/tsMode-7111578e.js +0 -792
  102. package/lib/twig-404eb73e.js +0 -323
  103. package/lib/typescript-0c5e909b.js +0 -330
  104. package/lib/vb-e21e8153.js +0 -364
  105. package/lib/xml-acd745c7.js +0 -98
  106. package/lib/yaml-c114fa81.js +0 -187
@@ -1,323 +0,0 @@
1
- /*!-----------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
4
- * Released under the MIT license
5
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6
- *-----------------------------------------------------------------------------*/
7
- var t = {
8
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
9
- comments: {
10
- blockComment: ["{#", "#}"]
11
- },
12
- brackets: [
13
- ["{#", "#}"],
14
- ["{%", "%}"],
15
- ["{{", "}}"],
16
- ["(", ")"],
17
- ["[", "]"],
18
- ["<!--", "-->"],
19
- ["<", ">"]
20
- ],
21
- autoClosingPairs: [
22
- { open: "{# ", close: " #}" },
23
- { open: "{% ", close: " %}" },
24
- { open: "{{ ", close: " }}" },
25
- { open: "[", close: "]" },
26
- { open: "(", close: ")" },
27
- { open: '"', close: '"' },
28
- { open: "'", close: "'" }
29
- ],
30
- surroundingPairs: [
31
- { open: '"', close: '"' },
32
- { open: "'", close: "'" },
33
- { open: "<", close: ">" }
34
- ]
35
- }, e = {
36
- defaultToken: "",
37
- tokenPostfix: "",
38
- ignoreCase: !0,
39
- keywords: [
40
- "apply",
41
- "autoescape",
42
- "block",
43
- "deprecated",
44
- "do",
45
- "embed",
46
- "extends",
47
- "flush",
48
- "for",
49
- "from",
50
- "if",
51
- "import",
52
- "include",
53
- "macro",
54
- "sandbox",
55
- "set",
56
- "use",
57
- "verbatim",
58
- "with",
59
- "endapply",
60
- "endautoescape",
61
- "endblock",
62
- "endembed",
63
- "endfor",
64
- "endif",
65
- "endmacro",
66
- "endsandbox",
67
- "endset",
68
- "endwith",
69
- "true",
70
- "false"
71
- ],
72
- tokenizer: {
73
- root: [
74
- [/\s+/],
75
- [/{#/, "comment.twig", "@commentState"],
76
- [/{%[-~]?/, "delimiter.twig", "@blockState"],
77
- [/{{[-~]?/, "delimiter.twig", "@variableState"],
78
- [/<!DOCTYPE/, "metatag.html", "@doctype"],
79
- [/<!--/, "comment.html", "@comment"],
80
- [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["delimiter.html", "tag.html", "", "delimiter.html"]],
81
- [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
82
- [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
83
- [/(<)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
84
- [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
85
- [/</, "delimiter.html"],
86
- [/[^<]+/]
87
- ],
88
- commentState: [
89
- [/#}/, "comment.twig", "@pop"],
90
- [/./, "comment.twig"]
91
- ],
92
- blockState: [
93
- [/[-~]?%}/, "delimiter.twig", "@pop"],
94
- [/\s+/],
95
- [
96
- /(verbatim)(\s*)([-~]?%})/,
97
- ["keyword.twig", "", { token: "delimiter.twig", next: "@rawDataState" }]
98
- ],
99
- { include: "expression" }
100
- ],
101
- rawDataState: [
102
- [
103
- /({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
104
- ["delimiter.twig", "", "keyword.twig", "", { token: "delimiter.twig", next: "@popall" }]
105
- ],
106
- [/./, "string.twig"]
107
- ],
108
- variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], { include: "expression" }],
109
- stringState: [
110
- [/"/, "string.twig", "@pop"],
111
- [/#{\s*/, "string.twig", "@interpolationState"],
112
- [/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
113
- ],
114
- interpolationState: [
115
- [/}/, "string.twig", "@pop"],
116
- { include: "expression" }
117
- ],
118
- expression: [
119
- [/\s+/],
120
- [/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
121
- [/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
122
- [/==|!=|<|>|>=|<=/, "operators.twig"],
123
- [/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
124
- [/(in)(\s+)/, ["operators.twig", ""]],
125
- [/(is)(\s+)/, ["operators.twig", ""]],
126
- [/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
127
- [
128
- /[^\W\d][\w]*/,
129
- {
130
- cases: {
131
- "@keywords": "keyword.twig",
132
- "@default": "variable.twig"
133
- }
134
- }
135
- ],
136
- [/\d+(\.\d+)?/, "number.twig"],
137
- [/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
138
- [/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
139
- [/"/, "string.twig", "@stringState"],
140
- [/=>/, "operators.twig"],
141
- [/=/, "operators.twig"]
142
- ],
143
- doctype: [
144
- [/[^>]+/, "metatag.content.html"],
145
- [/>/, "metatag.html", "@pop"]
146
- ],
147
- comment: [
148
- [/-->/, "comment.html", "@pop"],
149
- [/[^-]+/, "comment.content.html"],
150
- [/./, "comment.content.html"]
151
- ],
152
- otherTag: [
153
- [/\/?>/, "delimiter.html", "@pop"],
154
- [/"([^"]*)"/, "attribute.value.html"],
155
- [/'([^']*)'/, "attribute.value.html"],
156
- [/[\w\-]+/, "attribute.name.html"],
157
- [/=/, "delimiter.html"],
158
- [/[ \t\r\n]+/]
159
- ],
160
- script: [
161
- [/type/, "attribute.name.html", "@scriptAfterType"],
162
- [/"([^"]*)"/, "attribute.value.html"],
163
- [/'([^']*)'/, "attribute.value.html"],
164
- [/[\w\-]+/, "attribute.name.html"],
165
- [/=/, "delimiter.html"],
166
- [
167
- />/,
168
- {
169
- token: "delimiter.html",
170
- next: "@scriptEmbedded",
171
- nextEmbedded: "text/javascript"
172
- }
173
- ],
174
- [/[ \t\r\n]+/],
175
- [
176
- /(<\/)(script\s*)(>)/,
177
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
178
- ]
179
- ],
180
- scriptAfterType: [
181
- [/=/, "delimiter.html", "@scriptAfterTypeEquals"],
182
- [
183
- />/,
184
- {
185
- token: "delimiter.html",
186
- next: "@scriptEmbedded",
187
- nextEmbedded: "text/javascript"
188
- }
189
- ],
190
- [/[ \t\r\n]+/],
191
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
192
- ],
193
- scriptAfterTypeEquals: [
194
- [
195
- /"([^"]*)"/,
196
- {
197
- token: "attribute.value.html",
198
- switchTo: "@scriptWithCustomType.$1"
199
- }
200
- ],
201
- [
202
- /'([^']*)'/,
203
- {
204
- token: "attribute.value.html",
205
- switchTo: "@scriptWithCustomType.$1"
206
- }
207
- ],
208
- [
209
- />/,
210
- {
211
- token: "delimiter.html",
212
- next: "@scriptEmbedded",
213
- nextEmbedded: "text/javascript"
214
- }
215
- ],
216
- [/[ \t\r\n]+/],
217
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
218
- ],
219
- scriptWithCustomType: [
220
- [
221
- />/,
222
- {
223
- token: "delimiter.html",
224
- next: "@scriptEmbedded.$S2",
225
- nextEmbedded: "$S2"
226
- }
227
- ],
228
- [/"([^"]*)"/, "attribute.value.html"],
229
- [/'([^']*)'/, "attribute.value.html"],
230
- [/[\w\-]+/, "attribute.name.html"],
231
- [/=/, "delimiter.html"],
232
- [/[ \t\r\n]+/],
233
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
234
- ],
235
- scriptEmbedded: [
236
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
237
- [/[^<]+/, ""]
238
- ],
239
- style: [
240
- [/type/, "attribute.name.html", "@styleAfterType"],
241
- [/"([^"]*)"/, "attribute.value.html"],
242
- [/'([^']*)'/, "attribute.value.html"],
243
- [/[\w\-]+/, "attribute.name.html"],
244
- [/=/, "delimiter.html"],
245
- [
246
- />/,
247
- {
248
- token: "delimiter.html",
249
- next: "@styleEmbedded",
250
- nextEmbedded: "text/css"
251
- }
252
- ],
253
- [/[ \t\r\n]+/],
254
- [
255
- /(<\/)(style\s*)(>)/,
256
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
257
- ]
258
- ],
259
- styleAfterType: [
260
- [/=/, "delimiter.html", "@styleAfterTypeEquals"],
261
- [
262
- />/,
263
- {
264
- token: "delimiter.html",
265
- next: "@styleEmbedded",
266
- nextEmbedded: "text/css"
267
- }
268
- ],
269
- [/[ \t\r\n]+/],
270
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
271
- ],
272
- styleAfterTypeEquals: [
273
- [
274
- /"([^"]*)"/,
275
- {
276
- token: "attribute.value.html",
277
- switchTo: "@styleWithCustomType.$1"
278
- }
279
- ],
280
- [
281
- /'([^']*)'/,
282
- {
283
- token: "attribute.value.html",
284
- switchTo: "@styleWithCustomType.$1"
285
- }
286
- ],
287
- [
288
- />/,
289
- {
290
- token: "delimiter.html",
291
- next: "@styleEmbedded",
292
- nextEmbedded: "text/css"
293
- }
294
- ],
295
- [/[ \t\r\n]+/],
296
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
297
- ],
298
- styleWithCustomType: [
299
- [
300
- />/,
301
- {
302
- token: "delimiter.html",
303
- next: "@styleEmbedded.$S2",
304
- nextEmbedded: "$S2"
305
- }
306
- ],
307
- [/"([^"]*)"/, "attribute.value.html"],
308
- [/'([^']*)'/, "attribute.value.html"],
309
- [/[\w\-]+/, "attribute.name.html"],
310
- [/=/, "delimiter.html"],
311
- [/[ \t\r\n]+/],
312
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
313
- ],
314
- styleEmbedded: [
315
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
316
- [/[^<]+/, ""]
317
- ]
318
- }
319
- };
320
- export {
321
- t as conf,
322
- e as language
323
- };
@@ -1,330 +0,0 @@
1
- import { m as c } from "./index-22ab90dc.js";
2
- import "vue";
3
- import "vue-router";
4
- import "element-plus";
5
- /*!-----------------------------------------------------------------------------
6
- * Copyright (c) Microsoft Corporation. All rights reserved.
7
- * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
8
- * Released under the MIT license
9
- * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
10
- *-----------------------------------------------------------------------------*/
11
- var a = Object.defineProperty, p = Object.getOwnPropertyDescriptor, g = Object.getOwnPropertyNames, l = Object.prototype.hasOwnProperty, s = (t, e, o, i) => {
12
- if (e && typeof e == "object" || typeof e == "function")
13
- for (let n of g(e))
14
- !l.call(t, n) && n !== o && a(t, n, { get: () => e[n], enumerable: !(i = p(e, n)) || i.enumerable });
15
- return t;
16
- }, d = (t, e, o) => (s(t, e, "default"), o && s(o, e, "default")), r = {};
17
- d(r, c);
18
- var f = {
19
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
20
- comments: {
21
- lineComment: "//",
22
- blockComment: ["/*", "*/"]
23
- },
24
- brackets: [
25
- ["{", "}"],
26
- ["[", "]"],
27
- ["(", ")"]
28
- ],
29
- onEnterRules: [
30
- {
31
- beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
32
- afterText: /^\s*\*\/$/,
33
- action: {
34
- indentAction: r.languages.IndentAction.IndentOutdent,
35
- appendText: " * "
36
- }
37
- },
38
- {
39
- beforeText: /^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,
40
- action: {
41
- indentAction: r.languages.IndentAction.None,
42
- appendText: " * "
43
- }
44
- },
45
- {
46
- beforeText: /^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,
47
- action: {
48
- indentAction: r.languages.IndentAction.None,
49
- appendText: "* "
50
- }
51
- },
52
- {
53
- beforeText: /^(\t|(\ \ ))*\ \*\/\s*$/,
54
- action: {
55
- indentAction: r.languages.IndentAction.None,
56
- removeText: 1
57
- }
58
- }
59
- ],
60
- autoClosingPairs: [
61
- { open: "{", close: "}" },
62
- { open: "[", close: "]" },
63
- { open: "(", close: ")" },
64
- { open: '"', close: '"', notIn: ["string"] },
65
- { open: "'", close: "'", notIn: ["string", "comment"] },
66
- { open: "`", close: "`", notIn: ["string", "comment"] },
67
- { open: "/**", close: " */", notIn: ["string"] }
68
- ],
69
- folding: {
70
- markers: {
71
- start: new RegExp("^\\s*//\\s*#?region\\b"),
72
- end: new RegExp("^\\s*//\\s*#?endregion\\b")
73
- }
74
- }
75
- }, k = {
76
- defaultToken: "invalid",
77
- tokenPostfix: ".ts",
78
- keywords: [
79
- "abstract",
80
- "any",
81
- "as",
82
- "asserts",
83
- "bigint",
84
- "boolean",
85
- "break",
86
- "case",
87
- "catch",
88
- "class",
89
- "continue",
90
- "const",
91
- "constructor",
92
- "debugger",
93
- "declare",
94
- "default",
95
- "delete",
96
- "do",
97
- "else",
98
- "enum",
99
- "export",
100
- "extends",
101
- "false",
102
- "finally",
103
- "for",
104
- "from",
105
- "function",
106
- "get",
107
- "if",
108
- "implements",
109
- "import",
110
- "in",
111
- "infer",
112
- "instanceof",
113
- "interface",
114
- "is",
115
- "keyof",
116
- "let",
117
- "module",
118
- "namespace",
119
- "never",
120
- "new",
121
- "null",
122
- "number",
123
- "object",
124
- "out",
125
- "package",
126
- "private",
127
- "protected",
128
- "public",
129
- "override",
130
- "readonly",
131
- "require",
132
- "global",
133
- "return",
134
- "set",
135
- "static",
136
- "string",
137
- "super",
138
- "switch",
139
- "symbol",
140
- "this",
141
- "throw",
142
- "true",
143
- "try",
144
- "type",
145
- "typeof",
146
- "undefined",
147
- "unique",
148
- "unknown",
149
- "var",
150
- "void",
151
- "while",
152
- "with",
153
- "yield",
154
- "async",
155
- "await",
156
- "of"
157
- ],
158
- operators: [
159
- "<=",
160
- ">=",
161
- "==",
162
- "!=",
163
- "===",
164
- "!==",
165
- "=>",
166
- "+",
167
- "-",
168
- "**",
169
- "*",
170
- "/",
171
- "%",
172
- "++",
173
- "--",
174
- "<<",
175
- "</",
176
- ">>",
177
- ">>>",
178
- "&",
179
- "|",
180
- "^",
181
- "!",
182
- "~",
183
- "&&",
184
- "||",
185
- "??",
186
- "?",
187
- ":",
188
- "=",
189
- "+=",
190
- "-=",
191
- "*=",
192
- "**=",
193
- "/=",
194
- "%=",
195
- "<<=",
196
- ">>=",
197
- ">>>=",
198
- "&=",
199
- "|=",
200
- "^=",
201
- "@"
202
- ],
203
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
204
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
205
- digits: /\d+(_+\d+)*/,
206
- octaldigits: /[0-7]+(_+[0-7]+)*/,
207
- binarydigits: /[0-1]+(_+[0-1]+)*/,
208
- hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
209
- regexpctl: /[(){}\[\]\$\^|\-*+?\.]/,
210
- regexpesc: /\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,
211
- tokenizer: {
212
- root: [[/[{}]/, "delimiter.bracket"], { include: "common" }],
213
- common: [
214
- [
215
- /[a-z_$][\w$]*/,
216
- {
217
- cases: {
218
- "@keywords": "keyword",
219
- "@default": "identifier"
220
- }
221
- }
222
- ],
223
- [/[A-Z][\w\$]*/, "type.identifier"],
224
- { include: "@whitespace" },
225
- [
226
- /\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,
227
- { token: "regexp", bracket: "@open", next: "@regexp" }
228
- ],
229
- [/[()\[\]]/, "@brackets"],
230
- [/[<>](?!@symbols)/, "@brackets"],
231
- [/!(?=([^=]|$))/, "delimiter"],
232
- [
233
- /@symbols/,
234
- {
235
- cases: {
236
- "@operators": "delimiter",
237
- "@default": ""
238
- }
239
- }
240
- ],
241
- [/(@digits)[eE]([\-+]?(@digits))?/, "number.float"],
242
- [/(@digits)\.(@digits)([eE][\-+]?(@digits))?/, "number.float"],
243
- [/0[xX](@hexdigits)n?/, "number.hex"],
244
- [/0[oO]?(@octaldigits)n?/, "number.octal"],
245
- [/0[bB](@binarydigits)n?/, "number.binary"],
246
- [/(@digits)n?/, "number"],
247
- [/[;,.]/, "delimiter"],
248
- [/"([^"\\]|\\.)*$/, "string.invalid"],
249
- [/'([^'\\]|\\.)*$/, "string.invalid"],
250
- [/"/, "string", "@string_double"],
251
- [/'/, "string", "@string_single"],
252
- [/`/, "string", "@string_backtick"]
253
- ],
254
- whitespace: [
255
- [/[ \t\r\n]+/, ""],
256
- [/\/\*\*(?!\/)/, "comment.doc", "@jsdoc"],
257
- [/\/\*/, "comment", "@comment"],
258
- [/\/\/.*$/, "comment"]
259
- ],
260
- comment: [
261
- [/[^\/*]+/, "comment"],
262
- [/\*\//, "comment", "@pop"],
263
- [/[\/*]/, "comment"]
264
- ],
265
- jsdoc: [
266
- [/[^\/*]+/, "comment.doc"],
267
- [/\*\//, "comment.doc", "@pop"],
268
- [/[\/*]/, "comment.doc"]
269
- ],
270
- regexp: [
271
- [
272
- /(\{)(\d+(?:,\d*)?)(\})/,
273
- ["regexp.escape.control", "regexp.escape.control", "regexp.escape.control"]
274
- ],
275
- [
276
- /(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,
277
- ["regexp.escape.control", { token: "regexp.escape.control", next: "@regexrange" }]
278
- ],
279
- [/(\()(\?:|\?=|\?!)/, ["regexp.escape.control", "regexp.escape.control"]],
280
- [/[()]/, "regexp.escape.control"],
281
- [/@regexpctl/, "regexp.escape.control"],
282
- [/[^\\\/]/, "regexp"],
283
- [/@regexpesc/, "regexp.escape"],
284
- [/\\\./, "regexp.invalid"],
285
- [/(\/)([dgimsuy]*)/, [{ token: "regexp", bracket: "@close", next: "@pop" }, "keyword.other"]]
286
- ],
287
- regexrange: [
288
- [/-/, "regexp.escape.control"],
289
- [/\^/, "regexp.invalid"],
290
- [/@regexpesc/, "regexp.escape"],
291
- [/[^\]]/, "regexp"],
292
- [
293
- /\]/,
294
- {
295
- token: "regexp.escape.control",
296
- next: "@pop",
297
- bracket: "@close"
298
- }
299
- ]
300
- ],
301
- string_double: [
302
- [/[^\\"]+/, "string"],
303
- [/@escapes/, "string.escape"],
304
- [/\\./, "string.escape.invalid"],
305
- [/"/, "string", "@pop"]
306
- ],
307
- string_single: [
308
- [/[^\\']+/, "string"],
309
- [/@escapes/, "string.escape"],
310
- [/\\./, "string.escape.invalid"],
311
- [/'/, "string", "@pop"]
312
- ],
313
- string_backtick: [
314
- [/\$\{/, { token: "delimiter.bracket", next: "@bracketCounting" }],
315
- [/[^\\`$]+/, "string"],
316
- [/@escapes/, "string.escape"],
317
- [/\\./, "string.escape.invalid"],
318
- [/`/, "string", "@pop"]
319
- ],
320
- bracketCounting: [
321
- [/\{/, "delimiter.bracket", "@bracketCounting"],
322
- [/\}/, "delimiter.bracket", "@pop"],
323
- { include: "common" }
324
- ]
325
- }
326
- };
327
- export {
328
- f as conf,
329
- k as language
330
- };