monacozen 0.0.1 → 0.1.0

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 (109) hide show
  1. package/README.md +124 -0
  2. package/assets/antimono-ClsI0fxy.js +5 -0
  3. package/assets/antimono-zBXMptjq.css +1 -0
  4. package/assets/azcli-ue5GhsHI.js +55 -0
  5. package/assets/bat-C6DzPBcU.js +125 -0
  6. package/assets/bicep-B6UDBWZN.js +220 -0
  7. package/assets/cameligo-BoKy-zSd.js +191 -0
  8. package/assets/clojure-D8WHGr6v.js +148 -0
  9. package/assets/coffee-C16Mnhbm.js +262 -0
  10. package/assets/cpp-_HbkGdoj.js +232 -0
  11. package/assets/csharp-DeGXkEgi.js +262 -0
  12. package/assets/csp-DGVEba9U.js +48 -0
  13. package/assets/css-DmO2GtiT.js +286 -0
  14. package/assets/css.worker-B59bB4vF.js +6 -0
  15. package/assets/css.worker-zFzGcGyJ.js +96 -0
  16. package/assets/cssMode-B-yiAIn5.js +65 -0
  17. package/assets/cypher-5654EJL_.js +214 -0
  18. package/assets/dart-BjXVSQM-.js +238 -0
  19. package/assets/dist-Bx9hOuoB.js +624 -0
  20. package/assets/dockerfile-DSA8TJLS.js +193 -0
  21. package/assets/ecl-DoDWSDGs.js +228 -0
  22. package/assets/editor.api-C_6h_pYy.js +83476 -0
  23. package/assets/editorWebWorkerMain-Cpqca1A3.js +6 -0
  24. package/assets/editorWebWorkerMain-_4oyTYIl.js +33 -0
  25. package/assets/elixir-CzC02SL7.js +525 -0
  26. package/assets/freemarker2-Jvnudjht.js +718 -0
  27. package/assets/fsharp-DRGCXPNW.js +149 -0
  28. package/assets/go-CyErB8P9.js +167 -0
  29. package/assets/graphql-CNnvnjR8.js +176 -0
  30. package/assets/handlebars-B9HHtHT5.js +412 -0
  31. package/assets/hcl-D4a6HBjk.js +221 -0
  32. package/assets/html-B5_5MvV-.js +333 -0
  33. package/assets/html.worker-Czi9KUKj.js +6 -0
  34. package/assets/html.worker-D4M1xqlZ.js +509 -0
  35. package/assets/htmlMode-DcETbRqN.js +74 -0
  36. package/assets/ini-CpSjysbn.js +96 -0
  37. package/assets/java-DkRrYYRp.js +175 -0
  38. package/assets/javascript-Da2MNB2t.js +20 -0
  39. package/assets/json.worker-D3-21m4I.js +65 -0
  40. package/assets/json.worker-pkLWnKxn.js +6 -0
  41. package/assets/jsonMode-BtwFVp_X.js +450 -0
  42. package/assets/julia-DXDdnD4p.js +416 -0
  43. package/assets/kotlin-BNDyMshT.js +184 -0
  44. package/assets/less-3yDKfG4U.js +244 -0
  45. package/assets/liquid-DCciKNzb.js +199 -0
  46. package/assets/lspLanguageFeatures-CAn_K3Js.js +1455 -0
  47. package/assets/lua-CqDy9oHE.js +202 -0
  48. package/assets/m3-DyBtJGhR.js +195 -0
  49. package/assets/main-16cPxgwS.js +107 -0
  50. package/assets/main-CB71Lf5W.js +129 -0
  51. package/assets/main-HEYSEiwe.js +66 -0
  52. package/assets/markdown-DIkeztiD.js +264 -0
  53. package/assets/mdx-BcOG7QFm.js +329 -0
  54. package/assets/mips-BUbWxz0r.js +130 -0
  55. package/assets/monaco-BMsB0TPD.js +39430 -0
  56. package/assets/monaco-ffd8b062.css +3 -0
  57. package/assets/msdax-95fojGvn.js +158 -0
  58. package/assets/mysql-CX3tETwr.js +170 -0
  59. package/assets/objective-c-CK2i53vc.js +146 -0
  60. package/assets/pascal-wnGRqmNG.js +178 -0
  61. package/assets/pascaligo-DR2NqTqc.js +203 -0
  62. package/assets/perl-DXuijcFO.js +318 -0
  63. package/assets/pgsql-BFvD7ctB.js +160 -0
  64. package/assets/php-FZHoZ5C_.js +473 -0
  65. package/assets/pla-Cmb_VVG6.js +148 -0
  66. package/assets/postiats-DUwtyBVk.js +506 -0
  67. package/assets/powerquery-wUlwxvME.js +192 -0
  68. package/assets/powershell-Wf4X7WOf.js +213 -0
  69. package/assets/protobuf-CcMDFVG6.js +661 -0
  70. package/assets/pug-OPBd_9cN.js +302 -0
  71. package/assets/python-D2Z49Cw8.js +254 -0
  72. package/assets/qsharp-C4P6iWbB.js +145 -0
  73. package/assets/r-FHjiK9Ff.js +191 -0
  74. package/assets/razor-CfcSDTvR.js +519 -0
  75. package/assets/redis-CLJ_Tkzp.js +125 -0
  76. package/assets/redshift-Cn0YgnO8.js +160 -0
  77. package/assets/restructuredtext-Ckzl4aRZ.js +289 -0
  78. package/assets/ruby-Dhjv9xsd.js +529 -0
  79. package/assets/rust-Bq7le2bN.js +180 -0
  80. package/assets/scala-Bth6QY64.js +553 -0
  81. package/assets/scheme-BHXdn3HT.js +172 -0
  82. package/assets/scss-DVPfVfp2.js +419 -0
  83. package/assets/shell-DYY2DoAm.js +225 -0
  84. package/assets/solidity-C2dWya5C.js +149 -0
  85. package/assets/sophia-BdPli0VA.js +149 -0
  86. package/assets/sparql-Ca6NBL_y.js +126 -0
  87. package/assets/sql-CE5EfRV1.js +173 -0
  88. package/assets/st-BKcHiAlg.js +478 -0
  89. package/assets/swift-v0LuaFKN.js +215 -0
  90. package/assets/systemverilog-BRC61WOW.js +300 -0
  91. package/assets/tcl-Xx48oN1j.js +225 -0
  92. package/assets/ts.worker-CokkJ1Lk.js +6 -0
  93. package/assets/ts.worker-De3FAST6.js +67741 -0
  94. package/assets/tsMode-cdcRizUc.js +567 -0
  95. package/assets/twig-Dq5WyzaF.js +390 -0
  96. package/assets/typescript-B25ZZJLy.js +257 -0
  97. package/assets/typespec-DVZXVZWY.js +236 -0
  98. package/assets/vb--Ows3SAS.js +262 -0
  99. package/assets/wgsl-gwRTfDFE.js +147 -0
  100. package/assets/workers-qpP7-_JR.js +48 -0
  101. package/assets/xml-BD6eVsMx.js +130 -0
  102. package/assets/yaml-unVkvP57.js +223 -0
  103. package/lib.d.ts +8379 -0
  104. package/package.json +1 -1
  105. package/src/main.js +24 -0
  106. package/index.d.ts +0 -6
  107. package/index.js +0 -1
  108. package/readme.md +0 -1
  109. /package/{license.txt → LICENSE} +0 -0
