editor.md-next 0.0.0-stage → 0.1.1

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 (233) hide show
  1. package/LICENSE +32 -0
  2. package/dist/cdn/editormd-next.min.js +96 -0
  3. package/dist/cdn/index.css +2 -0
  4. package/dist/es/chunks/apl-BsW9fB9B.js +74 -0
  5. package/dist/es/chunks/asciiarmor-CZm6RLC5.js +30 -0
  6. package/dist/es/chunks/asn1-DBNYSAs9.js +86 -0
  7. package/dist/es/chunks/asterisk-XIYTp-BQ.js +63 -0
  8. package/dist/es/chunks/brainfuck-C03PadMX.js +26 -0
  9. package/dist/es/chunks/clike-QWVxZJBi.js +583 -0
  10. package/dist/es/chunks/clojure-DT_PY7rc.js +98 -0
  11. package/dist/es/chunks/cmake-DsoLxE-D.js +27 -0
  12. package/dist/es/chunks/cobol-CZjCUlI-.js +59 -0
  13. package/dist/es/chunks/coffeescript-CuHwxkgS.js +174 -0
  14. package/dist/es/chunks/commonlisp-CGpKWWCQ.js +90 -0
  15. package/dist/es/chunks/crystal-BH2tBqmL.js +159 -0
  16. package/dist/es/chunks/css-C6pN9rmb.js +314 -0
  17. package/dist/es/chunks/cypher-DknS4f0k.js +66 -0
  18. package/dist/es/chunks/d-zXrED2QC.js +121 -0
  19. package/dist/es/chunks/diff-Ca3g43eR.js +15 -0
  20. package/dist/es/chunks/dist-9Y-Blrkp.js +118 -0
  21. package/dist/es/chunks/dist-B0cBTTiS.js +408 -0
  22. package/dist/es/chunks/dist-BX9Ur1J1.js +74 -0
  23. package/dist/es/chunks/dist-BmAxhg3z.js +555 -0
  24. package/dist/es/chunks/dist-C6c_aHTh.js +269 -0
  25. package/dist/es/chunks/dist-CGdw3vqm.js +429 -0
  26. package/dist/es/chunks/dist-CNbWaVYs.js +11572 -0
  27. package/dist/es/chunks/dist-CR-jmTSB.js +1338 -0
  28. package/dist/es/chunks/dist-CahNaXTc.js +388 -0
  29. package/dist/es/chunks/dist-CeqtAM8-.js +438 -0
  30. package/dist/es/chunks/dist-Clo-Jkvm.js +291 -0
  31. package/dist/es/chunks/dist-Cpw9AD2K.js +372 -0
  32. package/dist/es/chunks/dist-Ct5FNAAH.js +406 -0
  33. package/dist/es/chunks/dist-D0OW86fR.js +605 -0
  34. package/dist/es/chunks/dist-DAlgXLzd.js +110 -0
  35. package/dist/es/chunks/dist-DL-UifMi.js +744 -0
  36. package/dist/es/chunks/dist-DQadNG25.js +523 -0
  37. package/dist/es/chunks/dist-DlAXkWGE.js +67 -0
  38. package/dist/es/chunks/dist-DoThxrrR.js +371 -0
  39. package/dist/es/chunks/dist-DrwgGib-.js +377 -0
  40. package/dist/es/chunks/dist-P5rAF7pi.js +197 -0
  41. package/dist/es/chunks/dist-fTCYxiV-.js +355 -0
  42. package/dist/es/chunks/dockerfile-BZSDl6MT.js +196 -0
  43. package/dist/es/chunks/dtd-DzUNfrcJ.js +77 -0
  44. package/dist/es/chunks/dylan-CFjlscB1.js +186 -0
  45. package/dist/es/chunks/ebnf-Vn9hWL1o.js +67 -0
  46. package/dist/es/chunks/ecl-CbjLeBF5.js +105 -0
  47. package/dist/es/chunks/eiffel-Dmm3m78y.js +49 -0
  48. package/dist/es/chunks/elm-CSe2F7PE.js +85 -0
  49. package/dist/es/chunks/erlang-D6YOoBpM.js +321 -0
  50. package/dist/es/chunks/factor-DAqyQvq1.js +165 -0
  51. package/dist/es/chunks/fcl-BZA_wXmw.js +99 -0
  52. package/dist/es/chunks/forth-MNc4axOK.js +45 -0
  53. package/dist/es/chunks/fortran-auI4bdzC.js +40 -0
  54. package/dist/es/chunks/gas-CZDp8wLI.js +167 -0
  55. package/dist/es/chunks/gherkin-B12NX28O.js +29 -0
  56. package/dist/es/chunks/groovy-CBShT4in.js +143 -0
  57. package/dist/es/chunks/haskell-DQf5nq2l.js +85 -0
  58. package/dist/es/chunks/haxe-CBKywepX.js +351 -0
  59. package/dist/es/chunks/http-B-vrcJu5.js +43 -0
  60. package/dist/es/chunks/idl-kztl-rIS.js +41 -0
  61. package/dist/es/chunks/javascript-COVyUmNV.js +636 -0
  62. package/dist/es/chunks/julia-C7x1UmUy.js +173 -0
  63. package/dist/es/chunks/livescript-BcSQznfC.js +250 -0
  64. package/dist/es/chunks/lua-CuzOmeFy.js +104 -0
  65. package/dist/es/chunks/mathematica-C_8O0eBN.js +37 -0
  66. package/dist/es/chunks/mbox-CgRq7o1s.js +65 -0
  67. package/dist/es/chunks/mirc-46fAnY_I.js +61 -0
  68. package/dist/es/chunks/mllike-DwngWEOH.js +260 -0
  69. package/dist/es/chunks/modelica-CLh6SOPZ.js +82 -0
  70. package/dist/es/chunks/mscgen-CqCKoWqr.js +287 -0
  71. package/dist/es/chunks/mumps-CTaGGpGh.js +24 -0
  72. package/dist/es/chunks/nginx-D8_Tx5a5.js +76 -0
  73. package/dist/es/chunks/nsis-LQ_3myBa.js +143 -0
  74. package/dist/es/chunks/ntriples-C8_f-qnr.js +76 -0
  75. package/dist/es/chunks/octave-Bg8pIvq8.js +40 -0
  76. package/dist/es/chunks/oz-fY6iPhaV.js +151 -0
  77. package/dist/es/chunks/pascal-yJGuSy92.js +66 -0
  78. package/dist/es/chunks/perl-Cp3_dIJp.js +626 -0
  79. package/dist/es/chunks/pig-Dp8CFFHM.js +49 -0
  80. package/dist/es/chunks/powershell-CFKKqebC.js +233 -0
  81. package/dist/es/chunks/properties-bVaZpKhj.js +19 -0
  82. package/dist/es/chunks/protobuf-CJ_NuiRp.js +14 -0
  83. package/dist/es/chunks/pug-CNVrzrF7.js +202 -0
  84. package/dist/es/chunks/puppet-DFrFlsRb.js +37 -0
  85. package/dist/es/chunks/python-DDOdLHWp.js +219 -0
  86. package/dist/es/chunks/q-CfAEY3XK.js +82 -0
  87. package/dist/es/chunks/r-D33f5qKA.js +133 -0
  88. package/dist/es/chunks/rolldown-runtime-QGRDbDUS.js +19 -0
  89. package/dist/es/chunks/rpm-KA2CbYVz.js +39 -0
  90. package/dist/es/chunks/ruby-DkaeL5UR.js +165 -0
  91. package/dist/es/chunks/sas-BMhoxqFi.js +73 -0
  92. package/dist/es/chunks/scheme-DiiFnhTV.js +116 -0
  93. package/dist/es/chunks/shell-BkraTAet.js +108 -0
  94. package/dist/es/chunks/sieve-CO0RsW8J.js +59 -0
  95. package/dist/es/chunks/simple-mode-DwMrk-pB.js +95 -0
  96. package/dist/es/chunks/smalltalk-susA3LoJ.js +43 -0
  97. package/dist/es/chunks/solr-Dyiozr6d.js +36 -0
  98. package/dist/es/chunks/sparql-svcWfrig.js +78 -0
  99. package/dist/es/chunks/spreadsheet-D64TPnFY.js +48 -0
  100. package/dist/es/chunks/sql-iy-in7fW.js +254 -0
  101. package/dist/es/chunks/stex-CK4iWXBq.js +108 -0
  102. package/dist/es/chunks/stylus-Bla1TtoF.js +281 -0
  103. package/dist/es/chunks/swift-BfLWtovc.js +158 -0
  104. package/dist/es/chunks/tcl-Cqsx32oK.js +71 -0
  105. package/dist/es/chunks/textile-CP9LptjR.js +215 -0
  106. package/dist/es/chunks/tiddlywiki-Ta-GM0jK.js +129 -0
  107. package/dist/es/chunks/tiki-CX4cONcl.js +160 -0
  108. package/dist/es/chunks/toml-BvD52WqI.js +27 -0
  109. package/dist/es/chunks/troff-CQ9EHWHs.js +29 -0
  110. package/dist/es/chunks/ttcn-DvhS_Gkc.js +117 -0
  111. package/dist/es/chunks/ttcn-cfg-GQi0YvSM.js +80 -0
  112. package/dist/es/chunks/turtle-VdGQLPpt.js +78 -0
  113. package/dist/es/chunks/vb-CPJS1Nrj.js +108 -0
  114. package/dist/es/chunks/vbscript-DEYreBb1.js +208 -0
  115. package/dist/es/chunks/velocity-BzjrTOAF.js +89 -0
  116. package/dist/es/chunks/verilog-Bc3Yq1WU.js +218 -0
  117. package/dist/es/chunks/vhdl-BD6jHQjr.js +102 -0
  118. package/dist/es/chunks/webidl-C5YO-ffA.js +102 -0
  119. package/dist/es/chunks/xquery-ugZJVSaq.js +204 -0
  120. package/dist/es/chunks/yacas-tAOeQ6Ok.js +72 -0
  121. package/dist/es/chunks/z80-DZa7RpgS.js +43 -0
  122. package/dist/es/index.js +19829 -0
  123. package/dist/iife/index.iife.js +96 -0
  124. package/dist/index.css +2 -0
  125. package/dist/types/cm/create-view.d.ts +19 -0
  126. package/dist/types/cm/create-view.d.ts.map +1 -0
  127. package/dist/types/cm/shortcuts.d.ts +11 -0
  128. package/dist/types/cm/shortcuts.d.ts.map +1 -0
  129. package/dist/types/cm/themes.d.ts +24 -0
  130. package/dist/types/cm/themes.d.ts.map +1 -0
  131. package/dist/types/cm/themes.test.d.ts +2 -0
  132. package/dist/types/cm/themes.test.d.ts.map +1 -0
  133. package/dist/types/defaults.d.ts +5 -0
  134. package/dist/types/defaults.d.ts.map +1 -0
  135. package/dist/types/dialogs/code.d.ts +5 -0
  136. package/dist/types/dialogs/code.d.ts.map +1 -0
  137. package/dist/types/dialogs/data/html-entities-data.d.ts +9 -0
  138. package/dist/types/dialogs/data/html-entities-data.d.ts.map +1 -0
  139. package/dist/types/dialogs/dialog.d.ts +37 -0
  140. package/dist/types/dialogs/dialog.d.ts.map +1 -0
  141. package/dist/types/dialogs/emoji.d.ts +4 -0
  142. package/dist/types/dialogs/emoji.d.ts.map +1 -0
  143. package/dist/types/dialogs/entities.d.ts +4 -0
  144. package/dist/types/dialogs/entities.d.ts.map +1 -0
  145. package/dist/types/dialogs/form.d.ts +12 -0
  146. package/dist/types/dialogs/form.d.ts.map +1 -0
  147. package/dist/types/dialogs/image.d.ts +4 -0
  148. package/dist/types/dialogs/image.d.ts.map +1 -0
  149. package/dist/types/dialogs/link.d.ts +6 -0
  150. package/dist/types/dialogs/link.d.ts.map +1 -0
  151. package/dist/types/dialogs/misc.d.ts +6 -0
  152. package/dist/types/dialogs/misc.d.ts.map +1 -0
  153. package/dist/types/dialogs/registry.d.ts +8 -0
  154. package/dist/types/dialogs/registry.d.ts.map +1 -0
  155. package/dist/types/dialogs/table.d.ts +4 -0
  156. package/dist/types/dialogs/table.d.ts.map +1 -0
  157. package/dist/types/editor.d.ts +105 -0
  158. package/dist/types/editor.d.ts.map +1 -0
  159. package/dist/types/features/paste-drop.d.ts +4 -0
  160. package/dist/types/features/paste-drop.d.ts.map +1 -0
  161. package/dist/types/features/view-modes.d.ts +8 -0
  162. package/dist/types/features/view-modes.d.ts.map +1 -0
  163. package/dist/types/i18n/en.d.ts +3 -0
  164. package/dist/types/i18n/en.d.ts.map +1 -0
  165. package/dist/types/i18n/index.d.ts +9 -0
  166. package/dist/types/i18n/index.d.ts.map +1 -0
  167. package/dist/types/i18n/zh-cn.d.ts +3 -0
  168. package/dist/types/i18n/zh-cn.d.ts.map +1 -0
  169. package/dist/types/i18n/zh-tw.d.ts +3 -0
  170. package/dist/types/i18n/zh-tw.d.ts.map +1 -0
  171. package/dist/types/index.d.ts +14 -0
  172. package/dist/types/index.d.ts.map +1 -0
  173. package/dist/types/lifecycle/layout.d.ts +11 -0
  174. package/dist/types/lifecycle/layout.d.ts.map +1 -0
  175. package/dist/types/lifecycle/mount.d.ts +12 -0
  176. package/dist/types/lifecycle/mount.d.ts.map +1 -0
  177. package/dist/types/markdown/cdn-lazy.d.ts +49 -0
  178. package/dist/types/markdown/cdn-lazy.d.ts.map +1 -0
  179. package/dist/types/markdown/data/emoji-data.d.ts +13 -0
  180. package/dist/types/markdown/data/emoji-data.d.ts.map +1 -0
  181. package/dist/types/markdown/data/emoji-unicode.d.ts +6 -0
  182. package/dist/types/markdown/data/emoji-unicode.d.ts.map +1 -0
  183. package/dist/types/markdown/data-attr.d.ts +10 -0
  184. package/dist/types/markdown/data-attr.d.ts.map +1 -0
  185. package/dist/types/markdown/engine.d.ts +18 -0
  186. package/dist/types/markdown/engine.d.ts.map +1 -0
  187. package/dist/types/markdown/engine.test.d.ts +2 -0
  188. package/dist/types/markdown/engine.test.d.ts.map +1 -0
  189. package/dist/types/markdown/highlight.d.ts +9 -0
  190. package/dist/types/markdown/highlight.d.ts.map +1 -0
  191. package/dist/types/markdown/plugin-emoji.d.ts +9 -0
  192. package/dist/types/markdown/plugin-emoji.d.ts.map +1 -0
  193. package/dist/types/markdown/plugin-fence.d.ts +3 -0
  194. package/dist/types/markdown/plugin-fence.d.ts.map +1 -0
  195. package/dist/types/markdown/plugin-misc.d.ts +9 -0
  196. package/dist/types/markdown/plugin-misc.d.ts.map +1 -0
  197. package/dist/types/markdown/plugin-tasks.d.ts +4 -0
  198. package/dist/types/markdown/plugin-tasks.d.ts.map +1 -0
  199. package/dist/types/markdown/plugin-tex.d.ts +3 -0
  200. package/dist/types/markdown/plugin-tex.d.ts.map +1 -0
  201. package/dist/types/markdown/plugin-toc.d.ts +18 -0
  202. package/dist/types/markdown/plugin-toc.d.ts.map +1 -0
  203. package/dist/types/normalize.d.ts +3 -0
  204. package/dist/types/normalize.d.ts.map +1 -0
  205. package/dist/types/preview/pane.d.ts +9 -0
  206. package/dist/types/preview/pane.d.ts.map +1 -0
  207. package/dist/types/preview/post-render.d.ts +19 -0
  208. package/dist/types/preview/post-render.d.ts.map +1 -0
  209. package/dist/types/preview/sync-scroll.d.ts +13 -0
  210. package/dist/types/preview/sync-scroll.d.ts.map +1 -0
  211. package/dist/types/preview/toc.d.ts +15 -0
  212. package/dist/types/preview/toc.d.ts.map +1 -0
  213. package/dist/types/render-to.d.ts +3 -0
  214. package/dist/types/render-to.d.ts.map +1 -0
  215. package/dist/types/toolbar/handlers.d.ts +4 -0
  216. package/dist/types/toolbar/handlers.d.ts.map +1 -0
  217. package/dist/types/toolbar/icons.d.ts +5 -0
  218. package/dist/types/toolbar/icons.d.ts.map +1 -0
  219. package/dist/types/toolbar/modes.d.ts +20 -0
  220. package/dist/types/toolbar/modes.d.ts.map +1 -0
  221. package/dist/types/toolbar/toolbar.d.ts +16 -0
  222. package/dist/types/toolbar/toolbar.d.ts.map +1 -0
  223. package/dist/types/types/common.d.ts +7 -0
  224. package/dist/types/types/common.d.ts.map +1 -0
  225. package/dist/types/types/events.d.ts +38 -0
  226. package/dist/types/types/events.d.ts.map +1 -0
  227. package/dist/types/types/lang.d.ts +95 -0
  228. package/dist/types/types/lang.d.ts.map +1 -0
  229. package/dist/types/types/settings.d.ts +171 -0
  230. package/dist/types/types/settings.d.ts.map +1 -0
  231. package/dist/umd/index.umd.cjs +96 -0
  232. package/package.json +69 -3
  233. package/README.md +0 -3
