act-plus 1.1.18 → 1.1.19

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 (107) hide show
  1. package/act-plus.js +5 -3
  2. package/act-plus.umd.cjs +1729 -16
  3. package/assets/editor.worker-df55e1ff.js +8 -0
  4. package/assets/ts.worker-e151483b.js +33972 -0
  5. package/lib/abap-1354785f.js +1314 -0
  6. package/lib/apex-279d4f27.js +315 -0
  7. package/lib/azcli-ba812c55.js +74 -0
  8. package/lib/bat-4d77495d.js +95 -0
  9. package/lib/bicep-7b240724.js +108 -0
  10. package/lib/cameligo-5d2daeb8.js +168 -0
  11. package/lib/clojure-b7ea12a3.js +754 -0
  12. package/lib/coffee-1a8cfbf4.js +228 -0
  13. package/lib/{configBtns-58f43801.js → configBtns-3772e689.js} +2 -2
  14. package/lib/{configFileds-b537fd99.js → configFileds-d0911c87.js} +3 -3
  15. package/lib/{configForm-b9e9ca98.js → configForm-ae4b725e.js} +1 -1
  16. package/lib/{configTable-bdb56a9e.js → configTable-879063d4.js} +31 -24
  17. package/lib/cpp-642b10c4.js +387 -0
  18. package/lib/csharp-d987ddad.js +320 -0
  19. package/lib/csp-96407af0.js +57 -0
  20. package/lib/css-5dd354ac.js +186 -0
  21. package/lib/cssMode-6d02ab39.js +1448 -0
  22. package/lib/cypher-11e5a4b6.js +262 -0
  23. package/lib/dart-5d209f63.js +270 -0
  24. package/lib/{dialogAddField-b60d14ab.js → dialogAddField-d6b18048.js} +69 -69
  25. package/lib/{dialogConfigBtn-f5f8703d.js → dialogConfigBtn-75e37dc9.js} +74 -78
  26. package/lib/dockerfile-8739cff7.js +132 -0
  27. package/lib/ecl-a20c5155.js +454 -0
  28. package/lib/elixir-8b028584.js +467 -0
  29. package/lib/{enum-99519ce0.js → enum-cc58b8fe.js} +25 -22
  30. package/lib/flow9-0dea2e73.js +141 -0
  31. package/lib/freemarker2-205877bf.js +646 -0
  32. package/lib/fsharp-49a70fad.js +210 -0
  33. package/lib/go-46e3b371.js +208 -0
  34. package/lib/graphql-51a577e5.js +141 -0
  35. package/lib/handlebars-2d920faa.js +394 -0
  36. package/lib/hcl-56b85754.js +177 -0
  37. package/lib/html-6b99359b.js +284 -0
  38. package/lib/htmlMode-498c17d9.js +1458 -0
  39. package/lib/index-68063c4c.js +96 -0
  40. package/lib/index-7c264775.js +192 -0
  41. package/lib/index-a36b2284.js +304 -0
  42. package/lib/index-aff95ab9.js +63 -0
  43. package/lib/index-da0a0bfe.js +162173 -0
  44. package/lib/index-e2f2023d.js +35 -0
  45. package/lib/{index-9e3ed108.js → index-fb2754ee.js} +1 -1
  46. package/lib/ini-1d58d82f.js +68 -0
  47. package/lib/java-cd017f60.js +221 -0
  48. package/lib/javascript-5e40fe11.js +78 -0
  49. package/lib/jsonMode-2a821e9e.js +1869 -0
  50. package/lib/julia-a0caf483.js +496 -0
  51. package/lib/kotlin-c6e52a56.js +245 -0
  52. package/lib/less-718543b4.js +168 -0
  53. package/lib/lexon-5e6e7a44.js +151 -0
  54. package/lib/liquid-dc78aaf7.js +241 -0
  55. package/lib/lua-f159160b.js +157 -0
  56. package/lib/m3-aadaf771.js +210 -0
  57. package/lib/markdown-9b448c46.js +202 -0
  58. package/lib/mips-161e49ce.js +194 -0
  59. package/lib/msdax-f65cb1e6.js +377 -0
  60. package/lib/mysql-24549dd1.js +875 -0
  61. package/lib/objective-c-e129a5ca.js +188 -0
  62. package/lib/pascal-4ccdf5ce.js +245 -0
  63. package/lib/pascaligo-a9603dcd.js +158 -0
  64. package/lib/perl-ba1fb97a.js +599 -0
  65. package/lib/pgsql-89978310.js +843 -0
  66. package/lib/php-987b9d87.js +471 -0
  67. package/lib/pla-96c2695d.js +131 -0
  68. package/lib/postiats-7b52ebac.js +544 -0
  69. package/lib/powerquery-8954ec26.js +890 -0
  70. package/lib/powershell-f00d0274.js +233 -0
  71. package/lib/protobuf-3eb85f80.js +422 -0
  72. package/lib/pug-6fab415a.js +393 -0
  73. package/lib/python-e55144b2.js +262 -0
  74. package/lib/qsharp-4792f872.js +282 -0
  75. package/lib/r-630f5d6b.js +245 -0
  76. package/lib/razor-1fb88f53.js +515 -0
  77. package/lib/redis-276b8288.js +298 -0
  78. package/lib/redshift-520a7359.js +806 -0
  79. package/lib/restructuredtext-4676a3fc.js +162 -0
  80. package/lib/ruby-764137cd.js +444 -0
  81. package/lib/rust-97f8f6e1.js +337 -0
  82. package/lib/sb-8c22f14c.js +110 -0
  83. package/lib/scala-c68c650c.js +353 -0
  84. package/lib/scheme-e6a52cb0.js +114 -0
  85. package/lib/scss-45104c77.js +244 -0
  86. package/lib/shell-09452d42.js +224 -0
  87. package/lib/solidity-d4979008.js +1351 -0
  88. package/lib/sophia-21995caf.js +190 -0
  89. package/lib/sparql-5088743c.js +193 -0
  90. package/lib/sql-63ec8e76.js +818 -0
  91. package/lib/st-fa9ab362.js +414 -0
  92. package/lib/swift-abdf1835.js +315 -0
  93. package/lib/systemverilog-a4f858ed.js +556 -0
  94. package/lib/tcl-8adf937f.js +232 -0
  95. package/lib/tsMode-8d12d976.js +792 -0
  96. package/lib/twig-404eb73e.js +323 -0
  97. package/lib/typescript-97ed77ae.js +330 -0
  98. package/lib/vb-e21e8153.js +364 -0
  99. package/lib/xml-e843c667.js +98 -0
  100. package/lib/yaml-62bcf3fa.js +187 -0
  101. package/package.json +1 -1
  102. package/style.css +1 -1
  103. package/lib/index-14f7a543.js +0 -165
  104. package/lib/index-1f8ed34b.js +0 -11178
  105. package/lib/index-56217e0e.js +0 -96
  106. package/lib/index-8cb975d8.js +0 -297
  107. package/lib/index-9a1abd6b.js +0 -139
@@ -0,0 +1,394 @@
1
+ import { m as l } from "./index-da0a0bfe.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
+ };
@@ -0,0 +1,177 @@
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
+ };