editor.md-next 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) 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 +18912 -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 +5 -0
  130. package/dist/types/cm/themes.d.ts.map +1 -0
  131. package/dist/types/defaults.d.ts +5 -0
  132. package/dist/types/defaults.d.ts.map +1 -0
  133. package/dist/types/dialogs/code.d.ts +5 -0
  134. package/dist/types/dialogs/code.d.ts.map +1 -0
  135. package/dist/types/dialogs/data/html-entities-data.d.ts +9 -0
  136. package/dist/types/dialogs/data/html-entities-data.d.ts.map +1 -0
  137. package/dist/types/dialogs/dialog.d.ts +37 -0
  138. package/dist/types/dialogs/dialog.d.ts.map +1 -0
  139. package/dist/types/dialogs/emoji.d.ts +4 -0
  140. package/dist/types/dialogs/emoji.d.ts.map +1 -0
  141. package/dist/types/dialogs/entities.d.ts +4 -0
  142. package/dist/types/dialogs/entities.d.ts.map +1 -0
  143. package/dist/types/dialogs/form.d.ts +12 -0
  144. package/dist/types/dialogs/form.d.ts.map +1 -0
  145. package/dist/types/dialogs/image.d.ts +4 -0
  146. package/dist/types/dialogs/image.d.ts.map +1 -0
  147. package/dist/types/dialogs/link.d.ts +6 -0
  148. package/dist/types/dialogs/link.d.ts.map +1 -0
  149. package/dist/types/dialogs/misc.d.ts +6 -0
  150. package/dist/types/dialogs/misc.d.ts.map +1 -0
  151. package/dist/types/dialogs/registry.d.ts +8 -0
  152. package/dist/types/dialogs/registry.d.ts.map +1 -0
  153. package/dist/types/dialogs/table.d.ts +4 -0
  154. package/dist/types/dialogs/table.d.ts.map +1 -0
  155. package/dist/types/editor.d.ts +105 -0
  156. package/dist/types/editor.d.ts.map +1 -0
  157. package/dist/types/features/paste-drop.d.ts +4 -0
  158. package/dist/types/features/paste-drop.d.ts.map +1 -0
  159. package/dist/types/features/view-modes.d.ts +8 -0
  160. package/dist/types/features/view-modes.d.ts.map +1 -0
  161. package/dist/types/i18n/en.d.ts +3 -0
  162. package/dist/types/i18n/en.d.ts.map +1 -0
  163. package/dist/types/i18n/index.d.ts +9 -0
  164. package/dist/types/i18n/index.d.ts.map +1 -0
  165. package/dist/types/i18n/zh-cn.d.ts +3 -0
  166. package/dist/types/i18n/zh-cn.d.ts.map +1 -0
  167. package/dist/types/i18n/zh-tw.d.ts +3 -0
  168. package/dist/types/i18n/zh-tw.d.ts.map +1 -0
  169. package/dist/types/index.d.ts +14 -0
  170. package/dist/types/index.d.ts.map +1 -0
  171. package/dist/types/lifecycle/layout.d.ts +11 -0
  172. package/dist/types/lifecycle/layout.d.ts.map +1 -0
  173. package/dist/types/lifecycle/mount.d.ts +12 -0
  174. package/dist/types/lifecycle/mount.d.ts.map +1 -0
  175. package/dist/types/markdown/cdn-lazy.d.ts +29 -0
  176. package/dist/types/markdown/cdn-lazy.d.ts.map +1 -0
  177. package/dist/types/markdown/data/emoji-data.d.ts +13 -0
  178. package/dist/types/markdown/data/emoji-data.d.ts.map +1 -0
  179. package/dist/types/markdown/engine.d.ts +18 -0
  180. package/dist/types/markdown/engine.d.ts.map +1 -0
  181. package/dist/types/markdown/engine.test.d.ts +2 -0
  182. package/dist/types/markdown/engine.test.d.ts.map +1 -0
  183. package/dist/types/markdown/highlight.d.ts +9 -0
  184. package/dist/types/markdown/highlight.d.ts.map +1 -0
  185. package/dist/types/markdown/plugin-emoji.d.ts +12 -0
  186. package/dist/types/markdown/plugin-emoji.d.ts.map +1 -0
  187. package/dist/types/markdown/plugin-fence.d.ts +3 -0
  188. package/dist/types/markdown/plugin-fence.d.ts.map +1 -0
  189. package/dist/types/markdown/plugin-misc.d.ts +9 -0
  190. package/dist/types/markdown/plugin-misc.d.ts.map +1 -0
  191. package/dist/types/markdown/plugin-tasks.d.ts +4 -0
  192. package/dist/types/markdown/plugin-tasks.d.ts.map +1 -0
  193. package/dist/types/markdown/plugin-tex.d.ts +3 -0
  194. package/dist/types/markdown/plugin-tex.d.ts.map +1 -0
  195. package/dist/types/markdown/plugin-toc.d.ts +18 -0
  196. package/dist/types/markdown/plugin-toc.d.ts.map +1 -0
  197. package/dist/types/normalize.d.ts +3 -0
  198. package/dist/types/normalize.d.ts.map +1 -0
  199. package/dist/types/preview/pane.d.ts +9 -0
  200. package/dist/types/preview/pane.d.ts.map +1 -0
  201. package/dist/types/preview/post-render.d.ts +19 -0
  202. package/dist/types/preview/post-render.d.ts.map +1 -0
  203. package/dist/types/preview/sync-scroll.d.ts +13 -0
  204. package/dist/types/preview/sync-scroll.d.ts.map +1 -0
  205. package/dist/types/preview/toc.d.ts +15 -0
  206. package/dist/types/preview/toc.d.ts.map +1 -0
  207. package/dist/types/render-to.d.ts +3 -0
  208. package/dist/types/render-to.d.ts.map +1 -0
  209. package/dist/types/toolbar/handlers.d.ts +4 -0
  210. package/dist/types/toolbar/handlers.d.ts.map +1 -0
  211. package/dist/types/toolbar/icons.d.ts +5 -0
  212. package/dist/types/toolbar/icons.d.ts.map +1 -0
  213. package/dist/types/toolbar/modes.d.ts +20 -0
  214. package/dist/types/toolbar/modes.d.ts.map +1 -0
  215. package/dist/types/toolbar/toolbar.d.ts +16 -0
  216. package/dist/types/toolbar/toolbar.d.ts.map +1 -0
  217. package/dist/types/types/common.d.ts +7 -0
  218. package/dist/types/types/common.d.ts.map +1 -0
  219. package/dist/types/types/events.d.ts +38 -0
  220. package/dist/types/types/events.d.ts.map +1 -0
  221. package/dist/types/types/lang.d.ts +95 -0
  222. package/dist/types/types/lang.d.ts.map +1 -0
  223. package/dist/types/types/settings.d.ts +170 -0
  224. package/dist/types/types/settings.d.ts.map +1 -0
  225. package/dist/umd/index.umd.cjs +96 -0
  226. package/package.json +69 -3
  227. package/README.md +0 -3