@@ -0,0 +1,718 @@
1
+ import { m as e } from "./editor.api-C_6h_pYy.js";
2
+ //#region node_modules/.bun/monaco-editor@0.56.0/node_modules/monaco-editor/esm/vs/languages/definitions/freemarker2/freemarker2.js
3
+ var t = [
4
+ "assign",
5
+ "flush",
6
+ "ftl",
7
+ "return",
8
+ "global",
9
+ "import",
10
+ "include",
11
+ "break",
12
+ "continue",
13
+ "local",
14
+ "nested",
15
+ "nt",
16
+ "setting",
17
+ "stop",
18
+ "t",
19
+ "lt",
20
+ "rt",
21
+ "fallback"
22
+ ], n = [
23
+ "attempt",
24
+ "autoesc",
25
+ "autoEsc",
26
+ "compress",
27
+ "comment",
28
+ "escape",
29
+ "noescape",
30
+ "function",
31
+ "if",
32
+ "list",
33
+ "items",
34
+ "sep",
35
+ "macro",
36
+ "noparse",
37
+ "noParse",
38
+ "noautoesc",
39
+ "noAutoEsc",
40
+ "outputformat",
41
+ "switch",
42
+ "visit",
43
+ "recurse"
44
+ ], r = {
45
+ close: ">",
46
+ id: "angle",
47
+ open: "<"
48
+ }, i = {
49
+ close: "\\]",
50
+ id: "bracket",
51
+ open: "\\["
52
+ }, a = {
53
+ close: "[>\\]]",
54
+ id: "auto",
55
+ open: "[<\\[]"
56
+ }, o = {
57
+ close: "\\}",
58
+ id: "dollar",
59
+ open1: "\\$",
60
+ open2: "\\{"
61
+ }, s = {
62
+ close: "\\]",
63
+ id: "bracket",
64
+ open1: "\\[",
65
+ open2: "="
66
+ };
67
+ function c(r) {
68
+ return {
69
+ brackets: [
70
+ ["<", ">"],
71
+ ["[", "]"],
72
+ ["(", ")"],
73
+ ["{", "}"]
74
+ ],
75
+ comments: { blockComment: [`${r.open}--`, `--${r.close}`] },
76
+ autoCloseBefore: "\n\r }]),.:;=",
77
+ autoClosingPairs: [
78
+ {
79
+ open: "{",
80
+ close: "}"
81
+ },
82
+ {
83
+ open: "[",
84
+ close: "]"
85
+ },
86
+ {
87
+ open: "(",
88
+ close: ")"
89
+ },
90
+ {
91
+ open: "\"",
92
+ close: "\"",
93
+ notIn: ["string"]
94
+ },
95
+ {
96
+ open: "'",
97
+ close: "'",
98
+ notIn: ["string"]
99
+ }
100
+ ],
101
+ surroundingPairs: [
102
+ {
103
+ open: "\"",
104
+ close: "\""
105
+ },
106
+ {
107
+ open: "'",
108
+ close: "'"
109
+ },
110
+ {
111
+ open: "{",
112
+ close: "}"
113
+ },
114
+ {
115
+ open: "[",
116
+ close: "]"
117
+ },
118
+ {
119
+ open: "(",
120
+ close: ")"
121
+ },
122
+ {
123
+ open: "<",
124
+ close: ">"
125
+ }
126
+ ],
127
+ folding: { markers: {
128
+ start: RegExp(`${r.open}#(?:${n.join("|")})([^/${r.close}]*(?!/)${r.close})[^${r.open}]*$`),
129
+ end: RegExp(`${r.open}/#(?:${n.join("|")})[\\r\\n\\t ]*>`)
130
+ } },
131
+ onEnterRules: [{
132
+ beforeText: RegExp(`${r.open}#(?!(?:${t.join("|")}))([a-zA-Z_]+)([^/${r.close}]*(?!/)${r.close})[^${r.open}]*$`),
133
+ afterText: RegExp(`^${r.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${r.close}$`),
134
+ action: { indentAction: e.IndentAction.IndentOutdent }
135
+ }, {
136
+ beforeText: RegExp(`${r.open}#(?!(?:${t.join("|")}))([a-zA-Z_]+)([^/${r.close}]*(?!/)${r.close})[^${r.open}]*$`),
137
+ action: { indentAction: e.IndentAction.Indent }
138
+ }]
139
+ };
140
+ }
141
+ function l() {
142
+ return {
143
+ brackets: [
144
+ ["<", ">"],
145
+ ["[", "]"],
146
+ ["(", ")"],
147
+ ["{", "}"]
148
+ ],
149
+ autoCloseBefore: "\n\r }]),.:;=",
150
+ autoClosingPairs: [
151
+ {
152
+ open: "{",
153
+ close: "}"
154
+ },
155
+ {
156
+ open: "[",
157
+ close: "]"
158
+ },
159
+ {
160
+ open: "(",
161
+ close: ")"
162
+ },
163
+ {
164
+ open: "\"",
165
+ close: "\"",
166
+ notIn: ["string"]
167
+ },
168
+ {
169
+ open: "'",
170
+ close: "'",
171
+ notIn: ["string"]
172
+ }
173
+ ],
174
+ surroundingPairs: [
175
+ {
176
+ open: "\"",
177
+ close: "\""
178
+ },
179
+ {
180
+ open: "'",
181
+ close: "'"
182
+ },
183
+ {
184
+ open: "{",
185
+ close: "}"
186
+ },
187
+ {
188
+ open: "[",
189
+ close: "]"
190
+ },
191
+ {
192
+ open: "(",
193
+ close: ")"
194
+ },
195
+ {
196
+ open: "<",
197
+ close: ">"
198
+ }
199
+ ],
200
+ folding: { markers: {
201
+ start: RegExp(`[<\\[]#(?:${n.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),
202
+ end: RegExp(`[<\\[]/#(?:${n.join("|")})[\\r\\n\\t ]*>`)
203
+ } },
204
+ onEnterRules: [{
205
+ beforeText: RegExp(`[<\\[]#(?!(?:${t.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),
206
+ afterText: /* @__PURE__ */ RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),
207
+ action: { indentAction: e.IndentAction.IndentOutdent }
208
+ }, {
209
+ beforeText: RegExp(`[<\\[]#(?!(?:${t.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),
210
+ action: { indentAction: e.IndentAction.Indent }
211
+ }]
212
+ };
213
+ }
214
+ function u(e, t) {
215
+ let n = `_${e.id}_${t.id}`, r = (e) => e.replace(/__id__/g, n), i = (e) => {
216
+ let t = e.source.replace(/__id__/g, n);
217
+ return new RegExp(t, e.flags);
218
+ };
219
+ return {
220
+ unicode: !0,
221
+ includeLF: !1,
222
+ start: r("default__id__"),
223
+ ignoreCase: !1,
224
+ defaultToken: "invalid",
225
+ tokenPostfix: ".freemarker2",
226
+ brackets: [
227
+ {
228
+ open: "{",
229
+ close: "}",
230
+ token: "delimiter.curly"
231
+ },
232
+ {
233
+ open: "[",
234
+ close: "]",
235
+ token: "delimiter.square"
236
+ },
237
+ {
238
+ open: "(",
239
+ close: ")",
240
+ token: "delimiter.parenthesis"
241
+ },
242
+ {
243
+ open: "<",
244
+ close: ">",
245
+ token: "delimiter.angle"
246
+ }
247
+ ],
248
+ [r("open__id__")]: new RegExp(e.open),
249
+ [r("close__id__")]: new RegExp(e.close),
250
+ [r("iOpen1__id__")]: new RegExp(t.open1),
251
+ [r("iOpen2__id__")]: new RegExp(t.open2),
252
+ [r("iClose__id__")]: new RegExp(t.close),
253
+ [r("startTag__id__")]: i(/(@open__id__)(#)/),
254
+ [r("endTag__id__")]: i(/(@open__id__)(\/#)/),
255
+ [r("startOrEndTag__id__")]: i(/(@open__id__)(\/?#)/),
256
+ [r("closeTag1__id__")]: i(/((?:@blank)*)(@close__id__)/),
257
+ [r("closeTag2__id__")]: i(/((?:@blank)*\/?)(@close__id__)/),
258
+ blank: /[ \t\n\r]/,
259
+ keywords: [
260
+ "false",
261
+ "true",
262
+ "in",
263
+ "as",
264
+ "using"
265
+ ],
266
+ directiveStartCloseTag1: /attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,
267
+ directiveStartCloseTag2: /else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,
268
+ directiveStartBlank: /if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,
269
+ directiveEndCloseTag1: /if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,
270
+ escapedChar: /\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,
271
+ asciiDigit: /[0-9]/,
272
+ integer: /[0-9]+/,
273
+ nonEscapedIdStartChar: /[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
274
+ escapedIdChar: /\\[\-\.:#]/,
275
+ idStartChar: /(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,
276
+ id: /(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,
277
+ specialHashKeys: /\*\*|\*|false|true|in|as|using/,
278
+ namedSymbols: /&lt;=|&gt;=|\\lte|\\lt|&lt;|\\gte|\\gt|&gt;|&amp;&amp;|\\and|-&gt;|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,
279
+ arrows: ["->", "-&gt;"],
280
+ delimiters: [
281
+ ";",
282
+ ":",
283
+ ",",
284
+ "."
285
+ ],
286
+ stringOperators: [
287
+ "lte",
288
+ "lt",
289
+ "gte",
290
+ "gt"
291
+ ],
292
+ noParseTags: [
293
+ "noparse",
294
+ "noParse",
295
+ "comment"
296
+ ],
297
+ tokenizer: {
298
+ [r("default__id__")]: [{ include: r("@directive_token__id__") }, { include: r("@interpolation_and_text_token__id__") }],
299
+ [r("fmExpression__id__.directive")]: [
300
+ { include: r("@blank_and_expression_comment_token__id__") },
301
+ { include: r("@directive_end_token__id__") },
302
+ { include: r("@expression_token__id__") }
303
+ ],
304
+ [r("fmExpression__id__.interpolation")]: [
305
+ { include: r("@blank_and_expression_comment_token__id__") },
306
+ { include: r("@expression_token__id__") },
307
+ { include: r("@greater_operators_token__id__") }
308
+ ],
309
+ [r("inParen__id__.plain")]: [
310
+ { include: r("@blank_and_expression_comment_token__id__") },
311
+ { include: r("@directive_end_token__id__") },
312
+ { include: r("@expression_token__id__") }
313
+ ],
314
+ [r("inParen__id__.gt")]: [
315
+ { include: r("@blank_and_expression_comment_token__id__") },
316
+ { include: r("@expression_token__id__") },
317
+ { include: r("@greater_operators_token__id__") }
318
+ ],
319
+ [r("noSpaceExpression__id__")]: [
320
+ { include: r("@no_space_expression_end_token__id__") },
321
+ { include: r("@directive_end_token__id__") },
322
+ { include: r("@expression_token__id__") }
323
+ ],
324
+ [r("unifiedCall__id__")]: [{ include: r("@unified_call_token__id__") }],
325
+ [r("singleString__id__")]: [{ include: r("@string_single_token__id__") }],
326
+ [r("doubleString__id__")]: [{ include: r("@string_double_token__id__") }],
327
+ [r("rawSingleString__id__")]: [{ include: r("@string_single_raw_token__id__") }],
328
+ [r("rawDoubleString__id__")]: [{ include: r("@string_double_raw_token__id__") }],
329
+ [r("expressionComment__id__")]: [{ include: r("@expression_comment_token__id__") }],
330
+ [r("noParse__id__")]: [{ include: r("@no_parse_token__id__") }],
331
+ [r("terseComment__id__")]: [{ include: r("@terse_comment_token__id__") }],
332
+ [r("directive_token__id__")]: [
333
+ [i(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/), e.id === "auto" ? { cases: {
334
+ "$1==<": {
335
+ token: "@rematch",
336
+ switchTo: `@default_angle_${t.id}`
337
+ },
338
+ "$1==[": {
339
+ token: "@rematch",
340
+ switchTo: `@default_bracket_${t.id}`
341
+ }
342
+ } } : [
343
+ { token: "@brackets.directive" },
344
+ { token: "delimiter.directive" },
345
+ { cases: {
346
+ "@noParseTags": {
347
+ token: "tag",
348
+ next: r("@noParse__id__.$3")
349
+ },
350
+ "@default": { token: "tag" }
351
+ } },
352
+ { token: "delimiter.directive" },
353
+ { token: "@brackets.directive" }
354
+ ]],
355
+ [i(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/), e.id === "auto" ? { cases: {
356
+ "$1==<": {
357
+ token: "@rematch",
358
+ switchTo: `@default_angle_${t.id}`
359
+ },
360
+ "$1==[": {
361
+ token: "@rematch",
362
+ switchTo: `@default_bracket_${t.id}`
363
+ }
364
+ } } : [
365
+ { token: "@brackets.directive" },
366
+ { token: "delimiter.directive" },
367
+ { token: "tag" },
368
+ { token: "delimiter.directive" },
369
+ { token: "@brackets.directive" }
370
+ ]],
371
+ [i(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/), e.id === "auto" ? { cases: {
372
+ "$1==<": {
373
+ token: "@rematch",
374
+ switchTo: `@default_angle_${t.id}`
375
+ },
376
+ "$1==[": {
377
+ token: "@rematch",
378
+ switchTo: `@default_bracket_${t.id}`
379
+ }
380
+ } } : [
381
+ { token: "@brackets.directive" },
382
+ { token: "delimiter.directive" },
383
+ { token: "tag" },
384
+ {
385
+ token: "",
386
+ next: r("@fmExpression__id__.directive")
387
+ }
388
+ ]],
389
+ [i(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/), e.id === "auto" ? { cases: {
390
+ "$1==<": {
391
+ token: "@rematch",
392
+ switchTo: `@default_angle_${t.id}`
393
+ },
394
+ "$1==[": {
395
+ token: "@rematch",
396
+ switchTo: `@default_bracket_${t.id}`
397
+ }
398
+ } } : [
399
+ { token: "@brackets.directive" },
400
+ { token: "delimiter.directive" },
401
+ { token: "tag" },
402
+ { token: "delimiter.directive" },
403
+ { token: "@brackets.directive" }
404
+ ]],
405
+ [i(/(@open__id__)(@)/), e.id === "auto" ? { cases: {
406
+ "$1==<": {
407
+ token: "@rematch",
408
+ switchTo: `@default_angle_${t.id}`
409
+ },
410
+ "$1==[": {
411
+ token: "@rematch",
412
+ switchTo: `@default_bracket_${t.id}`
413
+ }
414
+ } } : [{ token: "@brackets.directive" }, {
415
+ token: "delimiter.directive",
416
+ next: r("@unifiedCall__id__")
417
+ }]],
418
+ [i(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/), [
419
+ { token: "@brackets.directive" },
420
+ { token: "delimiter.directive" },
421
+ { token: "tag" },
422
+ { token: "delimiter.directive" },
423
+ { token: "@brackets.directive" }
424
+ ]],
425
+ [i(/(@open__id__)#--/), e.id === "auto" ? { cases: {
426
+ "$1==<": {
427
+ token: "@rematch",
428
+ switchTo: `@default_angle_${t.id}`
429
+ },
430
+ "$1==[": {
431
+ token: "@rematch",
432
+ switchTo: `@default_bracket_${t.id}`
433
+ }
434
+ } } : {
435
+ token: "comment",
436
+ next: r("@terseComment__id__")
437
+ }],
438
+ [i(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/), e.id === "auto" ? { cases: {
439
+ "$1==<": {
440
+ token: "@rematch",
441
+ switchTo: `@default_angle_${t.id}`
442
+ },
443
+ "$1==[": {
444
+ token: "@rematch",
445
+ switchTo: `@default_bracket_${t.id}`
446
+ }
447
+ } } : [
448
+ { token: "@brackets.directive" },
449
+ { token: "delimiter.directive" },
450
+ {
451
+ token: "tag.invalid",
452
+ next: r("@fmExpression__id__.directive")
453
+ }
454
+ ]]
455
+ ],
456
+ [r("interpolation_and_text_token__id__")]: [[i(/(@iOpen1__id__)(@iOpen2__id__)/), [{ token: t.id === "bracket" ? "@brackets.interpolation" : "delimiter.interpolation" }, {
457
+ token: t.id === "bracket" ? "delimiter.interpolation" : "@brackets.interpolation",
458
+ next: r("@fmExpression__id__.interpolation")
459
+ }]], [/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/, { token: "source" }]],
460
+ [r("string_single_token__id__")]: [
461
+ [/[^'\\]/, { token: "string" }],
462
+ [/@escapedChar/, { token: "string.escape" }],
463
+ [/'/, {
464
+ token: "string",
465
+ next: "@pop"
466
+ }]
467
+ ],
468
+ [r("string_double_token__id__")]: [
469
+ [/[^"\\]/, { token: "string" }],
470
+ [/@escapedChar/, { token: "string.escape" }],
471
+ [/"/, {
472
+ token: "string",
473
+ next: "@pop"
474
+ }]
475
+ ],
476
+ [r("string_single_raw_token__id__")]: [[/[^']+/, { token: "string.raw" }], [/'/, {
477
+ token: "string.raw",
478
+ next: "@pop"
479
+ }]],
480
+ [r("string_double_raw_token__id__")]: [[/[^"]+/, { token: "string.raw" }], [/"/, {
481
+ token: "string.raw",
482
+ next: "@pop"
483
+ }]],
484
+ [r("expression_token__id__")]: [
485
+ [/(r?)(['"])/, { cases: {
486
+ "r'": [{ token: "keyword" }, {
487
+ token: "string.raw",
488
+ next: r("@rawSingleString__id__")
489
+ }],
490
+ "r\"": [{ token: "keyword" }, {
491
+ token: "string.raw",
492
+ next: r("@rawDoubleString__id__")
493
+ }],
494
+ "'": [{ token: "source" }, {
495
+ token: "string",
496
+ next: r("@singleString__id__")
497
+ }],
498
+ "\"": [{ token: "source" }, {
499
+ token: "string",
500
+ next: r("@doubleString__id__")
501
+ }]
502
+ } }],
503
+ [/(?:@integer)(?:\.(?:@integer))?/, { cases: {
504
+ "(?:@integer)": { token: "number" },
505
+ "@default": { token: "number.float" }
506
+ } }],
507
+ [/(\.)(@blank*)(@specialHashKeys)/, [
508
+ { token: "delimiter" },
509
+ { token: "" },
510
+ { token: "identifier" }
511
+ ]],
512
+ [/(?:@namedSymbols)/, { cases: {
513
+ "@arrows": { token: "meta.arrow" },
514
+ "@delimiters": { token: "delimiter" },
515
+ "@default": { token: "operators" }
516
+ } }],
517
+ [/@id/, { cases: {
518
+ "@keywords": { token: "keyword.$0" },
519
+ "@stringOperators": { token: "operators" },
520
+ "@default": { token: "identifier" }
521
+ } }],
522
+ [/[\[\]\(\)\{\}]/, { cases: {
523
+ "\\[": { cases: {
524
+ "$S2==gt": {
525
+ token: "@brackets",
526
+ next: r("@inParen__id__.gt")
527
+ },
528
+ "@default": {
529
+ token: "@brackets",
530
+ next: r("@inParen__id__.plain")
531
+ }
532
+ } },
533
+ "\\]": { cases: {
534
+ ...t.id === "bracket" ? { "$S2==interpolation": {
535
+ token: "@brackets.interpolation",
536
+ next: "@popall"
537
+ } } : {},
538
+ ...e.id === "bracket" ? { "$S2==directive": {
539
+ token: "@brackets.directive",
540
+ next: "@popall"
541
+ } } : {},
542
+ [r("$S1==inParen__id__")]: {
543
+ token: "@brackets",
544
+ next: "@pop"
545
+ },
546
+ "@default": { token: "@brackets" }
547
+ } },
548
+ "\\(": {
549
+ token: "@brackets",
550
+ next: r("@inParen__id__.gt")
551
+ },
552
+ "\\)": { cases: {
553
+ [r("$S1==inParen__id__")]: {
554
+ token: "@brackets",
555
+ next: "@pop"
556
+ },
557
+ "@default": { token: "@brackets" }
558
+ } },
559
+ "\\{": { cases: {
560
+ "$S2==gt": {
561
+ token: "@brackets",
562
+ next: r("@inParen__id__.gt")
563
+ },
564
+ "@default": {
565
+ token: "@brackets",
566
+ next: r("@inParen__id__.plain")
567
+ }
568
+ } },
569
+ "\\}": { cases: {
570
+ ...t.id === "bracket" ? {} : { "$S2==interpolation": {
571
+ token: "@brackets.interpolation",
572
+ next: "@popall"
573
+ } },
574
+ [r("$S1==inParen__id__")]: {
575
+ token: "@brackets",
576
+ next: "@pop"
577
+ },
578
+ "@default": { token: "@brackets" }
579
+ } }
580
+ } }],
581
+ [/\$\{/, { token: "delimiter.invalid" }]
582
+ ],
583
+ [r("blank_and_expression_comment_token__id__")]: [[/(?:@blank)+/, { token: "" }], [/[<\[][#!]--/, {
584
+ token: "comment",
585
+ next: r("@expressionComment__id__")
586
+ }]],
587
+ [r("directive_end_token__id__")]: [[/>/, e.id === "bracket" ? { token: "operators" } : {
588
+ token: "@brackets.directive",
589
+ next: "@popall"
590
+ }], [i(/(\/)(@close__id__)/), [{ token: "delimiter.directive" }, {
591
+ token: "@brackets.directive",
592
+ next: "@popall"
593
+ }]]],
594
+ [r("greater_operators_token__id__")]: [[/>/, { token: "operators" }], [/>=/, { token: "operators" }]],
595
+ [r("no_space_expression_end_token__id__")]: [[/(?:@blank)+/, {
596
+ token: "",
597
+ switchTo: r("@fmExpression__id__.directive")
598
+ }]],
599
+ [r("unified_call_token__id__")]: [
600
+ [/(@id)((?:@blank)+)/, [{ token: "tag" }, {
601
+ token: "",
602
+ next: r("@fmExpression__id__.directive")
603
+ }]],
604
+ [i(/(@id)(\/?)(@close__id__)/), [
605
+ { token: "tag" },
606
+ { token: "delimiter.directive" },
607
+ {
608
+ token: "@brackets.directive",
609
+ next: "@popall"
610
+ }
611
+ ]],
612
+ [/./, {
613
+ token: "@rematch",
614
+ next: r("@noSpaceExpression__id__")
615
+ }]
616
+ ],
617
+ [r("no_parse_token__id__")]: [[i(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/), { cases: {
618
+ "$S2==$3": [
619
+ { token: "@brackets.directive" },
620
+ { token: "delimiter.directive" },
621
+ { token: "tag" },
622
+ { token: "" },
623
+ {
624
+ token: "@brackets.directive",
625
+ next: "@popall"
626
+ }
627
+ ],
628
+ "$S2==comment": [
629
+ { token: "comment" },
630
+ { token: "comment" },
631
+ { token: "comment" },
632
+ { token: "comment" },
633
+ { token: "comment" }
634
+ ],
635
+ "@default": [
636
+ { token: "source" },
637
+ { token: "source" },
638
+ { token: "source" },
639
+ { token: "source" },
640
+ { token: "source" }
641
+ ]
642
+ } }], [/[^<\[\-]+|[<\[\-]/, { cases: {
643
+ "$S2==comment": { token: "comment" },
644
+ "@default": { token: "source" }
645
+ } }]],
646
+ [r("expression_comment_token__id__")]: [[/--[>\]]/, {
647
+ token: "comment",
648
+ next: "@pop"
649
+ }], [/[^\->\]]+|[>\]\-]/, { token: "comment" }]],
650
+ [r("terse_comment_token__id__")]: [[i(/--(?:@close__id__)/), {
651
+ token: "comment",
652
+ next: "@popall"
653
+ }], [/[^<\[\-]+|[<\[\-]/, { token: "comment" }]]
654
+ }
655
+ };
656
+ }
657
+ function d(e) {
658
+ let t = u(r, e), n = u(i, e), o = u(a, e);
659
+ return {
660
+ ...t,
661
+ ...n,
662
+ ...o,
663
+ unicode: !0,
664
+ includeLF: !1,
665
+ start: `default_auto_${e.id}`,
666
+ ignoreCase: !1,
667
+ defaultToken: "invalid",
668
+ tokenPostfix: ".freemarker2",
669
+ brackets: [
670
+ {
671
+ open: "{",
672
+ close: "}",
673
+ token: "delimiter.curly"
674
+ },
675
+ {
676
+ open: "[",
677
+ close: "]",
678
+ token: "delimiter.square"
679
+ },
680
+ {
681
+ open: "(",
682
+ close: ")",
683
+ token: "delimiter.parenthesis"
684
+ },
685
+ {
686
+ open: "<",
687
+ close: ">",
688
+ token: "delimiter.angle"
689
+ }
690
+ ],
691
+ tokenizer: {
692
+ ...t.tokenizer,
693
+ ...n.tokenizer,
694
+ ...o.tokenizer
695
+ }
696
+ };
697
+ }
698
+ var f = {
699
+ conf: c(r),
700
+ language: u(r, o)
701
+ }, p = {
702
+ conf: c(i),
703
+ language: u(i, o)
704
+ }, m = {
705
+ conf: c(r),
706
+ language: u(r, s)
707
+ }, h = {
708
+ conf: c(i),
709
+ language: u(i, s)
710
+ }, g = {
711
+ conf: l(),
712
+ language: d(o)
713
+ }, _ = {
714
+ conf: l(),
715
+ language: d(s)
716
+ };
717
+ //#endregion
718
+ export { m as TagAngleInterpolationBracket, f as TagAngleInterpolationDollar, _ as TagAutoInterpolationBracket, g as TagAutoInterpolationDollar, h as TagBracketInterpolationBracket, p as TagBracketInterpolationDollar };