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,219 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/python.js
2
+ function e(e) {
3
+ return RegExp("^((" + e.join(")|(") + "))\\b");
4
+ }
5
+ var t = e([
6
+ "and",
7
+ "or",
8
+ "not",
9
+ "is"
10
+ ]), n = /* @__PURE__ */ "as.assert.break.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.lambda.pass.raise.return.try.while.with.yield.in.False.True".split("."), r = /* @__PURE__ */ "abs.all.any.bin.bool.bytearray.callable.chr.classmethod.compile.complex.delattr.dict.dir.divmod.enumerate.eval.filter.float.format.frozenset.getattr.globals.hasattr.hash.help.hex.id.input.int.isinstance.issubclass.iter.len.list.locals.map.max.memoryview.min.next.object.oct.open.ord.pow.property.range.repr.reversed.round.set.setattr.slice.sorted.staticmethod.str.sum.super.tuple.type.vars.zip.__import__.NotImplemented.Ellipsis.__debug__".split(".");
11
+ function i(e) {
12
+ return e.scopes[e.scopes.length - 1];
13
+ }
14
+ function a(a) {
15
+ for (var o = "error", s = a.delimiters || a.singleDelimiters || /^[\(\)\[\]\{\}@,:`=;\.\\]/, c = [
16
+ a.singleOperators,
17
+ a.doubleOperators,
18
+ a.doubleDelimiters,
19
+ a.tripleDelimiters,
20
+ a.operators || /^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/
21
+ ], l = 0; l < c.length; l++) c[l] || c.splice(l--, 1);
22
+ var u = a.hangingIndent, d = n, f = r;
23
+ a.extra_keywords != null && (d = d.concat(a.extra_keywords)), a.extra_builtins != null && (f = f.concat(a.extra_builtins));
24
+ var p = !(a.version && Number(a.version) < 3);
25
+ if (p) {
26
+ var m = a.identifiers || /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;
27
+ d = d.concat([
28
+ "nonlocal",
29
+ "None",
30
+ "aiter",
31
+ "anext",
32
+ "async",
33
+ "await",
34
+ "breakpoint",
35
+ "match",
36
+ "case"
37
+ ]), f = f.concat([
38
+ "ascii",
39
+ "bytes",
40
+ "exec",
41
+ "print"
42
+ ]);
43
+ var h = /* @__PURE__ */ RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))", "i");
44
+ } else {
45
+ var m = a.identifiers || /^[_A-Za-z][_A-Za-z0-9]*/;
46
+ d = d.concat(["exec", "print"]), f = f.concat([
47
+ "apply",
48
+ "basestring",
49
+ "buffer",
50
+ "cmp",
51
+ "coerce",
52
+ "execfile",
53
+ "file",
54
+ "intern",
55
+ "long",
56
+ "raw_input",
57
+ "reduce",
58
+ "reload",
59
+ "unichr",
60
+ "unicode",
61
+ "xrange",
62
+ "None"
63
+ ]);
64
+ var h = /* @__PURE__ */ RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))", "i");
65
+ }
66
+ var g = e(d), _ = e(f);
67
+ function v(e, t) {
68
+ var n = e.sol() && t.lastToken != "\\";
69
+ if (n && (t.indent = e.indentation()), n && i(t).type == "py") {
70
+ var r = i(t).offset;
71
+ if (e.eatSpace()) {
72
+ var a = e.indentation();
73
+ return a > r ? S(e, t) : a < r && w(e, t) && e.peek() != "#" && (t.errorToken = !0), null;
74
+ }
75
+ var o = y(e, t);
76
+ return r > 0 && w(e, t) && (o += " error"), o;
77
+ }
78
+ return y(e, t);
79
+ }
80
+ function y(e, n, r) {
81
+ if (e.eatSpace()) return null;
82
+ if (!r && e.match(/^#.*/)) return "comment";
83
+ if (e.match(/^[0-9\.]/, !1)) {
84
+ var i = !1;
85
+ if (e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i) && (i = !0), e.match(/^[\d_]+\.\d*/) && (i = !0), e.match(/^\.\d+/) && (i = !0), i) return e.eat(/J/i), "number";
86
+ var a = !1;
87
+ if (e.match(/^0x[0-9a-f_]+/i) && (a = !0), e.match(/^0b[01_]+/i) && (a = !0), e.match(/^0o[0-7_]+/i) && (a = !0), e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/) && (e.eat(/J/i), a = !0), e.match(/^0(?![\dx])/i) && (a = !0), a) return e.eat(/L/i), "number";
88
+ }
89
+ if (e.match(h)) return e.current().toLowerCase().indexOf("f") === -1 ? (n.tokenize = x(e.current(), n.tokenize), n.tokenize(e, n)) : (n.tokenize = b(e.current(), n.tokenize), n.tokenize(e, n));
90
+ for (var l = 0; l < c.length; l++) if (e.match(c[l])) return "operator";
91
+ return e.match(s) ? "punctuation" : n.lastToken == "." && e.match(m) ? "property" : e.match(g) || e.match(t) ? "keyword" : e.match(_) ? "builtin" : e.match(/^(self|cls)\b/) ? "self" : e.match(m) ? n.lastToken == "def" || n.lastToken == "class" ? "def" : "variable" : (e.next(), r ? null : o);
92
+ }
93
+ function b(e, t) {
94
+ for (; "rubf".indexOf(e.charAt(0).toLowerCase()) >= 0;) e = e.substr(1);
95
+ var n = e.length == 1, r = "string";
96
+ function i(e) {
97
+ return function(t, n) {
98
+ var r = y(t, n, !0);
99
+ return r == "punctuation" && (t.current() == "{" ? n.tokenize = i(e + 1) : t.current() == "}" && (n.tokenize = e > 1 ? i(e - 1) : s)), r;
100
+ };
101
+ }
102
+ function s(s, c) {
103
+ for (; !s.eol();) if (s.eatWhile(/[^'"\{\}\\]/), s.eat("\\")) {
104
+ if (s.next(), n && s.eol()) return r;
105
+ } else if (s.match(e)) return c.tokenize = t, r;
106
+ else if (s.match("{{")) return r;
107
+ else if (s.match("{", !1)) return c.tokenize = i(0), s.current() ? r : c.tokenize(s, c);
108
+ else if (s.match("}}")) return r;
109
+ else if (s.match("}")) return o;
110
+ else s.eat(/['"]/);
111
+ if (n) {
112
+ if (a.singleLineStringErrors) return o;
113
+ c.tokenize = t;
114
+ }
115
+ return r;
116
+ }
117
+ return s.isString = !0, s;
118
+ }
119
+ function x(e, t) {
120
+ for (; "rubf".indexOf(e.charAt(0).toLowerCase()) >= 0;) e = e.substr(1);
121
+ var n = e.length == 1, r = "string";
122
+ function i(i, s) {
123
+ for (; !i.eol();) if (i.eatWhile(/[^'"\\]/), i.eat("\\")) {
124
+ if (i.next(), n && i.eol()) return r;
125
+ } else if (i.match(e)) return s.tokenize = t, r;
126
+ else i.eat(/['"]/);
127
+ if (n) {
128
+ if (a.singleLineStringErrors) return o;
129
+ s.tokenize = t;
130
+ }
131
+ return r;
132
+ }
133
+ return i.isString = !0, i;
134
+ }
135
+ function S(e, t) {
136
+ for (; i(t).type != "py";) t.scopes.pop();
137
+ t.scopes.push({
138
+ offset: i(t).offset + e.indentUnit,
139
+ type: "py",
140
+ align: null
141
+ });
142
+ }
143
+ function C(e, t, n) {
144
+ var r = e.match(/^[\s\[\{\(]*(?:#|$)/, !1) ? null : e.column() + 1;
145
+ t.scopes.push({
146
+ offset: t.indent + (u || e.indentUnit),
147
+ type: n,
148
+ align: r
149
+ });
150
+ }
151
+ function w(e, t) {
152
+ for (var n = e.indentation(); t.scopes.length > 1 && i(t).offset > n;) {
153
+ if (i(t).type != "py") return !0;
154
+ t.scopes.pop();
155
+ }
156
+ return i(t).offset != n;
157
+ }
158
+ function T(e, t) {
159
+ e.sol() && (t.beginningOfLine = !0, t.dedent = !1);
160
+ var n = t.tokenize(e, t), r = e.current();
161
+ if (t.beginningOfLine && r == "@") return e.match(m, !1) ? "meta" : p ? "operator" : o;
162
+ if (/\S/.test(r) && (t.beginningOfLine = !1), (n == "variable" || n == "builtin") && t.lastToken == "meta" && (n = "meta"), (r == "pass" || r == "return") && (t.dedent = !0), r == "lambda" && (t.lambda = !0), r == ":" && !t.lambda && i(t).type == "py" && e.match(/^\s*(?:#|$)/, !1) && S(e, t), r.length == 1 && !/string|comment/.test(n)) {
163
+ var a = "[({".indexOf(r);
164
+ if (a != -1 && C(e, t, "])}".slice(a, a + 1)), a = "])}".indexOf(r), a != -1) {
165
+ if (i(t).type == r) t.indent = t.scopes.pop().offset - (u || e.indentUnit);
166
+ else return o;
167
+ }
168
+ }
169
+ return t.dedent && e.eol() && i(t).type == "py" && t.scopes.length > 1 && t.scopes.pop(), n;
170
+ }
171
+ return {
172
+ name: "python",
173
+ startState: function() {
174
+ return {
175
+ tokenize: v,
176
+ scopes: [{
177
+ offset: 0,
178
+ type: "py",
179
+ align: null
180
+ }],
181
+ indent: 0,
182
+ lastToken: null,
183
+ lambda: !1,
184
+ dedent: 0
185
+ };
186
+ },
187
+ token: function(e, t) {
188
+ var n = t.errorToken;
189
+ n && (t.errorToken = !1);
190
+ var r = T(e, t);
191
+ return r && r != "comment" && (t.lastToken = r == "keyword" || r == "punctuation" ? e.current() : r), r == "punctuation" && (r = null), e.eol() && t.lambda && (t.lambda = !1), n ? o : r;
192
+ },
193
+ indent: function(e, t, n) {
194
+ if (e.tokenize != v) return e.tokenize.isString ? null : 0;
195
+ var r = i(e), a = r.type == t.charAt(0) || r.type == "py" && !e.dedent && /^(else:|elif |except |finally:)/.test(t);
196
+ return r.align == null ? r.offset - (a ? u || n.unit : 0) : r.align - +!!a;
197
+ },
198
+ languageData: {
199
+ autocomplete: n.concat(r).concat(["exec", "print"]),
200
+ indentOnInput: /^\s*([\}\]\)]|else:|elif |except |finally:)$/,
201
+ commentTokens: { line: "#" },
202
+ closeBrackets: { brackets: [
203
+ "(",
204
+ "[",
205
+ "{",
206
+ "'",
207
+ "\"",
208
+ "'''",
209
+ "\"\"\""
210
+ ] }
211
+ }
212
+ };
213
+ }
214
+ var o = function(e) {
215
+ return e.split(" ");
216
+ };
217
+ a({});
218
+ var s = a({ extra_keywords: o("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE") });
219
+ export { s as cython };
@@ -0,0 +1,82 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/q.js
2
+ var e, t = r(/* @__PURE__ */ "abs.acos.aj.aj0.all.and.any.asc.asin.asof.atan.attr.avg.avgs.bin.by.ceiling.cols.cor.cos.count.cov.cross.csv.cut.delete.deltas.desc.dev.differ.distinct.div.do.each.ej.enlist.eval.except.exec.exit.exp.fby.fills.first.fkeys.flip.floor.from.get.getenv.group.gtime.hclose.hcount.hdel.hopen.hsym.iasc.idesc.if.ij.in.insert.inter.inv.key.keys.last.like.list.lj.load.log.lower.lsq.ltime.ltrim.mavg.max.maxs.mcount.md5.mdev.med.meta.min.mins.mmax.mmin.mmu.mod.msum.neg.next.not.null.or.over.parse.peach.pj.plist.prd.prds.prev.prior.rand.rank.ratios.raze.read0.read1.reciprocal.reverse.rload.rotate.rsave.rtrim.save.scan.select.set.setenv.show.signum.sin.sqrt.ss.ssr.string.sublist.sum.sums.sv.system.tables.tan.til.trim.txf.type.uj.ungroup.union.update.upper.upsert.value.var.view.views.vs.wavg.where.where.while.within.wj.wj1.wsum.xasc.xbar.xcol.xcols.xdesc.xexp.xgroup.xkey.xlog.xprev.xrank".split(".")), n = /[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;
3
+ function r(e) {
4
+ return RegExp("^(" + e.join("|") + ")$");
5
+ }
6
+ function i(r, o) {
7
+ var l = r.sol(), u = r.next();
8
+ if (e = null, l) {
9
+ if (u == "/") return (o.tokenize = a)(r, o);
10
+ if (u == "\\") return r.eol() || /\s/.test(r.peek()) ? (r.skipToEnd(), /^\\\s*$/.test(r.current()) ? (o.tokenize = s)(r) : o.tokenize = i, "comment") : (o.tokenize = i, "builtin");
11
+ }
12
+ if (/\s/.test(u)) return r.peek() == "/" ? (r.skipToEnd(), "comment") : "null";
13
+ if (u == "\"") return (o.tokenize = c)(r, o);
14
+ if (u == "`") return r.eatWhile(/[A-Za-z\d_:\/.]/), "macroName";
15
+ if (u == "." && /\d/.test(r.peek()) || /\d/.test(u)) {
16
+ var d = null;
17
+ return r.backUp(1), r.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/) || r.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/) || r.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/) || r.match(/^\d+[ptuv]{1}/) ? d = "temporal" : (r.match(/^0[NwW]{1}/) || r.match(/^0x[\da-fA-F]*/) || r.match(/^[01]+[b]{1}/) || r.match(/^\d+[chijn]{1}/) || r.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/)) && (d = "number"), d && (!(u = r.peek()) || n.test(u)) ? d : (r.next(), "error");
18
+ }
19
+ return /[A-Za-z]|\./.test(u) ? (r.eatWhile(/[A-Za-z._\d]/), t.test(r.current()) ? "keyword" : "variable") : /[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(u) || /[{}\(\[\]\)]/.test(u) ? null : "error";
20
+ }
21
+ function a(e, t) {
22
+ return e.skipToEnd(), /^\/\s*$/.test(e.current()) ? (t.tokenize = o)(e, t) : t.tokenize = i, "comment";
23
+ }
24
+ function o(e, t) {
25
+ var n = e.sol() && e.peek() == "\\";
26
+ return e.skipToEnd(), n && /^\\\s*$/.test(e.current()) && (t.tokenize = i), "comment";
27
+ }
28
+ function s(e) {
29
+ return e.skipToEnd(), "comment";
30
+ }
31
+ function c(e, t) {
32
+ for (var n = !1, r, a = !1; r = e.next();) {
33
+ if (r == "\"" && !n) {
34
+ a = !0;
35
+ break;
36
+ }
37
+ n = !n && r == "\\";
38
+ }
39
+ return a && (t.tokenize = i), "string";
40
+ }
41
+ function l(e, t, n) {
42
+ e.context = {
43
+ prev: e.context,
44
+ indent: e.indent,
45
+ col: n,
46
+ type: t
47
+ };
48
+ }
49
+ function u(e) {
50
+ e.indent = e.context.indent, e.context = e.context.prev;
51
+ }
52
+ var d = {
53
+ name: "q",
54
+ startState: function() {
55
+ return {
56
+ tokenize: i,
57
+ context: null,
58
+ indent: 0,
59
+ col: 0
60
+ };
61
+ },
62
+ token: function(t, n) {
63
+ t.sol() && (n.context && n.context.align == null && (n.context.align = !1), n.indent = t.indentation());
64
+ var r = n.tokenize(t, n);
65
+ if (r != "comment" && n.context && n.context.align == null && n.context.type != "pattern" && (n.context.align = !0), e == "(") l(n, ")", t.column());
66
+ else if (e == "[") l(n, "]", t.column());
67
+ else if (e == "{") l(n, "}", t.column());
68
+ else if (/[\]\}\)]/.test(e)) {
69
+ for (; n.context && n.context.type == "pattern";) u(n);
70
+ n.context && e == n.context.type && u(n);
71
+ } else e == "." && n.context && n.context.type == "pattern" ? u(n) : /atom|string|variable/.test(r) && n.context && (/[\}\]]/.test(n.context.type) ? l(n, "pattern", t.column()) : n.context.type == "pattern" && !n.context.align && (n.context.align = !0, n.context.col = t.column()));
72
+ return r;
73
+ },
74
+ indent: function(e, t, n) {
75
+ var r = t && t.charAt(0), i = e.context;
76
+ if (/[\]\}]/.test(r)) for (; i && i.type == "pattern";) i = i.prev;
77
+ var a = i && r == i.type;
78
+ return i ? i.type == "pattern" ? i.col : i.align ? i.col + +!a : i.indent + (a ? 0 : n.unit) : 0;
79
+ },
80
+ languageData: { commentTokens: { line: "/" } }
81
+ };
82
+ export { d as q };
@@ -0,0 +1,133 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/r.js
2
+ function e(e) {
3
+ for (var t = {}, n = 0; n < e.length; ++n) t[e[n]] = !0;
4
+ return t;
5
+ }
6
+ var t = [
7
+ "NULL",
8
+ "NA",
9
+ "Inf",
10
+ "NaN",
11
+ "NA_integer_",
12
+ "NA_real_",
13
+ "NA_complex_",
14
+ "NA_character_",
15
+ "TRUE",
16
+ "FALSE"
17
+ ], n = [
18
+ "list",
19
+ "quote",
20
+ "bquote",
21
+ "eval",
22
+ "return",
23
+ "call",
24
+ "parse",
25
+ "deparse"
26
+ ], r = [
27
+ "if",
28
+ "else",
29
+ "repeat",
30
+ "while",
31
+ "function",
32
+ "for",
33
+ "in",
34
+ "next",
35
+ "break"
36
+ ], i = [
37
+ "if",
38
+ "else",
39
+ "repeat",
40
+ "while",
41
+ "function",
42
+ "for"
43
+ ], a = e(t), o = e(n), s = e(r), c = e(i), l = /[+\-*\/^<>=!&|~$:]/, u;
44
+ function d(e, t) {
45
+ u = null;
46
+ var n = e.next();
47
+ if (n == "#") return e.skipToEnd(), "comment";
48
+ if (n == "0" && e.eat("x")) return e.eatWhile(/[\da-f]/i), "number";
49
+ if (n == "." && e.eat(/\d/)) return e.match(/\d*(?:e[+\-]?\d+)?/), "number";
50
+ if (/\d/.test(n)) return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/), "number";
51
+ if (n == "'" || n == "\"") return t.tokenize = f(n), "string";
52
+ if (n == "`") return e.match(/[^`]+`/), "string.special";
53
+ if (n == "." && e.match(/.(?:[.]|\d+)/)) return "keyword";
54
+ if (/[a-zA-Z\.]/.test(n)) {
55
+ e.eatWhile(/[\w\.]/);
56
+ var r = e.current();
57
+ return a.propertyIsEnumerable(r) ? "atom" : s.propertyIsEnumerable(r) ? (c.propertyIsEnumerable(r) && !e.match(/\s*if(\s+|$)/, !1) && (u = "block"), "keyword") : o.propertyIsEnumerable(r) ? "builtin" : "variable";
58
+ }
59
+ return n == "%" ? (e.skipTo("%") && e.next(), "variableName.special") : n == "<" && e.eat("-") || n == "<" && e.match("<-") || n == "-" && e.match(/>>?/) || n == "=" && t.ctx.argList ? "operator" : l.test(n) ? (n == "$" || e.eatWhile(l), "operator") : /[\(\){}\[\];]/.test(n) ? (u = n, n == ";" ? "punctuation" : null) : null;
60
+ }
61
+ function f(e) {
62
+ return function(t, n) {
63
+ if (t.eat("\\")) {
64
+ var r = t.next();
65
+ return r == "x" ? t.match(/^[a-f0-9]{2}/i) : (r == "u" || r == "U") && t.eat("{") && t.skipTo("}") ? t.next() : r == "u" ? t.match(/^[a-f0-9]{4}/i) : r == "U" ? t.match(/^[a-f0-9]{8}/i) : /[0-7]/.test(r) && t.match(/^[0-7]{1,2}/), "string.special";
66
+ }
67
+ for (var i; (i = t.next()) != null;) {
68
+ if (i == e) {
69
+ n.tokenize = d;
70
+ break;
71
+ }
72
+ if (i == "\\") {
73
+ t.backUp(1);
74
+ break;
75
+ }
76
+ }
77
+ return "string";
78
+ };
79
+ }
80
+ var p = 1, m = 2, h = 4;
81
+ function g(e, t, n) {
82
+ e.ctx = {
83
+ type: t,
84
+ indent: e.indent,
85
+ flags: 0,
86
+ column: n.column(),
87
+ prev: e.ctx
88
+ };
89
+ }
90
+ function _(e, t) {
91
+ var n = e.ctx;
92
+ e.ctx = {
93
+ type: n.type,
94
+ indent: n.indent,
95
+ flags: n.flags | t,
96
+ column: n.column,
97
+ prev: n.prev
98
+ };
99
+ }
100
+ function v(e) {
101
+ e.indent = e.ctx.indent, e.ctx = e.ctx.prev;
102
+ }
103
+ var y = {
104
+ name: "r",
105
+ startState: function(e) {
106
+ return {
107
+ tokenize: d,
108
+ ctx: {
109
+ type: "top",
110
+ indent: -e,
111
+ flags: m
112
+ },
113
+ indent: 0,
114
+ afterIdent: !1
115
+ };
116
+ },
117
+ token: function(e, t) {
118
+ if (e.sol() && (t.ctx.flags & 3 || (t.ctx.flags |= m), t.ctx.flags & h && v(t), t.indent = e.indentation()), e.eatSpace()) return null;
119
+ var n = t.tokenize(e, t);
120
+ return n != "comment" && (t.ctx.flags & m) == 0 && _(t, p), (u == ";" || u == "{" || u == "}") && t.ctx.type == "block" && v(t), u == "{" ? g(t, "}", e) : u == "(" ? (g(t, ")", e), t.afterIdent && (t.ctx.argList = !0)) : u == "[" ? g(t, "]", e) : u == "block" ? g(t, "block", e) : u == t.ctx.type ? v(t) : t.ctx.type == "block" && n != "comment" && _(t, h), t.afterIdent = n == "variable" || n == "keyword", n;
121
+ },
122
+ indent: function(e, t, n) {
123
+ if (e.tokenize != d) return 0;
124
+ var r = t && t.charAt(0), i = e.ctx, a = r == i.type;
125
+ return i.flags & h && (i = i.prev), i.type == "block" ? i.indent + (r == "{" ? 0 : n.unit) : i.flags & p ? i.column + +!a : i.indent + (a ? 0 : n.unit);
126
+ },
127
+ languageData: {
128
+ wordChars: ".",
129
+ commentTokens: { line: "#" },
130
+ autocomplete: t.concat(n, r)
131
+ }
132
+ };
133
+ export { y as r };
@@ -0,0 +1,19 @@
1
+ // \0rolldown/runtime.js
2
+ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
3
+ let r = {};
4
+ for (var i in e) t(r, i, {
5
+ get: e[i],
6
+ enumerable: !0
7
+ });
8
+ return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ }, c = (e, i, o, s) => {
10
+ if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
11
+ get: ((e) => i[e]).bind(null, d),
12
+ enumerable: !(s = n(i, d)) || s.enumerable
13
+ });
14
+ return e;
15
+ }, l = (n, r, o) => (o = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
16
+ value: n,
17
+ enumerable: !0
18
+ }) : o, n));
19
+ export { s as n, l as r, o as t };
@@ -0,0 +1,39 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/rpm.js
2
+ var e = /^-+$/, t = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /, n = /^[\w+.-]+@[\w.-]+/, r = {
3
+ name: "rpmchanges",
4
+ token: function(r) {
5
+ return r.sol() && (r.match(e) || r.match(t)) ? "tag" : r.match(n) ? "string" : (r.next(), null);
6
+ }
7
+ }, i = /^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/, a = /^[a-zA-Z0-9()]+:/, o = /^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/, s = /^%(ifnarch|ifarch|if)/, c = /^%(else|endif)/, l = /^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/, u = {
8
+ name: "rpmspec",
9
+ startState: function() {
10
+ return {
11
+ controlFlow: !1,
12
+ macroParameters: !1,
13
+ section: !1
14
+ };
15
+ },
16
+ token: function(e, t) {
17
+ if (e.peek() == "#") return e.skipToEnd(), "comment";
18
+ if (e.sol()) {
19
+ if (e.match(a)) return "header";
20
+ if (e.match(o)) return "atom";
21
+ }
22
+ if (e.match(/^\$\w+/) || e.match(/^\$\{\w+\}/)) return "def";
23
+ if (e.match(c)) return "keyword";
24
+ if (e.match(s)) return t.controlFlow = !0, "keyword";
25
+ if (t.controlFlow) {
26
+ if (e.match(l)) return "operator";
27
+ if (e.match(/^(\d+)/)) return "number";
28
+ e.eol() && (t.controlFlow = !1);
29
+ }
30
+ if (e.match(i)) return e.eol() && (t.controlFlow = !1), "number";
31
+ if (e.match(/^%[\w]+/)) return e.match("(") && (t.macroParameters = !0), "keyword";
32
+ if (t.macroParameters) {
33
+ if (e.match(/^\d+/)) return "number";
34
+ if (e.match(")")) return t.macroParameters = !1, "keyword";
35
+ }
36
+ return e.match(/^%\{\??[\w \-\:\!]+\}/) ? (e.eol() && (t.controlFlow = !1), "def") : (e.next(), null);
37
+ }
38
+ };
39
+ export { r as rpmChanges, u as rpmSpec };
@@ -0,0 +1,165 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/ruby.js
2
+ function e(e) {
3
+ for (var t = {}, n = 0, r = e.length; n < r; ++n) t[e[n]] = !0;
4
+ return t;
5
+ }
6
+ var t = /* @__PURE__ */ "alias.and.BEGIN.begin.break.case.class.def.defined?.do.else.elsif.END.end.ensure.false.for.if.in.module.next.not.or.redo.rescue.retry.return.self.super.then.true.undef.unless.until.when.while.yield.nil.raise.throw.catch.fail.loop.callcc.caller.lambda.proc.public.protected.private.require.load.require_relative.extend.autoload.__END__.__FILE__.__LINE__.__dir__".split("."), n = e(t), r = e([
7
+ "def",
8
+ "class",
9
+ "case",
10
+ "for",
11
+ "while",
12
+ "until",
13
+ "module",
14
+ "catch",
15
+ "loop",
16
+ "proc",
17
+ "begin"
18
+ ]), i = e(["end", "until"]), a = {
19
+ "[": "]",
20
+ "{": "}",
21
+ "(": ")"
22
+ }, o = {
23
+ "]": "[",
24
+ "}": "{",
25
+ ")": "("
26
+ }, s;
27
+ function c(e, t, n) {
28
+ return n.tokenize.push(e), e(t, n);
29
+ }
30
+ function l(e, t) {
31
+ if (e.sol() && e.match("=begin") && e.eol()) return t.tokenize.push(h), "comment";
32
+ if (e.eatSpace()) return null;
33
+ var n = e.next(), r;
34
+ if (n == "`" || n == "'" || n == "\"") return c(p(n, "string", n == "\"" || n == "`"), e, t);
35
+ if (n == "/") return u(e) ? c(p(n, "string.special", !0), e, t) : "operator";
36
+ if (n == "%") {
37
+ var i = "string", o = !0;
38
+ e.eat("s") ? i = "atom" : e.eat(/[WQ]/) ? i = "string" : e.eat(/[r]/) ? i = "string.special" : e.eat(/[wxq]/) && (i = "string", o = !1);
39
+ var l = e.eat(/[^\w\s=]/);
40
+ return l ? (a.propertyIsEnumerable(l) && (l = a[l]), c(p(l, i, o, !0), e, t)) : "operator";
41
+ }
42
+ if (n == "#") return e.skipToEnd(), "comment";
43
+ if (n == "<" && (r = e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/))) return c(m(r[2], r[1]), e, t);
44
+ if (n == "0") return e.eat("x") ? e.eatWhile(/[\da-fA-F]/) : e.eat("b") ? e.eatWhile(/[01]/) : e.eat(".") ? e.eat(/[\d_]*(?:[eE][+\-]?[\d_]+)?/) : e.eatWhile(/[0-7]/), "number";
45
+ if (/\d/.test(n)) return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/), "number";
46
+ if (n == "?") {
47
+ for (; e.match(/^\\[CM]-/););
48
+ return e.eat("\\") ? e.eatWhile(/\w/) : e.next(), "string";
49
+ }
50
+ if (n == ":") return e.eat("'") ? c(p("'", "atom", !1), e, t) : e.eat("\"") ? c(p("\"", "atom", !0), e, t) : e.eat(/[\<\>]/) ? (e.eat(/[\<\>]/), "atom") : e.eat(/[\+\-\*\/\&\|\:\!]/) ? "atom" : e.eat(/[a-zA-Z$@_\xa1-\uffff]/) ? (e.eatWhile(/[\w$\xa1-\uffff]/), e.eat(/[\?\!\=]/), "atom") : "operator";
51
+ if (n == "@" && e.match(/^@?[a-zA-Z_\xa1-\uffff]/)) return e.eat("@"), e.eatWhile(/[\w\xa1-\uffff]/), "propertyName";
52
+ if (n == "$") return e.eat(/[a-zA-Z_]/) ? e.eatWhile(/[\w]/) : e.eat(/\d/) ? e.eat(/\d/) : e.next(), "variableName.special";
53
+ if (/[a-zA-Z_\xa1-\uffff]/.test(n)) return e.eatWhile(/[\w\xa1-\uffff]/), e.eat(/[\?\!]/), e.eat(":") ? "atom" : "variable";
54
+ if (n == "|" && (t.varList || t.lastTok == "{" || t.lastTok == "do")) return s = "|", null;
55
+ if (/[\(\)\[\]{}\\;]/.test(n)) return s = n, null;
56
+ if (n == "-" && e.eat(">")) return "operator";
57
+ if (/[=+\-\/*:\.^%<>~|]/.test(n)) {
58
+ var d = e.eatWhile(/[=+\-\/*:\.^%<>~|]/);
59
+ return n == "." && !d && (s = "."), "operator";
60
+ }
61
+ return null;
62
+ }
63
+ function u(e) {
64
+ for (var t = e.pos, n = 0, r, i = !1, a = !1; (r = e.next()) != null;) if (a) a = !1;
65
+ else {
66
+ if ("[{(".indexOf(r) > -1) n++;
67
+ else if ("]})".indexOf(r) > -1) {
68
+ if (n--, n < 0) break;
69
+ } else if (r == "/" && n == 0) {
70
+ i = !0;
71
+ break;
72
+ }
73
+ a = r == "\\";
74
+ }
75
+ return e.backUp(e.pos - t), i;
76
+ }
77
+ function d(e) {
78
+ return e ||= 1, function(t, n) {
79
+ if (t.peek() == "}") {
80
+ if (e == 1) return n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n);
81
+ n.tokenize[n.tokenize.length - 1] = d(e - 1);
82
+ } else t.peek() == "{" && (n.tokenize[n.tokenize.length - 1] = d(e + 1));
83
+ return l(t, n);
84
+ };
85
+ }
86
+ function f() {
87
+ var e = !1;
88
+ return function(t, n) {
89
+ return e ? (n.tokenize.pop(), n.tokenize[n.tokenize.length - 1](t, n)) : (e = !0, l(t, n));
90
+ };
91
+ }
92
+ function p(e, t, n, r) {
93
+ return function(i, a) {
94
+ var o = !1, s;
95
+ for (a.context.type === "read-quoted-paused" && (a.context = a.context.prev, i.eat("}")); (s = i.next()) != null;) {
96
+ if (s == e && (r || !o)) {
97
+ a.tokenize.pop();
98
+ break;
99
+ }
100
+ if (n && s == "#" && !o) {
101
+ if (i.eat("{")) {
102
+ e == "}" && (a.context = {
103
+ prev: a.context,
104
+ type: "read-quoted-paused"
105
+ }), a.tokenize.push(d());
106
+ break;
107
+ }
108
+ if (/[@\$]/.test(i.peek())) {
109
+ a.tokenize.push(f());
110
+ break;
111
+ }
112
+ }
113
+ o = !o && s == "\\";
114
+ }
115
+ return t;
116
+ };
117
+ }
118
+ function m(e, t) {
119
+ return function(n, r) {
120
+ return t && n.eatSpace(), n.match(e) ? r.tokenize.pop() : n.skipToEnd(), "string";
121
+ };
122
+ }
123
+ function h(e, t) {
124
+ return e.sol() && e.match("=end") && e.eol() && t.tokenize.pop(), e.skipToEnd(), "comment";
125
+ }
126
+ var g = {
127
+ name: "ruby",
128
+ startState: function(e) {
129
+ return {
130
+ tokenize: [l],
131
+ indented: 0,
132
+ context: {
133
+ type: "top",
134
+ indented: -e
135
+ },
136
+ continuedLine: !1,
137
+ lastTok: null,
138
+ varList: !1
139
+ };
140
+ },
141
+ token: function(e, t) {
142
+ s = null, e.sol() && (t.indented = e.indentation());
143
+ var a = t.tokenize[t.tokenize.length - 1](e, t), o, c = s;
144
+ if (a == "variable") {
145
+ var l = e.current();
146
+ a = t.lastTok == "." ? "property" : n.propertyIsEnumerable(e.current()) ? "keyword" : /^[A-Z]/.test(l) ? "tag" : t.lastTok == "def" || t.lastTok == "class" || t.varList ? "def" : "variable", a == "keyword" && (c = l, r.propertyIsEnumerable(l) ? o = "indent" : i.propertyIsEnumerable(l) ? o = "dedent" : ((l == "if" || l == "unless") && e.column() == e.indentation() || l == "do" && t.context.indented < t.indented) && (o = "indent"));
147
+ }
148
+ return (s || a && a != "comment") && (t.lastTok = c), s == "|" && (t.varList = !t.varList), o == "indent" || /[\(\[\{]/.test(s) ? t.context = {
149
+ prev: t.context,
150
+ type: s || a,
151
+ indented: t.indented
152
+ } : (o == "dedent" || /[\)\]\}]/.test(s)) && t.context.prev && (t.context = t.context.prev), e.eol() && (t.continuedLine = s == "\\" || a == "operator"), a;
153
+ },
154
+ indent: function(e, t, n) {
155
+ if (e.tokenize[e.tokenize.length - 1] != l) return null;
156
+ var r = t && t.charAt(0), i = e.context, a = i.type == o[r] || i.type == "keyword" && /^(?:end|until|else|elsif|when|rescue)\b/.test(t);
157
+ return i.indented + (a ? 0 : n.unit) + (e.continuedLine ? n.unit : 0);
158
+ },
159
+ languageData: {
160
+ indentOnInput: /^\s*(?:end|rescue|elsif|else|\})$/,
161
+ commentTokens: { line: "#" },
162
+ autocomplete: t
163
+ }
164
+ };
165
+ export { g as ruby };