@@ -0,0 +1,218 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/verilog.js
2
+ function e(e) {
3
+ var t = e.statementIndentUnit, n = e.dontAlignCalls, r = e.noIndentKeywords || [], i = e.multiLineStrings, a = e.hooks || {};
4
+ function o(e) {
5
+ for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
6
+ return t;
7
+ }
8
+ var s = o("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"), c = /[\+\-\*\/!~&|^%=?:]/, l = /[\[\]{}()]/, u = /\d[0-9_]*/, d = /\d*\s*'s?d\s*\d[0-9_]*/i, f = /\d*\s*'s?b\s*[xz01][xz01_]*/i, p = /\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i, m = /\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i, h = /(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i, g = /^((\w+)|[)}\]])/, _ = /[)}\]]/, v, y, b = o("case checker class clocking config function generate interface module package primitive program property specify sequence table task"), x = {};
9
+ for (var S in b) x[S] = "end" + S;
10
+ for (var C in x.begin = "end", x.casex = "endcase", x.casez = "endcase", x.do = "while", x.fork = "join;join_any;join_none", x.covergroup = "endgroup", r) {
11
+ var S = r[C];
12
+ x[S] && (x[S] = void 0);
13
+ }
14
+ var w = o("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");
15
+ function T(e, t) {
16
+ var n = e.peek(), r;
17
+ if (a[n] && (r = a[n](e, t)) != 0 || a.tokenBase && (r = a.tokenBase(e, t)) != 0) return r;
18
+ if (/[,;:\.]/.test(n)) return v = e.next(), null;
19
+ if (l.test(n)) return v = e.next(), "bracket";
20
+ if (n == "`") return e.next(), e.eatWhile(/[\w\$_]/) ? "def" : null;
21
+ if (n == "$") return e.next(), e.eatWhile(/[\w\$_]/) ? "meta" : null;
22
+ if (n == "#") return e.next(), e.eatWhile(/[\d_.]/), "def";
23
+ if (n == "\"") return e.next(), t.tokenize = E(n), t.tokenize(e, t);
24
+ if (n == "/") {
25
+ if (e.next(), e.eat("*")) return t.tokenize = D, D(e, t);
26
+ if (e.eat("/")) return e.skipToEnd(), "comment";
27
+ e.backUp(1);
28
+ }
29
+ if (e.match(h) || e.match(d) || e.match(f) || e.match(p) || e.match(m) || e.match(u) || e.match(h)) return "number";
30
+ if (e.eatWhile(c)) return "meta";
31
+ if (e.eatWhile(/[\w\$_]/)) {
32
+ var i = e.current();
33
+ return s[i] ? (x[i] && (v = "newblock"), w[i] && (v = "newstatement"), y = i, "keyword") : "variable";
34
+ }
35
+ return e.next(), null;
36
+ }
37
+ function E(e) {
38
+ return function(t, n) {
39
+ for (var r = !1, a, o = !1; (a = t.next()) != null;) {
40
+ if (a == e && !r) {
41
+ o = !0;
42
+ break;
43
+ }
44
+ r = !r && a == "\\";
45
+ }
46
+ return (o || !(r || i)) && (n.tokenize = T), "string";
47
+ };
48
+ }
49
+ function D(e, t) {
50
+ for (var n = !1, r; r = e.next();) {
51
+ if (r == "/" && n) {
52
+ t.tokenize = T;
53
+ break;
54
+ }
55
+ n = r == "*";
56
+ }
57
+ return "comment";
58
+ }
59
+ function O(e, t, n, r, i) {
60
+ this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i;
61
+ }
62
+ function k(e, t, n) {
63
+ var r = e.indented;
64
+ return e.context = new O(r, t, n, null, e.context);
65
+ }
66
+ function A(e) {
67
+ var t = e.context.type;
68
+ return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
69
+ }
70
+ function j(e, t) {
71
+ if (e == t) return !0;
72
+ var n = t.split(";");
73
+ for (var r in n) if (e == n[r]) return !0;
74
+ return !1;
75
+ }
76
+ function M() {
77
+ var e = [];
78
+ for (var t in x) if (x[t]) {
79
+ var n = x[t].split(";");
80
+ for (var r in n) e.push(n[r]);
81
+ }
82
+ return RegExp("[{}()\\[\\]]|(" + e.join("|") + ")$");
83
+ }
84
+ return {
85
+ name: "verilog",
86
+ startState: function(e) {
87
+ var t = {
88
+ tokenize: null,
89
+ context: new O(-e, 0, "top", !1),
90
+ indented: 0,
91
+ startOfLine: !0
92
+ };
93
+ return a.startState && a.startState(t), t;
94
+ },
95
+ token: function(e, t) {
96
+ var n = t.context;
97
+ if (e.sol() && (n.align ?? (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), a.token) {
98
+ var r = a.token(e, t);
99
+ if (r !== void 0) return r;
100
+ }
101
+ if (e.eatSpace()) return null;
102
+ v = null, y = null;
103
+ var r = (t.tokenize || T)(e, t);
104
+ if (r == "comment" || r == "meta" || r == "variable") return r;
105
+ if (n.align ?? (n.align = !0), v == n.type) A(t);
106
+ else if (v == ";" && n.type == "statement" || n.type && j(y, n.type)) for (n = A(t); n && n.type == "statement";) n = A(t);
107
+ else if (v == "{") k(t, e.column(), "}");
108
+ else if (v == "[") k(t, e.column(), "]");
109
+ else if (v == "(") k(t, e.column(), ")");
110
+ else if (n && n.type == "endcase" && v == ":") k(t, e.column(), "statement");
111
+ else if (v == "newstatement") k(t, e.column(), "statement");
112
+ else if (v == "newblock" && (y != "function" || !n || n.type != "statement" && n.type != "endgroup") && !(y == "task" && n && n.type == "statement")) {
113
+ var i = x[y];
114
+ k(t, e.column(), i);
115
+ }
116
+ return t.startOfLine = !1, r;
117
+ },
118
+ indent: function(e, r, i) {
119
+ if (e.tokenize != T && e.tokenize != null) return null;
120
+ if (a.indent) {
121
+ var o = a.indent(e);
122
+ if (o >= 0) return o;
123
+ }
124
+ var s = e.context, c = r && r.charAt(0);
125
+ s.type == "statement" && c == "}" && (s = s.prev);
126
+ var l = !1, u = r.match(g);
127
+ return u && (l = j(u[0], s.type)), s.type == "statement" ? s.indented + (c == "{" ? 0 : t || i.unit) : _.test(s.type) && s.align && !n ? s.column + +!l : s.type == ")" && !l ? s.indented + (t || i.unit) : s.indented + (l ? 0 : i.unit);
128
+ },
129
+ languageData: {
130
+ indentOnInput: M(),
131
+ commentTokens: {
132
+ line: "//",
133
+ block: {
134
+ open: "/*",
135
+ close: "*/"
136
+ }
137
+ }
138
+ }
139
+ };
140
+ }
141
+ var t = e({}), n = {
142
+ "|": "link",
143
+ ">": "property",
144
+ $: "variable",
145
+ $$: "variable",
146
+ "?$": "qualifier",
147
+ "?*": "qualifier",
148
+ "-": "contentSeparator",
149
+ "/": "property",
150
+ "/-": "property",
151
+ "@": "variableName.special",
152
+ "@-": "variableName.special",
153
+ "@++": "variableName.special",
154
+ "@+=": "variableName.special",
155
+ "@+=-": "variableName.special",
156
+ "@--": "variableName.special",
157
+ "@-=": "variableName.special",
158
+ "%+": "tag",
159
+ "%-": "tag",
160
+ "%": "tag",
161
+ ">>": "tag",
162
+ "<<": "tag",
163
+ "<>": "tag",
164
+ "#": "tag",
165
+ "^": "attribute",
166
+ "^^": "attribute",
167
+ "^!": "attribute",
168
+ "*": "variable",
169
+ "**": "variable",
170
+ "\\": "keyword",
171
+ "\"": "comment"
172
+ }, r = {
173
+ "/": "beh-hier",
174
+ ">": "beh-hier",
175
+ "-": "phys-hier",
176
+ "|": "pipe",
177
+ "?": "when",
178
+ "@": "stage",
179
+ "\\": "keyword"
180
+ }, i = 3, a = /^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/, o = /^[! ] */, s = /^\/[\/\*]/;
181
+ e({ hooks: {
182
+ electricInput: !1,
183
+ token: function(e, t) {
184
+ var c = void 0, l;
185
+ if (e.sol() && !t.tlvInBlockComment) {
186
+ e.peek() == "\\" && (c = "def", e.skipToEnd(), e.string.match(/\\SV/) ? t.tlvCodeActive = !1 : e.string.match(/\\TLV/) && (t.tlvCodeActive = !0)), t.tlvCodeActive && e.pos == 0 && t.indented == 0 && (l = e.match(o, !1)) && (t.indented = l[0].length);
187
+ var u = t.indented, d = u / i;
188
+ if (d <= t.tlvIndentationStyle.length) {
189
+ var f = e.string.length == u, p = d * i;
190
+ if (p < e.string.length) {
191
+ var m = e.string.slice(p), h = m[0];
192
+ r[h] && (l = m.match(a)) && n[l[1]] && (u += i, h == "\\" && p > 0 || (t.tlvIndentationStyle[d] = r[h], d++));
193
+ }
194
+ if (!f) for (; t.tlvIndentationStyle.length > d;) t.tlvIndentationStyle.pop();
195
+ }
196
+ t.tlvNextIndent = u;
197
+ }
198
+ if (t.tlvCodeActive) {
199
+ var l;
200
+ if (c === void 0) {
201
+ if (t.tlvInBlockComment) e.match(/^.*?\*\//) ? t.tlvInBlockComment = !1 : e.skipToEnd(), c = "comment";
202
+ else if ((l = e.match(s)) && !t.tlvInBlockComment) l[0] == "//" ? e.skipToEnd() : t.tlvInBlockComment = !0, c = "comment";
203
+ else if (l = e.match(a)) {
204
+ var g = l[1], _ = l[2];
205
+ n.hasOwnProperty(g) && (_.length > 0 || e.eol()) ? c = n[g] : e.backUp(e.current().length - 1);
206
+ } else e.match(/^\t+/) ? c = "invalid" : e.match(/^[\[\]{}\(\);\:]+/) ? c = "meta" : (l = e.match(/^[mM]4([\+_])?[\w\d_]*/)) ? c = l[1] == "+" ? "keyword.special" : "keyword" : e.match(/^ +/) ? e.eol() && (c = "error") : e.match(/^[\w\d_]+/) ? c = "number" : e.next();
207
+ }
208
+ } else e.match(/^[mM]4([\w\d_]*)/) && (c = "keyword");
209
+ return c;
210
+ },
211
+ indent: function(e) {
212
+ return e.tlvCodeActive == 1 ? e.tlvNextIndent : -1;
213
+ },
214
+ startState: function(e) {
215
+ e.tlvIndentationStyle = [], e.tlvCodeActive = !0, e.tlvNextIndent = -1, e.tlvInBlockComment = !1;
216
+ }
217
+ } });
218
+ export { t as verilog };
@@ -0,0 +1,102 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/vhdl.js
2
+ function e(e) {
3
+ for (var t = {}, n = e.split(","), r = 0; r < n.length; ++r) {
4
+ var i = n[r].toUpperCase(), a = n[r].charAt(0).toUpperCase() + n[r].slice(1);
5
+ t[n[r]] = !0, t[i] = !0, t[a] = !0;
6
+ }
7
+ return t;
8
+ }
9
+ function t(e) {
10
+ return e.eatWhile(/[\w\$_]/), "meta";
11
+ }
12
+ var n = e("null"), r = {
13
+ "`": t,
14
+ $: t
15
+ }, i = e("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"), a = e("architecture,entity,begin,case,port,else,elsif,end,for,function,if"), o = /[&|~><!\)\(*#%@+\/=?\:;}{,\.\^\-\[\]]/, s;
16
+ function c(e, t) {
17
+ var c = e.next();
18
+ if (r[c]) {
19
+ var d = r[c](e, t);
20
+ if (d !== !1) return d;
21
+ }
22
+ if (c == "\"") return t.tokenize = u(c), t.tokenize(e, t);
23
+ if (c == "'") return t.tokenize = l(c), t.tokenize(e, t);
24
+ if (/[\[\]{}\(\),;\:\.]/.test(c)) return s = c, null;
25
+ if (/[\d']/.test(c)) return e.eatWhile(/[\w\.']/), "number";
26
+ if (c == "-" && e.eat("-")) return e.skipToEnd(), "comment";
27
+ if (o.test(c)) return e.eatWhile(o), "operator";
28
+ e.eatWhile(/[\w\$_]/);
29
+ var f = e.current();
30
+ return i.propertyIsEnumerable(f.toLowerCase()) ? (a.propertyIsEnumerable(f) && (s = "newstatement"), "keyword") : n.propertyIsEnumerable(f) ? "atom" : "variable";
31
+ }
32
+ function l(e) {
33
+ return function(t, n) {
34
+ for (var r = !1, i, a = !1; (i = t.next()) != null;) {
35
+ if (i == e && !r) {
36
+ a = !0;
37
+ break;
38
+ }
39
+ r = !r && i == "--";
40
+ }
41
+ return (a || !r) && (n.tokenize = c), "string";
42
+ };
43
+ }
44
+ function u(e) {
45
+ return function(t, n) {
46
+ for (var r = !1, i, a = !1; (i = t.next()) != null;) {
47
+ if (i == e && !r) {
48
+ a = !0;
49
+ break;
50
+ }
51
+ r = !r && i == "--";
52
+ }
53
+ return (a || !r) && (n.tokenize = c), "string.special";
54
+ };
55
+ }
56
+ function d(e, t, n, r, i) {
57
+ this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i;
58
+ }
59
+ function f(e, t, n) {
60
+ return e.context = new d(e.indented, t, n, null, e.context);
61
+ }
62
+ function p(e) {
63
+ var t = e.context.type;
64
+ return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
65
+ }
66
+ var m = {
67
+ name: "vhdl",
68
+ startState: function(e) {
69
+ return {
70
+ tokenize: null,
71
+ context: new d(-e, 0, "top", !1),
72
+ indented: 0,
73
+ startOfLine: !0
74
+ };
75
+ },
76
+ token: function(e, t) {
77
+ var n = t.context;
78
+ if (e.sol() && (n.align ?? (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
79
+ s = null;
80
+ var r = (t.tokenize || c)(e, t);
81
+ if (r == "comment" || r == "meta") return r;
82
+ if (n.align ?? (n.align = !0), (s == ";" || s == ":") && n.type == "statement") p(t);
83
+ else if (s == "{") f(t, e.column(), "}");
84
+ else if (s == "[") f(t, e.column(), "]");
85
+ else if (s == "(") f(t, e.column(), ")");
86
+ else if (s == "}") {
87
+ for (; n.type == "statement";) n = p(t);
88
+ for (n.type == "}" && (n = p(t)); n.type == "statement";) n = p(t);
89
+ } else s == n.type ? p(t) : (n.type == "}" || n.type == "top" || n.type == "statement" && s == "newstatement") && f(t, e.column(), "statement");
90
+ return t.startOfLine = !1, r;
91
+ },
92
+ indent: function(e, t, n) {
93
+ if (e.tokenize != c && e.tokenize != null) return 0;
94
+ var r = t && t.charAt(0), i = e.context, a = r == i.type;
95
+ return i.type == "statement" ? i.indented + (r == "{" ? 0 : n.unit) : i.align ? i.column + +!a : i.indented + (a ? 0 : n.unit);
96
+ },
97
+ languageData: {
98
+ indentOnInput: /^\s*[{}]$/,
99
+ commentTokens: { line: "--" }
100
+ }
101
+ };
102
+ export { m as vhdl };
@@ -0,0 +1,102 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/webidl.js
2
+ function e(e) {
3
+ return RegExp("^((" + e.join(")|(") + "))\\b");
4
+ }
5
+ var t = [
6
+ "Clamp",
7
+ "Constructor",
8
+ "EnforceRange",
9
+ "Exposed",
10
+ "ImplicitThis",
11
+ "Global",
12
+ "PrimaryGlobal",
13
+ "LegacyArrayClass",
14
+ "LegacyUnenumerableNamedProperties",
15
+ "LenientThis",
16
+ "NamedConstructor",
17
+ "NewObject",
18
+ "NoInterfaceObject",
19
+ "OverrideBuiltins",
20
+ "PutForwards",
21
+ "Replaceable",
22
+ "SameObject",
23
+ "TreatNonObjectAsNull",
24
+ "TreatNullAs",
25
+ "EmptyString",
26
+ "Unforgeable",
27
+ "Unscopeable"
28
+ ], n = e(t), r = /* @__PURE__ */ "unsigned.short.long.unrestricted.float.double.boolean.byte.octet.Promise.ArrayBuffer.DataView.Int8Array.Int16Array.Int32Array.Uint8Array.Uint16Array.Uint32Array.Uint8ClampedArray.Float32Array.Float64Array.ByteString.DOMString.USVString.sequence.object.RegExp.Error.DOMException.FrozenArray.any.void".split("."), i = e(r), a = [
29
+ "attribute",
30
+ "callback",
31
+ "const",
32
+ "deleter",
33
+ "dictionary",
34
+ "enum",
35
+ "getter",
36
+ "implements",
37
+ "inherit",
38
+ "interface",
39
+ "iterable",
40
+ "legacycaller",
41
+ "maplike",
42
+ "partial",
43
+ "required",
44
+ "serializer",
45
+ "setlike",
46
+ "setter",
47
+ "static",
48
+ "stringifier",
49
+ "typedef",
50
+ "optional",
51
+ "readonly",
52
+ "or"
53
+ ], o = e(a), s = [
54
+ "true",
55
+ "false",
56
+ "Infinity",
57
+ "NaN",
58
+ "null"
59
+ ], c = e(s), l = e([
60
+ "callback",
61
+ "dictionary",
62
+ "enum",
63
+ "interface"
64
+ ]), u = e(["typedef"]), d = /^[:<=>?]/, f = /^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/, p = /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/, m = /^_?[A-Za-z][0-9A-Z_a-z-]*/, h = /^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/, g = /^"[^"]*"/, _ = /^\/\*.*?\*\//, v = /^\/\*.*/, y = /^.*?\*\//;
65
+ function b(e, t) {
66
+ if (e.eatSpace()) return null;
67
+ if (t.inComment) return e.match(y) ? (t.inComment = !1, "comment") : (e.skipToEnd(), "comment");
68
+ if (e.match("//")) return e.skipToEnd(), "comment";
69
+ if (e.match(_)) return "comment";
70
+ if (e.match(v)) return t.inComment = !0, "comment";
71
+ if (e.match(/^-?[0-9\.]/, !1) && (e.match(f) || e.match(p))) return "number";
72
+ if (e.match(g)) return "string";
73
+ if (t.startDef && e.match(m)) return "def";
74
+ if (t.endDef && e.match(h)) return t.endDef = !1, "def";
75
+ if (e.match(o)) return "keyword";
76
+ if (e.match(i)) {
77
+ var r = t.lastToken, a = (e.match(/^\s*(.+?)\b/, !1) || [])[1];
78
+ return r === ":" || r === "implements" || a === "implements" || a === "=" ? "builtin" : "type";
79
+ }
80
+ return e.match(n) ? "builtin" : e.match(c) ? "atom" : e.match(m) ? "variable" : e.match(d) ? "operator" : (e.next(), null);
81
+ }
82
+ var x = {
83
+ name: "webidl",
84
+ startState: function() {
85
+ return {
86
+ inComment: !1,
87
+ lastToken: "",
88
+ startDef: !1,
89
+ endDef: !1
90
+ };
91
+ },
92
+ token: function(e, t) {
93
+ var n = b(e, t);
94
+ if (n) {
95
+ var r = e.current();
96
+ t.lastToken = r, n === "keyword" ? (t.startDef = l.test(r), t.endDef = t.endDef || u.test(r)) : t.startDef = !1;
97
+ }
98
+ return n;
99
+ },
100
+ languageData: { autocomplete: t.concat(r).concat(a).concat(s) }
101
+ };
102
+ export { x as webIDL };
@@ -0,0 +1,204 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/xquery.js
2
+ var e = function() {
3
+ function e(e) {
4
+ return {
5
+ type: e,
6
+ style: "keyword"
7
+ };
8
+ }
9
+ for (var t = e("operator"), n = {
10
+ type: "atom",
11
+ style: "atom"
12
+ }, r = {
13
+ type: "punctuation",
14
+ style: null
15
+ }, i = {
16
+ type: "axis_specifier",
17
+ style: "qualifier"
18
+ }, a = { ",": r }, o = /* @__PURE__ */ "after.all.allowing.ancestor.ancestor-or-self.any.array.as.ascending.at.attribute.base-uri.before.boundary-space.by.case.cast.castable.catch.child.collation.comment.construction.contains.content.context.copy.copy-namespaces.count.decimal-format.declare.default.delete.descendant.descendant-or-self.descending.diacritics.different.distance.document.document-node.element.else.empty.empty-sequence.encoding.end.entire.every.exactly.except.external.first.following.following-sibling.for.from.ftand.ftnot.ft-option.ftor.function.fuzzy.greatest.group.if.import.in.inherit.insensitive.insert.instance.intersect.into.invoke.is.item.language.last.lax.least.let.levels.lowercase.map.modify.module.most.namespace.next.no.node.nodes.no-inherit.no-preserve.not.occurs.of.only.option.order.ordered.ordering.paragraph.paragraphs.parent.phrase.preceding.preceding-sibling.preserve.previous.processing-instruction.relationship.rename.replace.return.revalidation.same.satisfies.schema.schema-attribute.schema-element.score.self.sensitive.sentence.sentences.sequence.skip.sliding.some.stable.start.stemming.stop.strict.strip.switch.text.then.thesaurus.times.to.transform.treat.try.tumbling.type.typeswitch.union.unordered.update.updating.uppercase.using.validate.value.variable.version.weight.when.where.wildcards.window.with.without.word.words.xquery".split("."), s = 0, c = o.length; s < c; s++) a[o[s]] = e(o[s]);
19
+ for (var l = /* @__PURE__ */ "xs:anyAtomicType.xs:anySimpleType.xs:anyType.xs:anyURI.xs:base64Binary.xs:boolean.xs:byte.xs:date.xs:dateTime.xs:dateTimeStamp.xs:dayTimeDuration.xs:decimal.xs:double.xs:duration.xs:ENTITIES.xs:ENTITY.xs:float.xs:gDay.xs:gMonth.xs:gMonthDay.xs:gYear.xs:gYearMonth.xs:hexBinary.xs:ID.xs:IDREF.xs:IDREFS.xs:int.xs:integer.xs:item.xs:java.xs:language.xs:long.xs:Name.xs:NCName.xs:negativeInteger.xs:NMTOKEN.xs:NMTOKENS.xs:nonNegativeInteger.xs:nonPositiveInteger.xs:normalizedString.xs:NOTATION.xs:numeric.xs:positiveInteger.xs:precisionDecimal.xs:QName.xs:short.xs:string.xs:time.xs:token.xs:unsignedByte.xs:unsignedInt.xs:unsignedLong.xs:unsignedShort.xs:untyped.xs:untypedAtomic.xs:yearMonthDuration".split("."), s = 0, c = l.length; s < c; s++) a[l[s]] = n;
20
+ for (var u = [
21
+ "eq",
22
+ "ne",
23
+ "lt",
24
+ "le",
25
+ "gt",
26
+ "ge",
27
+ ":=",
28
+ "=",
29
+ ">",
30
+ ">=",
31
+ "<",
32
+ "<=",
33
+ ".",
34
+ "|",
35
+ "?",
36
+ "and",
37
+ "or",
38
+ "div",
39
+ "idiv",
40
+ "mod",
41
+ "*",
42
+ "/",
43
+ "+",
44
+ "-"
45
+ ], s = 0, c = u.length; s < c; s++) a[u[s]] = t;
46
+ for (var d = [
47
+ "self::",
48
+ "attribute::",
49
+ "child::",
50
+ "descendant::",
51
+ "descendant-or-self::",
52
+ "parent::",
53
+ "ancestor::",
54
+ "ancestor-or-self::",
55
+ "following::",
56
+ "preceding::",
57
+ "following-sibling::",
58
+ "preceding-sibling::"
59
+ ], s = 0, c = d.length; s < c; s++) a[d[s]] = i;
60
+ return a;
61
+ }();
62
+ function t(e, t, n) {
63
+ return t.tokenize = n, n(e, t);
64
+ }
65
+ function n(n, i) {
66
+ var c = n.next(), p = !1, g = h(n);
67
+ if (c == "<") {
68
+ if (n.match("!--", !0)) return t(n, i, l);
69
+ if (n.match("![CDATA", !1)) return i.tokenize = u, "tag";
70
+ if (n.match("?", !1)) return t(n, i, d);
71
+ var y = n.eat("/");
72
+ n.eatSpace();
73
+ for (var b = "", x; x = n.eat(/[^\s\u00a0=<>\"\'\/?]/);) b += x;
74
+ return t(n, i, s(b, y));
75
+ }
76
+ if (c == "{") return _(i, { type: "codeblock" }), null;
77
+ if (c == "}") return v(i), null;
78
+ if (f(i)) return c == ">" ? "tag" : c == "/" && n.eat(">") ? (v(i), "tag") : "variable";
79
+ if (/\d/.test(c)) return n.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/), "atom";
80
+ if (c === "(" && n.eat(":")) return _(i, { type: "comment" }), t(n, i, r);
81
+ if (!g && (c === "\"" || c === "'")) return a(n, i, c);
82
+ if (c === "$") return t(n, i, o);
83
+ if (c === ":" && n.eat("=")) return "keyword";
84
+ if (c === "(") return _(i, { type: "paren" }), null;
85
+ if (c === ")") return v(i), null;
86
+ if (c === "[") return _(i, { type: "bracket" }), null;
87
+ if (c === "]") return v(i), null;
88
+ var S = e.propertyIsEnumerable(c) && e[c];
89
+ if (g && c === "\"") for (; n.next() !== "\"";);
90
+ if (g && c === "'") for (; n.next() !== "'";);
91
+ S || n.eatWhile(/[\w\$_-]/);
92
+ var C = n.eat(":");
93
+ !n.eat(":") && C && n.eatWhile(/[\w\$_-]/), n.match(/^[ \t]*\(/, !1) && (p = !0);
94
+ var w = n.current();
95
+ return S = e.propertyIsEnumerable(w) && e[w], p && !S && (S = {
96
+ type: "function_call",
97
+ style: "def"
98
+ }), m(i) ? (v(i), "variable") : ((w == "element" || w == "attribute" || S.type == "axis_specifier") && _(i, { type: "xmlconstructor" }), S ? S.style : "variable");
99
+ }
100
+ function r(e, t) {
101
+ for (var n = !1, r = !1, i = 0, a; a = e.next();) {
102
+ if (a == ")" && n) {
103
+ if (i > 0) i--;
104
+ else {
105
+ v(t);
106
+ break;
107
+ }
108
+ } else a == ":" && r && i++;
109
+ n = a == ":", r = a == "(";
110
+ }
111
+ return "comment";
112
+ }
113
+ function i(e, t) {
114
+ return function(r, i) {
115
+ for (var a; a = r.next();) if (a == e) {
116
+ v(i), t && (i.tokenize = t);
117
+ break;
118
+ } else if (r.match("{", !1) && p(i)) return _(i, { type: "codeblock" }), i.tokenize = n, "string";
119
+ return "string";
120
+ };
121
+ }
122
+ function a(e, n, r, a) {
123
+ let o = i(r, a);
124
+ return _(n, {
125
+ type: "string",
126
+ name: r,
127
+ tokenize: o
128
+ }), t(e, n, o);
129
+ }
130
+ function o(e, t) {
131
+ var r = /[\w\$_-]/;
132
+ if (e.eat("\"")) {
133
+ for (; e.next() !== "\"";);
134
+ e.eat(":");
135
+ } else e.eatWhile(r), e.match(":=", !1) || e.eat(":");
136
+ return e.eatWhile(r), t.tokenize = n, "variable";
137
+ }
138
+ function s(e, t) {
139
+ return function(r, i) {
140
+ if (r.eatSpace(), t && r.eat(">")) return v(i), i.tokenize = n, "tag";
141
+ if (r.eat("/") || _(i, {
142
+ type: "tag",
143
+ name: e,
144
+ tokenize: n
145
+ }), r.eat(">")) i.tokenize = n;
146
+ else return i.tokenize = c, "tag";
147
+ return "tag";
148
+ };
149
+ }
150
+ function c(e, t) {
151
+ var r = e.next();
152
+ return r == "/" && e.eat(">") ? (p(t) && v(t), f(t) && v(t), "tag") : r == ">" ? (p(t) && v(t), "tag") : r == "=" ? null : r == "\"" || r == "'" ? a(e, t, r, c) : (p(t) || _(t, {
153
+ type: "attribute",
154
+ tokenize: c
155
+ }), e.eat(/[a-zA-Z_:]/), e.eatWhile(/[-a-zA-Z0-9_:.]/), e.eatSpace(), (e.match(">", !1) || e.match("/", !1)) && (v(t), t.tokenize = n), "attribute");
156
+ }
157
+ function l(e, t) {
158
+ for (var r; r = e.next();) if (r == "-" && e.match("->", !0)) return t.tokenize = n, "comment";
159
+ }
160
+ function u(e, t) {
161
+ for (var r; r = e.next();) if (r == "]" && e.match("]", !0)) return t.tokenize = n, "comment";
162
+ }
163
+ function d(e, t) {
164
+ for (var r; r = e.next();) if (r == "?" && e.match(">", !0)) return t.tokenize = n, "processingInstruction";
165
+ }
166
+ function f(e) {
167
+ return g(e, "tag");
168
+ }
169
+ function p(e) {
170
+ return g(e, "attribute");
171
+ }
172
+ function m(e) {
173
+ return g(e, "xmlconstructor");
174
+ }
175
+ function h(e) {
176
+ return e.current() === "\"" ? e.match(/^[^\"]+\"\:/, !1) : e.current() === "'" && e.match(/^[^\"]+\'\:/, !1);
177
+ }
178
+ function g(e, t) {
179
+ return e.stack.length && e.stack[e.stack.length - 1].type == t;
180
+ }
181
+ function _(e, t) {
182
+ e.stack.push(t);
183
+ }
184
+ function v(e) {
185
+ e.stack.pop(), e.tokenize = e.stack.length && e.stack[e.stack.length - 1].tokenize || n;
186
+ }
187
+ var y = {
188
+ name: "xquery",
189
+ startState: function() {
190
+ return {
191
+ tokenize: n,
192
+ cc: [],
193
+ stack: []
194
+ };
195
+ },
196
+ token: function(e, t) {
197
+ return e.eatSpace() ? null : t.tokenize(e, t);
198
+ },
199
+ languageData: { commentTokens: { block: {
200
+ open: "(:",
201
+ close: ":)"
202
+ } } }
203
+ };
204
+ export { y as xQuery };