@@ -0,0 +1,80 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/ttcn-cfg.js
2
+ function e(e) {
3
+ for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
4
+ return t;
5
+ }
6
+ var t = {
7
+ name: "ttcn-cfg",
8
+ keywords: e("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),
9
+ fileNCtrlMaskOptions: e("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),
10
+ externalCommands: e("BeginControlPart EndControlPart BeginTestCase EndTestCase"),
11
+ multiLineStrings: !0
12
+ }, n = t.keywords, r = t.fileNCtrlMaskOptions, i = t.externalCommands, a = t.multiLineStrings, o = t.indentStatements !== !1, s = /[\|]/, c;
13
+ function l(e, t) {
14
+ var a = e.next();
15
+ if (a == "\"" || a == "'") return t.tokenize = u(a), t.tokenize(e, t);
16
+ if (/[:=]/.test(a)) return c = a, "punctuation";
17
+ if (a == "#") return e.skipToEnd(), "comment";
18
+ if (/\d/.test(a)) return e.eatWhile(/[\w\.]/), "number";
19
+ if (s.test(a)) return e.eatWhile(s), "operator";
20
+ if (a == "[") return e.eatWhile(/[\w_\]]/), "number";
21
+ e.eatWhile(/[\w\$_]/);
22
+ var o = e.current();
23
+ return n.propertyIsEnumerable(o) ? "keyword" : r.propertyIsEnumerable(o) ? "atom" : i.propertyIsEnumerable(o) ? "deleted" : "variable";
24
+ }
25
+ function u(e) {
26
+ return function(t, n) {
27
+ for (var r = !1, i, o = !1; (i = t.next()) != null;) {
28
+ if (i == e && !r) {
29
+ var s = t.peek();
30
+ s && (s = s.toLowerCase(), (s == "b" || s == "h" || s == "o") && t.next()), o = !0;
31
+ break;
32
+ }
33
+ r = !r && i == "\\";
34
+ }
35
+ return (o || !(r || a)) && (n.tokenize = null), "string";
36
+ };
37
+ }
38
+ function d(e, t, n, r, i) {
39
+ this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i;
40
+ }
41
+ function f(e, t, n) {
42
+ var r = e.indented;
43
+ return e.context && e.context.type == "statement" && (r = e.context.indented), e.context = new d(r, t, n, null, e.context);
44
+ }
45
+ function p(e) {
46
+ var t = e.context.type;
47
+ return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
48
+ }
49
+ var m = {
50
+ name: "ttcn",
51
+ startState: function() {
52
+ return {
53
+ tokenize: null,
54
+ context: new d(0, 0, "top", !1),
55
+ indented: 0,
56
+ startOfLine: !0
57
+ };
58
+ },
59
+ token: function(e, t) {
60
+ var n = t.context;
61
+ if (e.sol() && (n.align ?? (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
62
+ c = null;
63
+ var r = (t.tokenize || l)(e, t);
64
+ if (r == "comment") return r;
65
+ if (n.align ?? (n.align = !0), (c == ";" || c == ":" || c == ",") && n.type == "statement") p(t);
66
+ else if (c == "{") f(t, e.column(), "}");
67
+ else if (c == "[") f(t, e.column(), "]");
68
+ else if (c == "(") f(t, e.column(), ")");
69
+ else if (c == "}") {
70
+ for (; n.type == "statement";) n = p(t);
71
+ for (n.type == "}" && (n = p(t)); n.type == "statement";) n = p(t);
72
+ } else c == n.type ? p(t) : o && ((n.type == "}" || n.type == "top") && c != ";" || n.type == "statement" && c == "newstatement") && f(t, e.column(), "statement");
73
+ return t.startOfLine = !1, r;
74
+ },
75
+ languageData: {
76
+ indentOnInput: /^\s*[{}]$/,
77
+ commentTokens: { line: "#" }
78
+ }
79
+ };
80
+ export { m as ttcnCfg };
@@ -0,0 +1,78 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/turtle.js
2
+ var e;
3
+ function t(e) {
4
+ return RegExp("^(?:" + e.join("|") + ")$", "i");
5
+ }
6
+ t([]);
7
+ var n = t([
8
+ "@prefix",
9
+ "@base",
10
+ "a"
11
+ ]), r = /[*+\-<>=&|]/;
12
+ function i(t, i) {
13
+ var o = t.next();
14
+ if (e = null, o == "<" && !t.match(/^[\s\u00a0=]/, !1)) return t.match(/^[^\s\u00a0>]*>?/), "atom";
15
+ if (o == "\"" || o == "'") return i.tokenize = a(o), i.tokenize(t, i);
16
+ if (/[{}\(\),\.;\[\]]/.test(o)) return e = o, null;
17
+ if (o == "#") return t.skipToEnd(), "comment";
18
+ if (r.test(o)) return t.eatWhile(r), null;
19
+ if (o == ":") return "operator";
20
+ if (t.eatWhile(/[_\w\d]/), t.peek() == ":") return "variableName.special";
21
+ var s = t.current();
22
+ return n.test(s) ? "meta" : o >= "A" && o <= "Z" ? "comment" : "keyword";
23
+ var s;
24
+ }
25
+ function a(e) {
26
+ return function(t, n) {
27
+ for (var r = !1, a; (a = t.next()) != null;) {
28
+ if (a == e && !r) {
29
+ n.tokenize = i;
30
+ break;
31
+ }
32
+ r = !r && a == "\\";
33
+ }
34
+ return "string";
35
+ };
36
+ }
37
+ function o(e, t, n) {
38
+ e.context = {
39
+ prev: e.context,
40
+ indent: e.indent,
41
+ col: n,
42
+ type: t
43
+ };
44
+ }
45
+ function s(e) {
46
+ e.indent = e.context.indent, e.context = e.context.prev;
47
+ }
48
+ var c = {
49
+ name: "turtle",
50
+ startState: function() {
51
+ return {
52
+ tokenize: i,
53
+ context: null,
54
+ indent: 0,
55
+ col: 0
56
+ };
57
+ },
58
+ token: function(t, n) {
59
+ if (t.sol() && (n.context && n.context.align == null && (n.context.align = !1), n.indent = t.indentation()), t.eatSpace()) return null;
60
+ var r = n.tokenize(t, n);
61
+ if (r != "comment" && n.context && n.context.align == null && n.context.type != "pattern" && (n.context.align = !0), e == "(") o(n, ")", t.column());
62
+ else if (e == "[") o(n, "]", t.column());
63
+ else if (e == "{") o(n, "}", t.column());
64
+ else if (/[\]\}\)]/.test(e)) {
65
+ for (; n.context && n.context.type == "pattern";) s(n);
66
+ n.context && e == n.context.type && s(n);
67
+ } else e == "." && n.context && n.context.type == "pattern" ? s(n) : /atom|string|variable/.test(r) && n.context && (/[\}\]]/.test(n.context.type) ? o(n, "pattern", t.column()) : n.context.type == "pattern" && !n.context.align && (n.context.align = !0, n.context.col = t.column()));
68
+ return r;
69
+ },
70
+ indent: function(e, t, n) {
71
+ var r = t && t.charAt(0), i = e.context;
72
+ if (/[\]\}]/.test(r)) for (; i && i.type == "pattern";) i = i.prev;
73
+ var a = i && r == i.type;
74
+ return i ? i.type == "pattern" ? i.col : i.align ? i.col + +!a : i.indent + (a ? 0 : n.unit) : 0;
75
+ },
76
+ languageData: { commentTokens: { line: "#" } }
77
+ };
78
+ export { c as turtle };
@@ -0,0 +1,108 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/vb.js
2
+ var e = "error";
3
+ function t(e) {
4
+ return RegExp("^((" + e.join(")|(") + "))\\b", "i");
5
+ }
6
+ var n = /* @__PURE__ */ RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"), r = /* @__PURE__ */ RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"), i = /* @__PURE__ */ RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"), a = /* @__PURE__ */ RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"), o = /* @__PURE__ */ RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"), s = /* @__PURE__ */ RegExp("^[_A-Za-z][_A-Za-z0-9]*"), c = [
7
+ "class",
8
+ "module",
9
+ "sub",
10
+ "enum",
11
+ "select",
12
+ "while",
13
+ "if",
14
+ "function",
15
+ "get",
16
+ "set",
17
+ "property",
18
+ "try",
19
+ "structure",
20
+ "synclock",
21
+ "using",
22
+ "with"
23
+ ], l = [
24
+ "else",
25
+ "elseif",
26
+ "case",
27
+ "catch",
28
+ "finally"
29
+ ], u = ["next", "loop"], d = [
30
+ "and",
31
+ "andalso",
32
+ "or",
33
+ "orelse",
34
+ "xor",
35
+ "in",
36
+ "not",
37
+ "is",
38
+ "isnot",
39
+ "like"
40
+ ], f = t(d), p = /* @__PURE__ */ "#const.#else.#elseif.#end.#if.#region.addhandler.addressof.alias.as.byref.byval.cbool.cbyte.cchar.cdate.cdbl.cdec.cint.clng.cobj.compare.const.continue.csbyte.cshort.csng.cstr.cuint.culng.cushort.declare.default.delegate.dim.directcast.each.erase.error.event.exit.explicit.false.for.friend.gettype.goto.handles.implements.imports.infer.inherits.interface.isfalse.istrue.lib.me.mod.mustinherit.mustoverride.my.mybase.myclass.namespace.narrowing.new.nothing.notinheritable.notoverridable.of.off.on.operator.option.optional.out.overloads.overridable.overrides.paramarray.partial.private.protected.public.raiseevent.readonly.redim.removehandler.resume.return.shadows.shared.static.step.stop.strict.then.throw.to.true.trycast.typeof.until.until.when.widening.withevents.writeonly".split("."), m = /* @__PURE__ */ "object.boolean.char.string.byte.sbyte.short.ushort.int16.uint16.integer.uinteger.int32.uint32.long.ulong.int64.uint64.decimal.single.double.float.date.datetime.intptr.uintptr".split("."), h = t(p), g = t(m), _ = "\"", v = t(c), y = t(l), b = t(u), x = t(["end"]), S = t(["do"]), C = null;
41
+ function w(e, t) {
42
+ t.currentIndent++;
43
+ }
44
+ function T(e, t) {
45
+ t.currentIndent--;
46
+ }
47
+ function E(t, c) {
48
+ if (t.eatSpace()) return null;
49
+ if (t.peek() === "'") return t.skipToEnd(), "comment";
50
+ if (t.match(/^((&H)|(&O))?[0-9\.a-f]/i, !1)) {
51
+ var l = !1;
52
+ if ((t.match(/^\d*\.\d+F?/i) || t.match(/^\d+\.\d*F?/) || t.match(/^\.\d+F?/)) && (l = !0), l) return t.eat(/J/i), "number";
53
+ var u = !1;
54
+ if (t.match(/^&H[0-9a-f]+/i) || t.match(/^&O[0-7]+/i) ? u = !0 : t.match(/^[1-9]\d*F?/) ? (t.eat(/J/i), u = !0) : t.match(/^0(?![\dx])/i) && (u = !0), u) return t.eat(/L/i), "number";
55
+ }
56
+ return t.match(_) ? (c.tokenize = D(t.current()), c.tokenize(t, c)) : t.match(o) || t.match(a) ? null : t.match(i) || t.match(n) || t.match(f) ? "operator" : t.match(r) ? null : t.match(S) ? (w(t, c), c.doInCurrentLine = !0, "keyword") : t.match(v) ? (c.doInCurrentLine ? c.doInCurrentLine = !1 : w(t, c), "keyword") : t.match(y) ? "keyword" : t.match(x) ? (T(t, c), T(t, c), "keyword") : t.match(b) ? (T(t, c), "keyword") : t.match(g) || t.match(h) ? "keyword" : t.match(s) ? "variable" : (t.next(), e);
57
+ }
58
+ function D(e) {
59
+ var t = e.length == 1, n = "string";
60
+ return function(r, i) {
61
+ for (; !r.eol();) {
62
+ if (r.eatWhile(/[^'"]/), r.match(e)) return i.tokenize = E, n;
63
+ r.eat(/['"]/);
64
+ }
65
+ return t && (i.tokenize = E), n;
66
+ };
67
+ }
68
+ function O(t, n) {
69
+ var r = n.tokenize(t, n), i = t.current();
70
+ if (i === ".") return r = n.tokenize(t, n), r === "variable" ? "variable" : e;
71
+ var a = "[({".indexOf(i);
72
+ return a !== -1 && w(t, n), C === "dedent" && T(t, n) || (a = "])}".indexOf(i), a !== -1 && T(t, n)) ? e : r;
73
+ }
74
+ var k = {
75
+ name: "vb",
76
+ startState: function() {
77
+ return {
78
+ tokenize: E,
79
+ lastToken: null,
80
+ currentIndent: 0,
81
+ nextLineIndent: 0,
82
+ doInCurrentLine: !1
83
+ };
84
+ },
85
+ token: function(e, t) {
86
+ e.sol() && (t.currentIndent += t.nextLineIndent, t.nextLineIndent = 0, t.doInCurrentLine = 0);
87
+ var n = O(e, t);
88
+ return t.lastToken = {
89
+ style: n,
90
+ content: e.current()
91
+ }, n;
92
+ },
93
+ indent: function(e, t, n) {
94
+ var r = t.replace(/^\s+|\s+$/g, "");
95
+ return r.match(b) || r.match(x) || r.match(y) ? n.unit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * n.unit;
96
+ },
97
+ languageData: {
98
+ closeBrackets: { brackets: [
99
+ "(",
100
+ "[",
101
+ "{",
102
+ "\""
103
+ ] },
104
+ commentTokens: { line: "'" },
105
+ autocomplete: c.concat(l).concat(u).concat(d).concat(p).concat(m)
106
+ }
107
+ };
108
+ export { k as vb };
@@ -0,0 +1,208 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/vbscript.js
2
+ function e(e) {
3
+ var t = "error";
4
+ function n(e) {
5
+ return RegExp("^((" + e.join(")|(") + "))\\b", "i");
6
+ }
7
+ var r = /* @__PURE__ */ RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"), i = /* @__PURE__ */ RegExp("^((<>)|(<=)|(>=))"), a = /* @__PURE__ */ RegExp("^[\\.,]"), o = /* @__PURE__ */ RegExp("^[\\(\\)]"), s = /* @__PURE__ */ RegExp("^[A-Za-z][_A-Za-z0-9]*"), c = [
8
+ "class",
9
+ "sub",
10
+ "select",
11
+ "while",
12
+ "if",
13
+ "function",
14
+ "property",
15
+ "with",
16
+ "for"
17
+ ], l = [
18
+ "else",
19
+ "elseif",
20
+ "case"
21
+ ], u = [
22
+ "next",
23
+ "loop",
24
+ "wend"
25
+ ], d = n([
26
+ "and",
27
+ "or",
28
+ "not",
29
+ "xor",
30
+ "is",
31
+ "mod",
32
+ "eqv",
33
+ "imp"
34
+ ]), f = [
35
+ "dim",
36
+ "redim",
37
+ "then",
38
+ "until",
39
+ "randomize",
40
+ "byval",
41
+ "byref",
42
+ "new",
43
+ "property",
44
+ "exit",
45
+ "in",
46
+ "const",
47
+ "private",
48
+ "public",
49
+ "get",
50
+ "set",
51
+ "let",
52
+ "stop",
53
+ "on error resume next",
54
+ "on error goto 0",
55
+ "option explicit",
56
+ "call",
57
+ "me"
58
+ ], p = [
59
+ "true",
60
+ "false",
61
+ "nothing",
62
+ "empty",
63
+ "null"
64
+ ], m = /* @__PURE__ */ "abs.array.asc.atn.cbool.cbyte.ccur.cdate.cdbl.chr.cint.clng.cos.csng.cstr.date.dateadd.datediff.datepart.dateserial.datevalue.day.escape.eval.execute.exp.filter.formatcurrency.formatdatetime.formatnumber.formatpercent.getlocale.getobject.getref.hex.hour.inputbox.instr.instrrev.int.fix.isarray.isdate.isempty.isnull.isnumeric.isobject.join.lbound.lcase.left.len.loadpicture.log.ltrim.rtrim.trim.maths.mid.minute.month.monthname.msgbox.now.oct.replace.rgb.right.rnd.round.scriptengine.scriptenginebuildversion.scriptenginemajorversion.scriptengineminorversion.second.setlocale.sgn.sin.space.split.sqr.strcomp.string.strreverse.tan.time.timer.timeserial.timevalue.typename.ubound.ucase.unescape.vartype.weekday.weekdayname.year".split("."), h = /* @__PURE__ */ "vbBlack.vbRed.vbGreen.vbYellow.vbBlue.vbMagenta.vbCyan.vbWhite.vbBinaryCompare.vbTextCompare.vbSunday.vbMonday.vbTuesday.vbWednesday.vbThursday.vbFriday.vbSaturday.vbUseSystemDayOfWeek.vbFirstJan1.vbFirstFourDays.vbFirstFullWeek.vbGeneralDate.vbLongDate.vbShortDate.vbLongTime.vbShortTime.vbObjectError.vbOKOnly.vbOKCancel.vbAbortRetryIgnore.vbYesNoCancel.vbYesNo.vbRetryCancel.vbCritical.vbQuestion.vbExclamation.vbInformation.vbDefaultButton1.vbDefaultButton2.vbDefaultButton3.vbDefaultButton4.vbApplicationModal.vbSystemModal.vbOK.vbCancel.vbAbort.vbRetry.vbIgnore.vbYes.vbNo.vbCr.VbCrLf.vbFormFeed.vbLf.vbNewLine.vbNullChar.vbNullString.vbTab.vbVerticalTab.vbUseDefault.vbTrue.vbFalse.vbEmpty.vbNull.vbInteger.vbLong.vbSingle.vbDouble.vbCurrency.vbDate.vbString.vbObject.vbError.vbBoolean.vbVariant.vbDataObject.vbDecimal.vbByte.vbArray".split("."), g = [
65
+ "WScript",
66
+ "err",
67
+ "debug",
68
+ "RegExp"
69
+ ], _ = [
70
+ "description",
71
+ "firstindex",
72
+ "global",
73
+ "helpcontext",
74
+ "helpfile",
75
+ "ignorecase",
76
+ "length",
77
+ "number",
78
+ "pattern",
79
+ "source",
80
+ "value",
81
+ "count"
82
+ ], v = [
83
+ "clear",
84
+ "execute",
85
+ "raise",
86
+ "replace",
87
+ "test",
88
+ "write",
89
+ "writeline",
90
+ "close",
91
+ "open",
92
+ "state",
93
+ "eof",
94
+ "update",
95
+ "addnew",
96
+ "end",
97
+ "createobject",
98
+ "quit"
99
+ ], y = [
100
+ "server",
101
+ "response",
102
+ "request",
103
+ "session",
104
+ "application"
105
+ ], b = [
106
+ "buffer",
107
+ "cachecontrol",
108
+ "charset",
109
+ "contenttype",
110
+ "expires",
111
+ "expiresabsolute",
112
+ "isclientconnected",
113
+ "pics",
114
+ "status",
115
+ "clientcertificate",
116
+ "cookies",
117
+ "form",
118
+ "querystring",
119
+ "servervariables",
120
+ "totalbytes",
121
+ "contents",
122
+ "staticobjects",
123
+ "codepage",
124
+ "lcid",
125
+ "sessionid",
126
+ "timeout",
127
+ "scripttimeout"
128
+ ], x = [
129
+ "addheader",
130
+ "appendtolog",
131
+ "binarywrite",
132
+ "end",
133
+ "flush",
134
+ "redirect",
135
+ "binaryread",
136
+ "remove",
137
+ "removeall",
138
+ "lock",
139
+ "unlock",
140
+ "abandon",
141
+ "getlasterror",
142
+ "htmlencode",
143
+ "mappath",
144
+ "transfer",
145
+ "urlencode"
146
+ ], S = v.concat(_);
147
+ g = g.concat(h), e.isASP && (g = g.concat(y), S = S.concat(x, b));
148
+ var C = n(f), w = n(p), T = n(m), E = n(g), D = n(S), O = "\"", k = n(c), A = n(l), j = n(u), M = n(["end"]), N = n(["do"]), P = n(["on error resume next", "exit"]), F = n(["rem"]);
149
+ function I(e, t) {
150
+ t.currentIndent++;
151
+ }
152
+ function L(e, t) {
153
+ t.currentIndent--;
154
+ }
155
+ function R(e, n) {
156
+ if (e.eatSpace()) return null;
157
+ if (e.peek() === "'" || e.match(F)) return e.skipToEnd(), "comment";
158
+ if (e.match(/^((&H)|(&O))?[0-9\.]/i, !1) && !e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i, !1)) {
159
+ var c = !1;
160
+ if ((e.match(/^\d*\.\d+/i) || e.match(/^\d+\.\d*/) || e.match(/^\.\d+/)) && (c = !0), c) return e.eat(/J/i), "number";
161
+ var l = !1;
162
+ if (e.match(/^&H[0-9a-f]+/i) || e.match(/^&O[0-7]+/i) ? l = !0 : e.match(/^[1-9]\d*F?/) ? (e.eat(/J/i), l = !0) : e.match(/^0(?![\dx])/i) && (l = !0), l) return e.eat(/L/i), "number";
163
+ }
164
+ return e.match(O) ? (n.tokenize = z(e.current()), n.tokenize(e, n)) : e.match(i) || e.match(r) || e.match(d) ? "operator" : e.match(a) ? null : e.match(o) ? "bracket" : e.match(P) ? (n.doInCurrentLine = !0, "keyword") : e.match(N) ? (I(e, n), n.doInCurrentLine = !0, "keyword") : e.match(k) ? (n.doInCurrentLine ? n.doInCurrentLine = !1 : I(e, n), "keyword") : e.match(A) ? "keyword" : e.match(M) ? (L(e, n), L(e, n), "keyword") : e.match(j) ? (n.doInCurrentLine ? n.doInCurrentLine = !1 : L(e, n), "keyword") : e.match(C) ? "keyword" : e.match(w) ? "atom" : e.match(D) ? "variableName.special" : e.match(T) || e.match(E) ? "builtin" : e.match(s) ? "variable" : (e.next(), t);
165
+ }
166
+ function z(e) {
167
+ var t = e.length == 1, n = "string";
168
+ return function(r, i) {
169
+ for (; !r.eol();) {
170
+ if (r.eatWhile(/[^'"]/), r.match(e)) return i.tokenize = R, n;
171
+ r.eat(/['"]/);
172
+ }
173
+ return t && (i.tokenize = R), n;
174
+ };
175
+ }
176
+ function B(e, n) {
177
+ var r = n.tokenize(e, n), i = e.current();
178
+ return i === "." ? (r = n.tokenize(e, n), i = e.current(), r && (r.substr(0, 8) === "variable" || r === "builtin" || r === "keyword") ? ((r === "builtin" || r === "keyword") && (r = "variable"), S.indexOf(i.substr(1)) > -1 && (r = "keyword"), r) : t) : r;
179
+ }
180
+ return {
181
+ name: "vbscript",
182
+ startState: function() {
183
+ return {
184
+ tokenize: R,
185
+ lastToken: null,
186
+ currentIndent: 0,
187
+ nextLineIndent: 0,
188
+ doInCurrentLine: !1,
189
+ ignoreKeyword: !1
190
+ };
191
+ },
192
+ token: function(e, t) {
193
+ e.sol() && (t.currentIndent += t.nextLineIndent, t.nextLineIndent = 0, t.doInCurrentLine = 0);
194
+ var n = B(e, t);
195
+ return t.lastToken = {
196
+ style: n,
197
+ content: e.current()
198
+ }, n === null && (n = null), n;
199
+ },
200
+ indent: function(e, t, n) {
201
+ var r = t.replace(/^\s+|\s+$/g, "");
202
+ return r.match(j) || r.match(M) || r.match(A) ? n.unit * (e.currentIndent - 1) : e.currentIndent < 0 ? 0 : e.currentIndent * n.unit;
203
+ }
204
+ };
205
+ }
206
+ var t = e({});
207
+ e({ isASP: !0 });
208
+ export { t as vbScript };
@@ -0,0 +1,89 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/velocity.js
2
+ function e(e) {
3
+ for (var t = {}, n = e.split(" "), r = 0; r < n.length; ++r) t[n[r]] = !0;
4
+ return t;
5
+ }
6
+ var t = e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"), n = e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"), r = e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"), i = /[+\-*&%=<>!?:\/|]/;
7
+ function a(e, t, n) {
8
+ return t.tokenize = n, n(e, t);
9
+ }
10
+ function o(e, o) {
11
+ var u = o.beforeParams;
12
+ o.beforeParams = !1;
13
+ var d = e.next();
14
+ if (d == "'" && !o.inString && o.inParams) return o.lastTokenWasBuiltin = !1, a(e, o, s(d));
15
+ if (d == "\"") {
16
+ if (o.lastTokenWasBuiltin = !1, o.inString) return o.inString = !1, "string";
17
+ if (o.inParams) return a(e, o, s(d));
18
+ } else if (/[\[\]{}\(\),;\.]/.test(d)) return d == "(" && u ? o.inParams = !0 : d == ")" && (o.inParams = !1, o.lastTokenWasBuiltin = !0), null;
19
+ else if (/\d/.test(d)) return o.lastTokenWasBuiltin = !1, e.eatWhile(/[\w\.]/), "number";
20
+ else if (d == "#" && e.eat("*")) return o.lastTokenWasBuiltin = !1, a(e, o, c);
21
+ else if (d == "#" && e.match(/ *\[ *\[/)) return o.lastTokenWasBuiltin = !1, a(e, o, l);
22
+ else if (d == "#" && e.eat("#")) return o.lastTokenWasBuiltin = !1, e.skipToEnd(), "comment";
23
+ else if (d == "$") return e.eat("!"), e.eatWhile(/[\w\d\$_\.{}-]/), r && r.propertyIsEnumerable(e.current()) ? "keyword" : (o.lastTokenWasBuiltin = !0, o.beforeParams = !0, "builtin");
24
+ else if (i.test(d)) return o.lastTokenWasBuiltin = !1, e.eatWhile(i), "operator";
25
+ else {
26
+ e.eatWhile(/[\w\$_{}@]/);
27
+ var f = e.current();
28
+ return t && t.propertyIsEnumerable(f) ? "keyword" : n && n.propertyIsEnumerable(f) || e.current().match(/^#@?[a-z0-9_]+ *$/i) && e.peek() == "(" && !(n && n.propertyIsEnumerable(f.toLowerCase())) ? (o.beforeParams = !0, o.lastTokenWasBuiltin = !1, "keyword") : o.inString ? (o.lastTokenWasBuiltin = !1, "string") : e.pos > f.length && e.string.charAt(e.pos - f.length - 1) == "." && o.lastTokenWasBuiltin ? "builtin" : (o.lastTokenWasBuiltin = !1, null);
29
+ }
30
+ }
31
+ function s(e) {
32
+ return function(t, n) {
33
+ for (var r = !1, i, a = !1; (i = t.next()) != null;) {
34
+ if (i == e && !r) {
35
+ a = !0;
36
+ break;
37
+ }
38
+ if (e == "\"" && t.peek() == "$" && !r) {
39
+ n.inString = !0, a = !0;
40
+ break;
41
+ }
42
+ r = !r && i == "\\";
43
+ }
44
+ return a && (n.tokenize = o), "string";
45
+ };
46
+ }
47
+ function c(e, t) {
48
+ for (var n = !1, r; r = e.next();) {
49
+ if (r == "#" && n) {
50
+ t.tokenize = o;
51
+ break;
52
+ }
53
+ n = r == "*";
54
+ }
55
+ return "comment";
56
+ }
57
+ function l(e, t) {
58
+ for (var n = 0, r; r = e.next();) {
59
+ if (r == "#" && n == 2) {
60
+ t.tokenize = o;
61
+ break;
62
+ }
63
+ r == "]" ? n++ : r != " " && (n = 0);
64
+ }
65
+ return "meta";
66
+ }
67
+ var u = {
68
+ name: "velocity",
69
+ startState: function() {
70
+ return {
71
+ tokenize: o,
72
+ beforeParams: !1,
73
+ inParams: !1,
74
+ inString: !1,
75
+ lastTokenWasBuiltin: !1
76
+ };
77
+ },
78
+ token: function(e, t) {
79
+ return e.eatSpace() ? null : t.tokenize(e, t);
80
+ },
81
+ languageData: { commentTokens: {
82
+ line: "##",
83
+ block: {
84
+ open: "#*",
85
+ close: "*#"
86
+ }
87
+ } }
88
+ };
89
+ export { u as velocity };