monaco-editor11 1.2.1 → 1.2.4

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 (197) hide show
  1. package/dist/assets/editor.worker-iXcRX1Tq.js +26 -0
  2. package/dist/index.d.ts +2 -3
  3. package/dist/monaco-editor11.es.js +55 -0
  4. package/dist/monaco-editor11.umd.js +1 -0
  5. package/dist/views/Home.vue.d.ts +1 -1
  6. package/dist/worker/json.worker.js +0 -0
  7. package/package.json +9 -13
  8. package/dist/abap-BmV14C8H.js +0 -1
  9. package/dist/abap-CrvW7_qN.mjs +0 -1398
  10. package/dist/apex-BAOI8p1v.mjs +0 -327
  11. package/dist/apex-vQDebnNk.js +0 -1
  12. package/dist/azcli-BlCk_UqW.mjs +0 -68
  13. package/dist/azcli-C4hxwus7.js +0 -1
  14. package/dist/bat-DPoEelVx.mjs +0 -100
  15. package/dist/bat-DYHIOgJW.js +0 -1
  16. package/dist/bicep-BJDZ3U7c.js +0 -2
  17. package/dist/bicep-Cp1F394l.mjs +0 -102
  18. package/dist/cameligo-CWqtSlQs.mjs +0 -174
  19. package/dist/cameligo-l0J6eaPU.js +0 -1
  20. package/dist/clojure-BUv_1vEn.js +0 -1
  21. package/dist/clojure-CKBp32Gf.mjs +0 -761
  22. package/dist/coffee-CDo6vc-J.mjs +0 -232
  23. package/dist/coffee-Cw3141X6.js +0 -1
  24. package/dist/cpp-CHPWmTTa.js +0 -1
  25. package/dist/cpp-DokufPgf.mjs +0 -389
  26. package/dist/csharp-0ISFInBU.js +0 -1
  27. package/dist/csharp-BQi3szM0.mjs +0 -326
  28. package/dist/csp-BSGtCCZ-.mjs +0 -53
  29. package/dist/csp-Dcy9EUAZ.js +0 -1
  30. package/dist/css-DEPFDJfb.mjs +0 -187
  31. package/dist/css-UDjyEDNM.js +0 -3
  32. package/dist/css.worker.js +0 -66
  33. package/dist/cssMode-CZvh5Cxi.js +0 -1
  34. package/dist/cssMode-D5wFpBcJ.mjs +0 -141
  35. package/dist/cypher-BoSKj8sy.js +0 -1
  36. package/dist/cypher-DAb1vOxS.mjs +0 -263
  37. package/dist/dart-75fOVMIC.js +0 -1
  38. package/dist/dart-C8p4jewR.mjs +0 -281
  39. package/dist/dockerfile-CeTDdZJB.js +0 -1
  40. package/dist/dockerfile-DP0iLFPN.mjs +0 -130
  41. package/dist/ecl-BDQHA6fi.mjs +0 -456
  42. package/dist/ecl-BZ8GfbIS.js +0 -1
  43. package/dist/editor.worker.js +0 -1
  44. package/dist/editorWorkerHost-CXSl__Sw.mjs +0 -11917
  45. package/dist/editorWorkerHost-J3OLr02l.js +0 -33
  46. package/dist/elixir-D4II6kDM.mjs +0 -569
  47. package/dist/elixir-HwUoMs-6.js +0 -1
  48. package/dist/flow9-Co-egZvn.js +0 -1
  49. package/dist/flow9-StcnL-VB.mjs +0 -142
  50. package/dist/freemarker2-0KWO0y3D.mjs +0 -982
  51. package/dist/freemarker2-CWgJ4a-p.js +0 -3
  52. package/dist/fsharp-By4FMj_K.js +0 -1
  53. package/dist/fsharp-DdUVp3EN.mjs +0 -217
  54. package/dist/go-D0-3Iavh.js +0 -1
  55. package/dist/go-D1-I258M.mjs +0 -218
  56. package/dist/graphql-DWkL3f8U.mjs +0 -151
  57. package/dist/graphql-arXy5b1U.js +0 -1
  58. package/dist/handlebars-B3DRUYqI.js +0 -1
  59. package/dist/handlebars-CtTh3MzK.mjs +0 -412
  60. package/dist/hcl-DQpT3BXv.js +0 -1
  61. package/dist/hcl-D_0MNifv.mjs +0 -183
  62. package/dist/html-Bfagd5f8.mjs +0 -301
  63. package/dist/html-Cq6ODg2A.js +0 -1
  64. package/dist/htmlMode-BCWHN8H1.js +0 -1
  65. package/dist/htmlMode-Ca4o_48E.mjs +0 -152
  66. package/dist/index-BnVmN2qp.js +0 -875
  67. package/dist/index-CcXLAo11.js +0 -1
  68. package/dist/index-D7fx9aNv.mjs +0 -498
  69. package/dist/index-DnKFAZ-F.mjs +0 -117301
  70. package/dist/index.js +0 -1
  71. package/dist/ini-C4I2-MT7.mjs +0 -71
  72. package/dist/ini-CHrdBSR6.js +0 -1
  73. package/dist/initialize-7Tsg9DJ6.mjs +0 -44
  74. package/dist/initialize-8Cpp42Fp.js +0 -1
  75. package/dist/java-DkNlCtA8.js +0 -1
  76. package/dist/java-OBvaP_SS.mjs +0 -232
  77. package/dist/javascript-C_YSapv9.js +0 -1
  78. package/dist/javascript-D2KmymLa.mjs +0 -70
  79. package/dist/json.worker.js +0 -17
  80. package/dist/jsonMode-DaXUMuRa.js +0 -1
  81. package/dist/jsonMode-Dnqj4FWW.mjs +0 -306
  82. package/dist/julia-BmDH8Kkf.mjs +0 -511
  83. package/dist/julia-D2YHJdZy.js +0 -1
  84. package/dist/kotlin-BSyr2f_w.js +0 -1
  85. package/dist/kotlin-Dhu5AGOD.mjs +0 -252
  86. package/dist/less-C8csD237.js +0 -2
  87. package/dist/less-CzmjXREq.mjs +0 -162
  88. package/dist/lexon-CV2c4pN9.mjs +0 -157
  89. package/dist/lexon-Dg5XMXM-.js +0 -1
  90. package/dist/liquid-CQtA4TA-.mjs +0 -233
  91. package/dist/liquid-Dc6vO2KK.js +0 -1
  92. package/dist/lspLanguageFeatures-CeustN1U.js +0 -2
  93. package/dist/lspLanguageFeatures-DUzyYYsS.mjs +0 -534
  94. package/dist/lua-BOoO7Ej7.js +0 -1
  95. package/dist/lua-CFY5U8qF.mjs +0 -162
  96. package/dist/m3-BL_AnZVh.mjs +0 -210
  97. package/dist/m3-Bny7JARg.js +0 -1
  98. package/dist/main-B2xgQ6G2.mjs +0 -687
  99. package/dist/main-C27EQSK2.mjs +0 -947
  100. package/dist/main-DXJICgQq.js +0 -3
  101. package/dist/main-Dt1Bdcpc.js +0 -15
  102. package/dist/markdown-CWKQPXCv.mjs +0 -229
  103. package/dist/markdown-cseWCS9n.js +0 -1
  104. package/dist/mdx-C2nK3qTe.js +0 -1
  105. package/dist/mdx-cjfOdSKt.mjs +0 -158
  106. package/dist/mips-7JuqcyJ4.js +0 -1
  107. package/dist/mips-ButYmJ5E.mjs +0 -198
  108. package/dist/monaco-editor11.css +0 -1
  109. package/dist/msdax-BmYA5eV5.js +0 -1
  110. package/dist/msdax-C3cnXqDh.mjs +0 -375
  111. package/dist/mysql-CHTrPhJ_.js +0 -1
  112. package/dist/mysql-YlSHaf6G.mjs +0 -878
  113. package/dist/objective-c-CUdbM2R7.js +0 -1
  114. package/dist/objective-c-Dwnlproe.mjs +0 -183
  115. package/dist/pascal-CNC6uGuD.js +0 -1
  116. package/dist/pascal-UzGbSWEN.mjs +0 -251
  117. package/dist/pascaligo-BEZzSZnI.js +0 -1
  118. package/dist/pascaligo-CslTgu68.mjs +0 -164
  119. package/dist/perl-JOl0jAD9.js +0 -1
  120. package/dist/perl-oj6r_mgw.mjs +0 -626
  121. package/dist/pgsql-BlC3cJBr.js +0 -1
  122. package/dist/pgsql-DSBO0Mev.mjs +0 -851
  123. package/dist/php-6ijfJ2jK.js +0 -1
  124. package/dist/php-YzCD--7j.mjs +0 -500
  125. package/dist/pla-CmylB8vQ.mjs +0 -137
  126. package/dist/pla-DB8tU9Tm.js +0 -1
  127. package/dist/postiats-BMJJQsUH.js +0 -1
  128. package/dist/postiats-CLFW5gNY.mjs +0 -907
  129. package/dist/powerquery-CmOWUvlh.mjs +0 -890
  130. package/dist/powerquery-CoLfQ6__.js +0 -1
  131. package/dist/powershell-BA5owzqH.js +0 -1
  132. package/dist/powershell-fHQcmBLK.mjs +0 -239
  133. package/dist/protobuf-DUMRTG9C.js +0 -2
  134. package/dist/protobuf-p5BArb-9.mjs +0 -420
  135. package/dist/pug-D3HDBCR9.js +0 -1
  136. package/dist/pug-gVdUDvqf.mjs +0 -402
  137. package/dist/python-BaSW5leI.js +0 -1
  138. package/dist/python-DA6ByLCZ.mjs +0 -294
  139. package/dist/qsharp-DN7Y6XhL.js +0 -1
  140. package/dist/qsharp-DnrWSUlt.mjs +0 -301
  141. package/dist/r-Bc6rlFXl.js +0 -1
  142. package/dist/r-Cv309K2z.mjs +0 -243
  143. package/dist/razor-3z9XYGZf.mjs +0 -543
  144. package/dist/razor-nQE2Djhf.js +0 -1
  145. package/dist/redis-BVBmvApp.js +0 -1
  146. package/dist/redis-DTcS4wMj.mjs +0 -302
  147. package/dist/redshift-BdEMv0YI.js +0 -1
  148. package/dist/redshift-hLxZVESM.mjs +0 -809
  149. package/dist/restructuredtext-C898lK4f.mjs +0 -174
  150. package/dist/restructuredtext-Cwgkbiv3.js +0 -1
  151. package/dist/ruby-BPqQ0TOE.js +0 -1
  152. package/dist/ruby-CgKtnJIQ.mjs +0 -511
  153. package/dist/rust-DGojqpAN.js +0 -1
  154. package/dist/rust-bj8oxVnh.mjs +0 -343
  155. package/dist/sb-B572kJZe.js +0 -1
  156. package/dist/sb-DWynz26l.mjs +0 -115
  157. package/dist/scala-BL5z1UEd.mjs +0 -370
  158. package/dist/scala-CDQ1h1Nd.js +0 -1
  159. package/dist/scheme-CgaAfqMQ.js +0 -1
  160. package/dist/scheme-DUJsH6VU.mjs +0 -108
  161. package/dist/scss-CxjmhvaL.mjs +0 -262
  162. package/dist/scss-DZHIl239.js +0 -3
  163. package/dist/shell-D14Zs1dF.mjs +0 -221
  164. package/dist/shell-D5kOdfAA.js +0 -1
  165. package/dist/solidity-D6vCwnFo.js +0 -1
  166. package/dist/solidity-WyRm-BGK.mjs +0 -1367
  167. package/dist/sophia-BJdevZpo.js +0 -1
  168. package/dist/sophia-CKk-_Oa5.mjs +0 -199
  169. package/dist/sparql-DHtmINMZ.mjs +0 -201
  170. package/dist/sparql-v4dsLpAQ.js +0 -1
  171. package/dist/sql-Dqaj5JHC.mjs +0 -853
  172. package/dist/sql-RAt0uxGh.js +0 -1
  173. package/dist/st-Bj2IIaop.mjs +0 -416
  174. package/dist/st-CjwpLApO.js +0 -1
  175. package/dist/swift-BcIVfYEa.js +0 -3
  176. package/dist/swift-DwxP72iM.mjs +0 -312
  177. package/dist/systemverilog-CX2A8v2w.js +0 -1
  178. package/dist/systemverilog-D7wJfuql.mjs +0 -576
  179. package/dist/tcl-0ApMt-eC.mjs +0 -232
  180. package/dist/tcl-CCvdS1Ng.js +0 -1
  181. package/dist/ts.worker.js +0 -67706
  182. package/dist/tsMode-CieVaThB.js +0 -11
  183. package/dist/tsMode-pbVGEqHg.mjs +0 -946
  184. package/dist/twig-DxwbdmvQ.mjs +0 -392
  185. package/dist/twig-KWJe-gee.js +0 -1
  186. package/dist/typescript-CL7lZGgL.mjs +0 -336
  187. package/dist/typescript-D-fgoGBJ.js +0 -1
  188. package/dist/typespec-Fd-JwSuS.mjs +0 -117
  189. package/dist/typespec-gb5rMy4D.js +0 -1
  190. package/dist/vb-CxuyYE1I.mjs +0 -372
  191. package/dist/vb-D2rfixXK.js +0 -1
  192. package/dist/wgsl-DoEGc31J.mjs +0 -439
  193. package/dist/wgsl-Dpy8Oyoq.js +0 -298
  194. package/dist/xml-Dm8zU0Zq.mjs +0 -88
  195. package/dist/xml-luJ1w-__.js +0 -1
  196. package/dist/yaml-DDKFPb37.mjs +0 -199
  197. package/dist/yaml-DZkx0RTO.js +0 -1
