act-plus 1.1.22 → 1.1.24

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 (104) hide show
  1. package/act-plus.js +6 -5
  2. package/act-plus.umd.cjs +94 -1722
  3. package/lib/{configBtns-c4e55eb0.js → configBtns-15591aad.js} +51 -50
  4. package/lib/{configFileds-b79642bc.js → configFileds-a045430e.js} +5 -4
  5. package/lib/{configTable-21f37060.js → configTable-0285d3f8.js} +32 -31
  6. package/lib/{dialogAddField-535d4a6c.js → dialogAddField-f474439d.js} +5 -4
  7. package/lib/{dialogConfigBtn-f4b70a91.js → dialogConfigBtn-c97ccee8.js} +5 -4
  8. package/lib/{dialogSiteComponentsParams-a99a4d71.js → dialogSiteComponentsParams-e2c5b8dd.js} +1 -1
  9. package/lib/{index-cb908890.js → index-36c9cd81.js} +15 -14
  10. package/lib/{index-f2795fa7.js → index-3e20553c.js} +11 -10
  11. package/lib/{index-79e6c123.js → index-7de949f6.js} +4 -3
  12. package/lib/{index-742c1da3.js → index-85deefc8.js} +5 -4
  13. package/lib/index-d0c3be37.js +68438 -0
  14. package/lib/{index-14906725.js → index-f58e1535.js} +31 -30
  15. package/package.json +1 -1
  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/cpp-642b10c4.js +0 -387
  31. package/lib/csharp-d987ddad.js +0 -320
  32. package/lib/csp-96407af0.js +0 -57
  33. package/lib/css-5dd354ac.js +0 -186
  34. package/lib/cssMode-049c1acb.js +0 -1448
  35. package/lib/cypher-11e5a4b6.js +0 -262
  36. package/lib/dart-5d209f63.js +0 -270
  37. package/lib/dockerfile-8739cff7.js +0 -132
  38. package/lib/ecl-a20c5155.js +0 -454
  39. package/lib/elixir-8b028584.js +0 -467
  40. package/lib/flow9-0dea2e73.js +0 -141
  41. package/lib/freemarker2-c93dec09.js +0 -646
  42. package/lib/fsharp-49a70fad.js +0 -210
  43. package/lib/go-46e3b371.js +0 -208
  44. package/lib/graphql-51a577e5.js +0 -141
  45. package/lib/handlebars-8a7428d8.js +0 -394
  46. package/lib/hcl-56b85754.js +0 -177
  47. package/lib/html-2fad443c.js +0 -284
  48. package/lib/htmlMode-3c13e1c6.js +0 -1458
  49. package/lib/index-a2634eef.js +0 -162522
  50. package/lib/ini-1d58d82f.js +0 -68
  51. package/lib/java-cd017f60.js +0 -221
  52. package/lib/javascript-2ec13b45.js +0 -78
  53. package/lib/jsonMode-33ed8d99.js +0 -1869
  54. package/lib/julia-a0caf483.js +0 -496
  55. package/lib/kotlin-c6e52a56.js +0 -245
  56. package/lib/less-718543b4.js +0 -168
  57. package/lib/lexon-5e6e7a44.js +0 -151
  58. package/lib/liquid-40ee460a.js +0 -241
  59. package/lib/lua-f159160b.js +0 -157
  60. package/lib/m3-aadaf771.js +0 -210
  61. package/lib/markdown-9b448c46.js +0 -202
  62. package/lib/mips-161e49ce.js +0 -194
  63. package/lib/msdax-f65cb1e6.js +0 -377
  64. package/lib/mysql-24549dd1.js +0 -875
  65. package/lib/objective-c-e129a5ca.js +0 -188
  66. package/lib/pascal-4ccdf5ce.js +0 -245
  67. package/lib/pascaligo-a9603dcd.js +0 -158
  68. package/lib/perl-ba1fb97a.js +0 -599
  69. package/lib/pgsql-89978310.js +0 -843
  70. package/lib/php-987b9d87.js +0 -471
  71. package/lib/pla-96c2695d.js +0 -131
  72. package/lib/postiats-7b52ebac.js +0 -544
  73. package/lib/powerquery-8954ec26.js +0 -890
  74. package/lib/powershell-f00d0274.js +0 -233
  75. package/lib/protobuf-3eb85f80.js +0 -422
  76. package/lib/pug-6fab415a.js +0 -393
  77. package/lib/python-852dc2c1.js +0 -262
  78. package/lib/qsharp-4792f872.js +0 -282
  79. package/lib/r-630f5d6b.js +0 -245
  80. package/lib/razor-c24d586d.js +0 -515
  81. package/lib/redis-276b8288.js +0 -298
  82. package/lib/redshift-520a7359.js +0 -806
  83. package/lib/restructuredtext-4676a3fc.js +0 -162
  84. package/lib/ruby-764137cd.js +0 -444
  85. package/lib/rust-97f8f6e1.js +0 -337
  86. package/lib/sb-8c22f14c.js +0 -110
  87. package/lib/scala-c68c650c.js +0 -353
  88. package/lib/scheme-e6a52cb0.js +0 -114
  89. package/lib/scss-45104c77.js +0 -244
  90. package/lib/shell-09452d42.js +0 -224
  91. package/lib/solidity-d4979008.js +0 -1351
  92. package/lib/sophia-21995caf.js +0 -190
  93. package/lib/sparql-5088743c.js +0 -193
  94. package/lib/sql-63ec8e76.js +0 -818
  95. package/lib/st-fa9ab362.js +0 -414
  96. package/lib/swift-abdf1835.js +0 -315
  97. package/lib/systemverilog-a4f858ed.js +0 -556
  98. package/lib/tcl-8adf937f.js +0 -232
  99. package/lib/tsMode-6d6244be.js +0 -792
  100. package/lib/twig-404eb73e.js +0 -323
  101. package/lib/typescript-807ce4d9.js +0 -330
  102. package/lib/vb-e21e8153.js +0 -364
  103. package/lib/xml-cc91b485.js +0 -98
  104. package/lib/yaml-f2de88bb.js +0 -187