@@ -1,392 +0,0 @@
1
- const t = {
2
- wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
3
- comments: {
4
- blockComment: ["{#", "#}"]
5
- },
6
- brackets: [
7
- ["{#", "#}"],
8
- ["{%", "%}"],
9
- ["{{", "}}"],
10
- ["(", ")"],
11
- ["[", "]"],
12
- // HTML
13
- ["<!--", "-->"],
14
- ["<", ">"]
15
- ],
16
- autoClosingPairs: [
17
- { open: "{# ", close: " #}" },
18
- { open: "{% ", close: " %}" },
19
- { open: "{{ ", close: " }}" },
20
- { open: "[", close: "]" },
21
- { open: "(", close: ")" },
22
- { open: '"', close: '"' },
23
- { open: "'", close: "'" }
24
- ],
25
- surroundingPairs: [
26
- { open: '"', close: '"' },
27
- { open: "'", close: "'" },
28
- // HTML
29
- { open: "<", close: ">" }
30
- ]
31
- }, e = {
32
- defaultToken: "",
33
- tokenPostfix: "",
34
- ignoreCase: !0,
35
- keywords: [
36
- // (opening) tags
37
- "apply",
38
- "autoescape",
39
- "block",
40
- "deprecated",
41
- "do",
42
- "embed",
43
- "extends",
44
- "flush",
45
- "for",
46
- "from",
47
- "if",
48
- "import",
49
- "include",
50
- "macro",
51
- "sandbox",
52
- "set",
53
- "use",
54
- "verbatim",
55
- "with",
56
- // closing tags
57
- "endapply",
58
- "endautoescape",
59
- "endblock",
60
- "endembed",
61
- "endfor",
62
- "endif",
63
- "endmacro",
64
- "endsandbox",
65
- "endset",
66
- "endwith",
67
- // literals
68
- "true",
69
- "false"
70
- ],
71
- tokenizer: {
72
- root: [
73
- // whitespace
74
- [/\s+/],
75
- // Twig Tag Delimiters
76
- [/{#/, "comment.twig", "@commentState"],
77
- [/{%[-~]?/, "delimiter.twig", "@blockState"],
78
- [/{{[-~]?/, "delimiter.twig", "@variableState"],
79
- // HTML
80
- [/<!DOCTYPE/, "metatag.html", "@doctype"],
81
- [/<!--/, "comment.html", "@comment"],
82
- [/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/, ["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\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
86
- [/(<\/)((?:[\w\-]+:)?[\w\-]+)/, ["delimiter.html", { token: "tag.html", next: "@otherTag" }]],
87
- [/</, "delimiter.html"],
88
- [/[^<{]+/]
89
- // text
90
- ],
91
- /**
92
- * Comment Tag Handling
93
- */
94
- commentState: [
95
- [/#}/, "comment.twig", "@pop"],
96
- [/./, "comment.twig"]
97
- ],
98
- /**
99
- * Block Tag Handling
100
- */
101
- blockState: [
102
- [/[-~]?%}/, "delimiter.twig", "@pop"],
103
- // whitespace
104
- [/\s+/],
105
- // verbatim
106
- // Unlike other blocks, verbatim ehas its own state
107
- // transition to ensure we mark its contents as strings.
108
- [
109
- /(verbatim)(\s*)([-~]?%})/,
110
- ["keyword.twig", "", { token: "delimiter.twig", next: "@rawDataState" }]
111
- ],
112
- { include: "expression" }
113
- ],
114
- rawDataState: [
115
- // endverbatim
116
- [
117
- /({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,
118
- ["delimiter.twig", "", "keyword.twig", "", { token: "delimiter.twig", next: "@popall" }]
119
- ],
120
- [/./, "string.twig"]
121
- ],
122
- /**
123
- * Variable Tag Handling
124
- */
125
- variableState: [[/[-~]?}}/, "delimiter.twig", "@pop"], { include: "expression" }],
126
- stringState: [
127
- // closing double quoted string
128
- [/"/, "string.twig", "@pop"],
129
- // interpolation start
130
- [/#{\s*/, "string.twig", "@interpolationState"],
131
- // string part
132
- [/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/, "string.twig"]
133
- ],
134
- interpolationState: [
135
- // interpolation end
136
- [/}/, "string.twig", "@pop"],
137
- { include: "expression" }
138
- ],
139
- /**
140
- * Expression Handling
141
- */
142
- expression: [
143
- // whitespace
144
- [/\s+/],
145
- // operators - math
146
- [/\+|-|\/{1,2}|%|\*{1,2}/, "operators.twig"],
147
- // operators - logic
148
- [/(and|or|not|b-and|b-xor|b-or)(\s+)/, ["operators.twig", ""]],
149
- // operators - comparison (symbols)
150
- [/==|!=|<|>|>=|<=/, "operators.twig"],
151
- // operators - comparison (words)
152
- [/(starts with|ends with|matches)(\s+)/, ["operators.twig", ""]],
153
- // operators - containment
154
- [/(in)(\s+)/, ["operators.twig", ""]],
155
- // operators - test
156
- [/(is)(\s+)/, ["operators.twig", ""]],
157
- // operators - misc
158
- [/\||~|:|\.{1,2}|\?{1,2}/, "operators.twig"],
159
- // names
160
- [
161
- /[^\W\d][\w]*/,
162
- {
163
- cases: {
164
- "@keywords": "keyword.twig",
165
- "@default": "variable.twig"
166
- }
167
- }
168
- ],
169
- // numbers
170
- [/\d+(\.\d+)?/, "number.twig"],
171
- // punctuation
172
- [/\(|\)|\[|\]|{|}|,/, "delimiter.twig"],
173
- // strings
174
- [/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/, "string.twig"],
175
- // opening double quoted string
176
- [/"/, "string.twig", "@stringState"],
177
- // misc syntactic constructs
178
- // These are not operators per se, but for the purposes of lexical analysis we
179
- // can treat them as such.
180
- // arrow functions
181
- [/=>/, "operators.twig"],
182
- // assignment
183
- [/=/, "operators.twig"]
184
- ],
185
- /**
186
- * HTML
187
- */
188
- doctype: [
189
- [/[^>]+/, "metatag.content.html"],
190
- [/>/, "metatag.html", "@pop"]
191
- ],
192
- comment: [
193
- [/-->/, "comment.html", "@pop"],
194
- [/[^-]+/, "comment.content.html"],
195
- [/./, "comment.content.html"]
196
- ],
197
- otherTag: [
198
- [/\/?>/, "delimiter.html", "@pop"],
199
- [/"([^"]*)"/, "attribute.value.html"],
200
- [/'([^']*)'/, "attribute.value.html"],
201
- [/[\w\-]+/, "attribute.name.html"],
202
- [/=/, "delimiter.html"],
203
- [/[ \t\r\n]+/]
204
- // whitespace
205
- ],
206
- // -- BEGIN <script> tags handling
207
- // After <script
208
- script: [
209
- [/type/, "attribute.name.html", "@scriptAfterType"],
210
- [/"([^"]*)"/, "attribute.value.html"],
211
- [/'([^']*)'/, "attribute.value.html"],
212
- [/[\w\-]+/, "attribute.name.html"],
213
- [/=/, "delimiter.html"],
214
- [
215
- />/,
216
- {
217
- token: "delimiter.html",
218
- next: "@scriptEmbedded",
219
- nextEmbedded: "text/javascript"
220
- }
221
- ],
222
- [/[ \t\r\n]+/],
223
- // whitespace
224
- [
225
- /(<\/)(script\s*)(>)/,
226
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
227
- ]
228
- ],
229
- // After <script ... type
230
- scriptAfterType: [
231
- [/=/, "delimiter.html", "@scriptAfterTypeEquals"],
232
- [
233
- />/,
234
- {
235
- token: "delimiter.html",
236
- next: "@scriptEmbedded",
237
- nextEmbedded: "text/javascript"
238
- }
239
- ],
240
- // cover invalid e.g. <script type>
241
- [/[ \t\r\n]+/],
242
- // whitespace
243
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
244
- ],
245
- // After <script ... type =
246
- scriptAfterTypeEquals: [
247
- [
248
- /"([^"]*)"/,
249
- {
250
- token: "attribute.value.html",
251
- switchTo: "@scriptWithCustomType.$1"
252
- }
253
- ],
254
- [
255
- /'([^']*)'/,
256
- {
257
- token: "attribute.value.html",
258
- switchTo: "@scriptWithCustomType.$1"
259
- }
260
- ],
261
- [
262
- />/,
263
- {
264
- token: "delimiter.html",
265
- next: "@scriptEmbedded",
266
- nextEmbedded: "text/javascript"
267
- }
268
- ],
269
- // cover invalid e.g. <script type=>
270
- [/[ \t\r\n]+/],
271
- // whitespace
272
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
273
- ],
274
- // After <script ... type = $S2
275
- scriptWithCustomType: [
276
- [
277
- />/,
278
- {
279
- token: "delimiter.html",
280
- next: "@scriptEmbedded.$S2",
281
- nextEmbedded: "$S2"
282
- }
283
- ],
284
- [/"([^"]*)"/, "attribute.value.html"],
285
- [/'([^']*)'/, "attribute.value.html"],
286
- [/[\w\-]+/, "attribute.name.html"],
287
- [/=/, "delimiter.html"],
288
- [/[ \t\r\n]+/],
289
- // whitespace
290
- [/<\/script\s*>/, { token: "@rematch", next: "@pop" }]
291
- ],
292
- scriptEmbedded: [
293
- [/<\/script/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
294
- [/[^<]+/, ""]
295
- ],
296
- // -- END <script> tags handling
297
- // -- BEGIN <style> tags handling
298
- // After <style
299
- style: [
300
- [/type/, "attribute.name.html", "@styleAfterType"],
301
- [/"([^"]*)"/, "attribute.value.html"],
302
- [/'([^']*)'/, "attribute.value.html"],
303
- [/[\w\-]+/, "attribute.name.html"],
304
- [/=/, "delimiter.html"],
305
- [
306
- />/,
307
- {
308
- token: "delimiter.html",
309
- next: "@styleEmbedded",
310
- nextEmbedded: "text/css"
311
- }
312
- ],
313
- [/[ \t\r\n]+/],
314
- // whitespace
315
- [
316
- /(<\/)(style\s*)(>)/,
317
- ["delimiter.html", "tag.html", { token: "delimiter.html", next: "@pop" }]
318
- ]
319
- ],
320
- // After <style ... type
321
- styleAfterType: [
322
- [/=/, "delimiter.html", "@styleAfterTypeEquals"],
323
- [
324
- />/,
325
- {
326
- token: "delimiter.html",
327
- next: "@styleEmbedded",
328
- nextEmbedded: "text/css"
329
- }
330
- ],
331
- // cover invalid e.g. <style type>
332
- [/[ \t\r\n]+/],
333
- // whitespace
334
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
335
- ],
336
- // After <style ... type =
337
- styleAfterTypeEquals: [
338
- [
339
- /"([^"]*)"/,
340
- {
341
- token: "attribute.value.html",
342
- switchTo: "@styleWithCustomType.$1"
343
- }
344
- ],
345
- [
346
- /'([^']*)'/,
347
- {
348
- token: "attribute.value.html",
349
- switchTo: "@styleWithCustomType.$1"
350
- }
351
- ],
352
- [
353
- />/,
354
- {
355
- token: "delimiter.html",
356
- next: "@styleEmbedded",
357
- nextEmbedded: "text/css"
358
- }
359
- ],
360
- // cover invalid e.g. <style type=>
361
- [/[ \t\r\n]+/],
362
- // whitespace
363
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
364
- ],
365
- // After <style ... type = $S2
366
- styleWithCustomType: [
367
- [
368
- />/,
369
- {
370
- token: "delimiter.html",
371
- next: "@styleEmbedded.$S2",
372
- nextEmbedded: "$S2"
373
- }
374
- ],
375
- [/"([^"]*)"/, "attribute.value.html"],
376
- [/'([^']*)'/, "attribute.value.html"],
377
- [/[\w\-]+/, "attribute.name.html"],
378
- [/=/, "delimiter.html"],
379
- [/[ \t\r\n]+/],
380
- // whitespace
381
- [/<\/style\s*>/, { token: "@rematch", next: "@pop" }]
382
- ],
383
- styleEmbedded: [
384
- [/<\/style/, { token: "@rematch", next: "@pop", nextEmbedded: "@pop" }],
385
- [/[^<]+/, ""]
386
- ]
387
- }
388
- };
389
- export {
390
- t as conf,
391
- e as language
392
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["<!--","-->"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},e={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<{]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};exports.conf=t;exports.language=e;