@@ -1,394 +0,0 @@
1
- import { m as l } from "./index-a2634eef.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 s = Object.defineProperty, d = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, p = Object.prototype.hasOwnProperty, o = (t, e, r, m) => {
12
- if (e && typeof e == "object" || typeof e == "function")
13
- for (let n of c(e))
14
- !p.call(t, n) && n !== r && s(t, n, { get: () => e[n], enumerable: !(m = d(e, n)) || m.enumerable });
15
- return t;
16
- }, h = (t, e, r) => (o(t, e, "default"), r && o(r, e, "default")), a = {};
17
- h(a, l);
18
- var i = [
19
- "area",
20
- "base",
21
- "br",
22
- "col",
23
- "embed",
24
- "hr",
25
- "img",
26
- "input",
27
- "keygen",
28
- "link",
29
- "menuitem",
30
- "meta",
31
- "param",
32
- "source",
33
- "track",
34
- "wbr"
35
- ], x = {
36
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
37
- comments: {
38
- blockComment: ["{{!--", "--}}"]
39
- },
40
- brackets: [
41
- ["<!--", "-->"],
42
- ["<", ">"],
43
- ["{{", "}}"],
44
- ["{", "}"],
45
- ["(", ")"]
46
- ],
47
- autoClosingPairs: [
48
- { open: "{", close: "}" },
49
- { open: "[", close: "]" },
50
- { open: "(", close: ")" },
51
- { open: '"', close: '"' },
52
- { open: "'", close: "'" }
53
- ],
54
- surroundingPairs: [
55
- { open: "<", close: ">" },
56
- { open: '"', close: '"' },
57
- { open: "'", close: "'" }
58
- ],
59
- onEnterRules: [
60
- {
61
- beforeText: new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
62
- afterText: /^<\/(\w[\w\d]*)\s*>$/i,
63
- action: {
64
- indentAction: a.languages.IndentAction.IndentOutdent
65
- }
66
- },
67
- {
68
- beforeText: new RegExp(`<(?!(?:${i.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`, "i"),
69
- action: { indentAction: a.languages.IndentAction.Indent }
70
- }
71
- ]
72
- }, T = {
73
- defaultToken: "",
74
- tokenPostfix: "",
75
- tokenizer: {
76
- root: [
77
- [/\{\{!--/, "comment.block.start.handlebars", "@commentBlock"],
78
- [/\{\{!/, "comment.start.handlebars", "@comment"],
79
- [/\{\{/, { token: "@rematch", switchTo: "@handlebarsInSimpleState.root" }],
80
- [/<!DOCTYPE/, "metatag.html", "@doctype"],
81
- [/<!--/, "comment.html", "@commentHtml"],
82
- [/(<)(\w+)(\/>)/, ["delimiter.html", "tag.html", "delimiter.html"]],
83
- [/(<)(script)/, ["delimiter.html", { token: "tag.html", next: "@script" }]],
84
- [/(<)(style)/, ["delimiter.html", { token: "tag.html", next: "@style" }]],
85
- [/(<)([:\w]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
86
- [/(<\/)(\w+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
87
- [/</, "delimiter.html"],
88
- [/\{/, "delimiter.html"],
89
- [/[^<{]+/]
90
- ],
91
- doctype: [
92
- [
93
- /\{\{/,
94
- {
95
- token: "@rematch",
96
- switchTo: "@handlebarsInSimpleState.comment"
97
- }
98
- ],
99
- [/[^>]+/, "metatag.content.html"],
100
- [/>/, "metatag.html", "@pop"]
101
- ],
102
- comment: [
103
- [/\}\}/, "comment.end.handlebars", "@pop"],
104
- [/./, "comment.content.handlebars"]
105
- ],
106
- commentBlock: [
107
- [/--\}\}/, "comment.block.end.handlebars", "@pop"],
108
- [/./, "comment.content.handlebars"]
109
- ],
110
- commentHtml: [
111
- [
112
- /\{\{/,
113
- {
114
- token: "@rematch",
115
- switchTo: "@handlebarsInSimpleState.comment"
116
- }
117
- ],
118
- [/-->/, "comment.html", "@pop"],
119
- [/[^-]+/, "comment.content.html"],
120
- [/./, "comment.content.html"]
121
- ],
122
- otherTag: [
123
- [
124
- /\{\{/,
125
- {
126
- token: "@rematch",
127
- switchTo: "@handlebarsInSimpleState.otherTag"
128
- }
129
- ],
130
- [/\/?>/, "delimiter.html", "@pop"],
131
- [/"([^"]*)"/, "attribute.value"],
132
- [/'([^']*)'/, "attribute.value"],
133
- [/[\w\-]+/, "attribute.name"],
134
- [/=/, "delimiter"],
135
- [/[ \t\r\n]+/]
136
- ],
137
- script: [
138
- [
139
- /\{\{/,
140
- {
141
- token: "@rematch",
142
- switchTo: "@handlebarsInSimpleState.script"
143
- }
144
- ],
145
- [/type/, "attribute.name", "@scriptAfterType"],
146
- [/"([^"]*)"/, "attribute.value"],
147
- [/'([^']*)'/, "attribute.value"],
148
- [/[\w\-]+/, "attribute.name"],
149
- [/=/, "delimiter"],
150
- [
151
- />/,
152
- {
153
- token: "delimiter.html",
154
- next: "@scriptEmbedded.text/javascript",
155
- nextEmbedded: "text/javascript"
156
- }
157
- ],
158
- [/[ \t\r\n]+/],
159
- [
160
- /(<\/)(script\s*)(>)/,
161
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
162
- ]
163
- ],
164
- scriptAfterType: [
165
- [
166
- /\{\{/,
167
- {
168
- token: "@rematch",
169
- switchTo: "@handlebarsInSimpleState.scriptAfterType"
170
- }
171
- ],
172
- [/=/, "delimiter", "@scriptAfterTypeEquals"],
173
- [
174
- />/,
175
- {
176
- token: "delimiter.html",
177
- next: "@scriptEmbedded.text/javascript",
178
- nextEmbedded: "text/javascript"
179
- }
180
- ],
181
- [/[ \t\r\n]+/],
182
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
183
- ],
184
- scriptAfterTypeEquals: [
185
- [
186
- /\{\{/,
187
- {
188
- token: "@rematch",
189
- switchTo: "@handlebarsInSimpleState.scriptAfterTypeEquals"
190
- }
191
- ],
192
- [
193
- /"([^"]*)"/,
194
- {
195
- token: "attribute.value",
196
- switchTo: "@scriptWithCustomType.$1"
197
- }
198
- ],
199
- [
200
- /'([^']*)'/,
201
- {
202
- token: "attribute.value",
203
- switchTo: "@scriptWithCustomType.$1"
204
- }
205
- ],
206
- [
207
- />/,
208
- {
209
- token: "delimiter.html",
210
- next: "@scriptEmbedded.text/javascript",
211
- nextEmbedded: "text/javascript"
212
- }
213
- ],
214
- [/[ \t\r\n]+/],
215
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
216
- ],
217
- scriptWithCustomType: [
218
- [
219
- /\{\{/,
220
- {
221
- token: "@rematch",
222
- switchTo: "@handlebarsInSimpleState.scriptWithCustomType.$S2"
223
- }
224
- ],
225
- [
226
- />/,
227
- {
228
- token: "delimiter.html",
229
- next: "@scriptEmbedded.$S2",
230
- nextEmbedded: "$S2"
231
- }
232
- ],
233
- [/"([^"]*)"/, "attribute.value"],
234
- [/'([^']*)'/, "attribute.value"],
235
- [/[\w\-]+/, "attribute.name"],
236
- [/=/, "delimiter"],
237
- [/[ \t\r\n]+/],
238
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
239
- ],
240
- scriptEmbedded: [
241
- [
242
- /\{\{/,
243
- {
244
- token: "@rematch",
245
- switchTo: "@handlebarsInEmbeddedState.scriptEmbedded.$S2",
246
- nextEmbedded: "@pop"
247
- }
248
- ],
249
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
250
- ],
251
- style: [
252
- [
253
- /\{\{/,
254
- {
255
- token: "@rematch",
256
- switchTo: "@handlebarsInSimpleState.style"
257
- }
258
- ],
259
- [/type/, "attribute.name", "@styleAfterType"],
260
- [/"([^"]*)"/, "attribute.value"],
261
- [/'([^']*)'/, "attribute.value"],
262
- [/[\w\-]+/, "attribute.name"],
263
- [/=/, "delimiter"],
264
- [
265
- />/,
266
- {
267
- token: "delimiter.html",
268
- next: "@styleEmbedded.text/css",
269
- nextEmbedded: "text/css"
270
- }
271
- ],
272
- [/[ \t\r\n]+/],
273
- [
274
- /(<\/)(style\s*)(>)/,
275
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
276
- ]
277
- ],
278
- styleAfterType: [
279
- [
280
- /\{\{/,
281
- {
282
- token: "@rematch",
283
- switchTo: "@handlebarsInSimpleState.styleAfterType"
284
- }
285
- ],
286
- [/=/, "delimiter", "@styleAfterTypeEquals"],
287
- [
288
- />/,
289
- {
290
- token: "delimiter.html",
291
- next: "@styleEmbedded.text/css",
292
- nextEmbedded: "text/css"
293
- }
294
- ],
295
- [/[ \t\r\n]+/],
296
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
297
- ],
298
- styleAfterTypeEquals: [
299
- [
300
- /\{\{/,
301
- {
302
- token: "@rematch",
303
- switchTo: "@handlebarsInSimpleState.styleAfterTypeEquals"
304
- }
305
- ],
306
- [
307
- /"([^"]*)"/,
308
- {
309
- token: "attribute.value",
310
- switchTo: "@styleWithCustomType.$1"
311
- }
312
- ],
313
- [
314
- /'([^']*)'/,
315
- {
316
- token: "attribute.value",
317
- switchTo: "@styleWithCustomType.$1"
318
- }
319
- ],
320
- [
321
- />/,
322
- {
323
- token: "delimiter.html",
324
- next: "@styleEmbedded.text/css",
325
- nextEmbedded: "text/css"
326
- }
327
- ],
328
- [/[ \t\r\n]+/],
329
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
330
- ],
331
- styleWithCustomType: [
332
- [
333
- /\{\{/,
334
- {
335
- token: "@rematch",
336
- switchTo: "@handlebarsInSimpleState.styleWithCustomType.$S2"
337
- }
338
- ],
339
- [
340
- />/,
341
- {
342
- token: "delimiter.html",
343
- next: "@styleEmbedded.$S2",
344
- nextEmbedded: "$S2"
345
- }
346
- ],
347
- [/"([^"]*)"/, "attribute.value"],
348
- [/'([^']*)'/, "attribute.value"],
349
- [/[\w\-]+/, "attribute.name"],
350
- [/=/, "delimiter"],
351
- [/[ \t\r\n]+/],
352
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
353
- ],
354
- styleEmbedded: [
355
- [
356
- /\{\{/,
357
- {
358
- token: "@rematch",
359
- switchTo: "@handlebarsInEmbeddedState.styleEmbedded.$S2",
360
- nextEmbedded: "@pop"
361
- }
362
- ],
363
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }]
364
- ],
365
- handlebarsInSimpleState: [
366
- [/\{\{\{?/, "delimiter.handlebars"],
367
- [/\}\}\}?/, { token: "delimiter.handlebars", switchTo: "@$S2.$S3" }],
368
- { include: "handlebarsRoot" }
369
- ],
370
- handlebarsInEmbeddedState: [
371
- [/\{\{\{?/, "delimiter.handlebars"],
372
- [
373
- /\}\}\}?/,
374
- {
375
- token: "delimiter.handlebars",
376
- switchTo: "@$S2.$S3",
377
- nextEmbedded: "$S3"
378
- }
379
- ],
380
- { include: "handlebarsRoot" }
381
- ],
382
- handlebarsRoot: [
383
- [/"[^"]*"/, "string.handlebars"],
384
- [/[#/][^\s}]+/, "keyword.helper.handlebars"],
385
- [/else\b/, "keyword.helper.handlebars"],
386
- [/[\s]+/],
387
- [/[^}]/, "variable.parameter.handlebars"]
388
- ]
389
- }
390
- };
391
- export {
392
- x as conf,
393
- T as language
394
- };
@@ -1,177 +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 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
- ]
29
- }, t = {
30
- defaultToken: "",
31
- tokenPostfix: ".hcl",
32
- keywords: [
33
- "var",
34
- "local",
35
- "path",
36
- "for_each",
37
- "any",
38
- "string",
39
- "number",
40
- "bool",
41
- "true",
42
- "false",
43
- "null",
44
- "if ",
45
- "else ",
46
- "endif ",
47
- "for ",
48
- "in",
49
- "endfor"
50
- ],
51
- operators: [
52
- "=",
53
- ">=",
54
- "<=",
55
- "==",
56
- "!=",
57
- "+",
58
- "-",
59
- "*",
60
- "/",
61
- "%",
62
- "&&",
63
- "||",
64
- "!",
65
- "<",
66
- ">",
67
- "?",
68
- "...",
69
- ":"
70
- ],
71
- symbols: /[=><!~?:&|+\-*\/\^%]+/,
72
- escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
73
- terraformFunctions: /(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,
74
- terraformMainBlocks: /(module|data|terraform|resource|provider|variable|output|locals)/,
75
- tokenizer: {
76
- root: [
77
- [
78
- /^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
79
- ["type", "", "string", "", "string", "", "@brackets"]
80
- ],
81
- [
82
- /(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,
83
- ["identifier", "", "string", "", "string", "", "@brackets"]
84
- ],
85
- [
86
- /(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,
87
- ["identifier", "", "string", "", "operator", "", "@brackets"]
88
- ],
89
- { include: "@terraform" }
90
- ],
91
- terraform: [
92
- [/@terraformFunctions(\()/, ["type", "@brackets"]],
93
- [
94
- /[a-zA-Z_]\w*-*/,
95
- {
96
- cases: {
97
- "@keywords": { token: "keyword.$0" },
98
- "@default": "variable"
99
- }
100
- }
101
- ],
102
- { include: "@whitespace" },
103
- { include: "@heredoc" },
104
- [/[{}()\[\]]/, "@brackets"],
105
- [/[<>](?!@symbols)/, "@brackets"],
106
- [
107
- /@symbols/,
108
- {
109
- cases: {
110
- "@operators": "operator",
111
- "@default": ""
112
- }
113
- }
114
- ],
115
- [/\d*\d+[eE]([\-+]?\d+)?/, "number.float"],
116
- [/\d*\.\d+([eE][\-+]?\d+)?/, "number.float"],
117
- [/\d[\d']*/, "number"],
118
- [/\d/, "number"],
119
- [/[;,.]/, "delimiter"],
120
- [/"/, "string", "@string"],
121
- [/'/, "invalid"]
122
- ],
123
- heredoc: [
124
- [/<<[-]*\s*["]?([\w\-]+)["]?/, { token: "string.heredoc.delimiter", next: "@heredocBody.$1" }]
125
- ],
126
- heredocBody: [
127
- [
128
- /([\w\-]+)$/,
129
- {
130
- cases: {
131
- "$1==$S2": [
132
- {
133
- token: "string.heredoc.delimiter",
134
- next: "@popall"
135
- }
136
- ],
137
- "@default": "string.heredoc"
138
- }
139
- }
140
- ],
141
- [/./, "string.heredoc"]
142
- ],
143
- whitespace: [
144
- [/[ \t\r\n]+/, ""],
145
- [/\/\*/, "comment", "@comment"],
146
- [/\/\/.*$/, "comment"],
147
- [/#.*$/, "comment"]
148
- ],
149
- comment: [
150
- [/[^\/*]+/, "comment"],
151
- [/\*\//, "comment", "@pop"],
152
- [/[\/*]/, "comment"]
153
- ],
154
- string: [
155
- [/\$\{/, { token: "delimiter", next: "@stringExpression" }],
156
- [/[^\\"\$]+/, "string"],
157
- [/@escapes/, "string.escape"],
158
- [/\\./, "string.escape.invalid"],
159
- [/"/, "string", "@popall"]
160
- ],
161
- stringInsideExpression: [
162
- [/[^\\"]+/, "string"],
163
- [/@escapes/, "string.escape"],
164
- [/\\./, "string.escape.invalid"],
165
- [/"/, "string", "@pop"]
166
- ],
167
- stringExpression: [
168
- [/\}/, { token: "delimiter", next: "@pop" }],
169
- [/"/, "string", "@stringInsideExpression"],
170
- { include: "@terraform" }
171
- ]
172
- }
173
- };
174
- export {
175
- e as conf,
176
- t as language
177
- };