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,196 @@
1
+ import { t as e } from "./simple-mode-DwMrk-pB.js";
2
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/dockerfile.js
3
+ var t = "from", n = RegExp("^(\\s*)\\b(" + t + ")\\b", "i"), r = [
4
+ "run",
5
+ "cmd",
6
+ "entrypoint",
7
+ "shell"
8
+ ], i = RegExp("^(\\s*)(" + r.join("|") + ")(\\s+\\[)", "i"), a = "expose", o = RegExp("^(\\s*)(" + a + ")(\\s+)", "i"), s = "(" + [t, a].concat(r, [
9
+ "arg",
10
+ "from",
11
+ "maintainer",
12
+ "label",
13
+ "env",
14
+ "add",
15
+ "copy",
16
+ "volume",
17
+ "user",
18
+ "workdir",
19
+ "onbuild",
20
+ "stopsignal",
21
+ "healthcheck",
22
+ "shell"
23
+ ]).join("|") + ")", c = RegExp("^(\\s*)" + s + "(\\s*)(#.*)?$", "i"), l = RegExp("^(\\s*)" + s + "(\\s+)", "i"), u = e({
24
+ start: [
25
+ {
26
+ regex: /^\s*#.*$/,
27
+ sol: !0,
28
+ token: "comment"
29
+ },
30
+ {
31
+ regex: n,
32
+ token: [null, "keyword"],
33
+ sol: !0,
34
+ next: "from"
35
+ },
36
+ {
37
+ regex: c,
38
+ token: [
39
+ null,
40
+ "keyword",
41
+ null,
42
+ "error"
43
+ ],
44
+ sol: !0
45
+ },
46
+ {
47
+ regex: i,
48
+ token: [
49
+ null,
50
+ "keyword",
51
+ null
52
+ ],
53
+ sol: !0,
54
+ next: "array"
55
+ },
56
+ {
57
+ regex: o,
58
+ token: [
59
+ null,
60
+ "keyword",
61
+ null
62
+ ],
63
+ sol: !0,
64
+ next: "expose"
65
+ },
66
+ {
67
+ regex: l,
68
+ token: [
69
+ null,
70
+ "keyword",
71
+ null
72
+ ],
73
+ sol: !0,
74
+ next: "arguments"
75
+ },
76
+ {
77
+ regex: /./,
78
+ token: null
79
+ }
80
+ ],
81
+ from: [
82
+ {
83
+ regex: /\s*$/,
84
+ token: null,
85
+ next: "start"
86
+ },
87
+ {
88
+ regex: /(\s*)(#.*)$/,
89
+ token: [null, "error"],
90
+ next: "start"
91
+ },
92
+ {
93
+ regex: /(\s*\S+\s+)(as)/i,
94
+ token: [null, "keyword"],
95
+ next: "start"
96
+ },
97
+ {
98
+ token: null,
99
+ next: "start"
100
+ }
101
+ ],
102
+ single: [{
103
+ regex: /(?:[^\\']|\\.)/,
104
+ token: "string"
105
+ }, {
106
+ regex: /'/,
107
+ token: "string",
108
+ pop: !0
109
+ }],
110
+ double: [{
111
+ regex: /(?:[^\\"]|\\.)/,
112
+ token: "string"
113
+ }, {
114
+ regex: /"/,
115
+ token: "string",
116
+ pop: !0
117
+ }],
118
+ array: [{
119
+ regex: /\]/,
120
+ token: null,
121
+ next: "start"
122
+ }, {
123
+ regex: /"(?:[^\\"]|\\.)*"?/,
124
+ token: "string"
125
+ }],
126
+ expose: [
127
+ {
128
+ regex: /\d+$/,
129
+ token: "number",
130
+ next: "start"
131
+ },
132
+ {
133
+ regex: /[^\d]+$/,
134
+ token: null,
135
+ next: "start"
136
+ },
137
+ {
138
+ regex: /\d+/,
139
+ token: "number"
140
+ },
141
+ {
142
+ regex: /[^\d]+/,
143
+ token: null
144
+ },
145
+ {
146
+ token: null,
147
+ next: "start"
148
+ }
149
+ ],
150
+ arguments: [
151
+ {
152
+ regex: /^\s*#.*$/,
153
+ sol: !0,
154
+ token: "comment"
155
+ },
156
+ {
157
+ regex: /"(?:[^\\"]|\\.)*"?$/,
158
+ token: "string",
159
+ next: "start"
160
+ },
161
+ {
162
+ regex: /"/,
163
+ token: "string",
164
+ push: "double"
165
+ },
166
+ {
167
+ regex: /'(?:[^\\']|\\.)*'?$/,
168
+ token: "string",
169
+ next: "start"
170
+ },
171
+ {
172
+ regex: /'/,
173
+ token: "string",
174
+ push: "single"
175
+ },
176
+ {
177
+ regex: /[^#"']+[\\`]$/,
178
+ token: null
179
+ },
180
+ {
181
+ regex: /[^#"']+$/,
182
+ token: null,
183
+ next: "start"
184
+ },
185
+ {
186
+ regex: /[^#"']+/,
187
+ token: null
188
+ },
189
+ {
190
+ token: null,
191
+ next: "start"
192
+ }
193
+ ],
194
+ languageData: { commentTokens: { line: "#" } }
195
+ });
196
+ export { u as dockerFile };
@@ -0,0 +1,77 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/dtd.js
2
+ var e;
3
+ function t(t, n) {
4
+ return e = n, t;
5
+ }
6
+ function n(e, n) {
7
+ var o = e.next();
8
+ if (o == "<" && e.eat("!")) {
9
+ if (e.eatWhile(/[\-]/)) return n.tokenize = r, r(e, n);
10
+ if (e.eatWhile(/[\w]/)) return t("keyword", "doindent");
11
+ } else if (o == "<" && e.eat("?")) return n.tokenize = a("meta", "?>"), t("meta", o);
12
+ else if (o == "#" && e.eatWhile(/[\w]/)) return t("atom", "tag");
13
+ else if (o == "|") return t("keyword", "separator");
14
+ else if (o.match(/[\(\)\[\]\-\.,\+\?>]/)) return t(null, o);
15
+ else if (o.match(/[\[\]]/)) return t("rule", o);
16
+ else if (o == "\"" || o == "'") return n.tokenize = i(o), n.tokenize(e, n);
17
+ else if (e.eatWhile(/[a-zA-Z\?\+\d]/)) {
18
+ var s = e.current();
19
+ return s.substr(s.length - 1, s.length).match(/\?|\+/) !== null && e.backUp(1), t("tag", "tag");
20
+ } else if (o == "%" || o == "*") return t("number", "number");
21
+ else return e.eatWhile(/[\w\\\-_%.{,]/), t(null, null);
22
+ }
23
+ function r(e, r) {
24
+ for (var i = 0, a; (a = e.next()) != null;) {
25
+ if (i >= 2 && a == ">") {
26
+ r.tokenize = n;
27
+ break;
28
+ }
29
+ i = a == "-" ? i + 1 : 0;
30
+ }
31
+ return t("comment", "comment");
32
+ }
33
+ function i(e) {
34
+ return function(r, i) {
35
+ for (var a = !1, o; (o = r.next()) != null;) {
36
+ if (o == e && !a) {
37
+ i.tokenize = n;
38
+ break;
39
+ }
40
+ a = !a && o == "\\";
41
+ }
42
+ return t("string", "tag");
43
+ };
44
+ }
45
+ function a(e, t) {
46
+ return function(r, i) {
47
+ for (; !r.eol();) {
48
+ if (r.match(t)) {
49
+ i.tokenize = n;
50
+ break;
51
+ }
52
+ r.next();
53
+ }
54
+ return e;
55
+ };
56
+ }
57
+ var o = {
58
+ name: "dtd",
59
+ startState: function() {
60
+ return {
61
+ tokenize: n,
62
+ baseIndent: 0,
63
+ stack: []
64
+ };
65
+ },
66
+ token: function(t, n) {
67
+ if (t.eatSpace()) return null;
68
+ var r = n.tokenize(t, n), i = n.stack[n.stack.length - 1];
69
+ return t.current() == "[" || e === "doindent" || e == "[" ? n.stack.push("rule") : e === "endtag" ? n.stack[n.stack.length - 1] = "endtag" : t.current() == "]" || e == "]" || e == ">" && i == "rule" ? n.stack.pop() : e == "[" && n.stack.push("["), r;
70
+ },
71
+ indent: function(t, n, r) {
72
+ var i = t.stack.length;
73
+ return n.charAt(0) === "]" ? i-- : n.substr(n.length - 1, n.length) === ">" && (n.substr(0, 1) === "<" || e == "doindent" && n.length > 1 || (e == "doindent" ? i-- : e == ">" && n.length > 1 || e == "tag" && n !== ">" || (e == "tag" && t.stack[t.stack.length - 1] == "rule" ? i-- : e == "tag" ? i++ : n === ">" && t.stack[t.stack.length - 1] == "rule" && e === ">" ? i-- : n === ">" && t.stack[t.stack.length - 1] == "rule" || (n.substr(0, 1) !== "<" && n.substr(0, 1) === ">" ? --i : n === ">" || --i))), (e == null || e == "]") && i--), t.baseIndent + i * r.unit;
74
+ },
75
+ languageData: { indentOnInput: /^\s*[\]>]$/ }
76
+ };
77
+ export { o as dtd };
@@ -0,0 +1,186 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/dylan.js
2
+ function e(e, t) {
3
+ for (var n = 0; n < e.length; n++) t(e[n], n);
4
+ }
5
+ function t(e, t) {
6
+ for (var n = 0; n < e.length; n++) if (t(e[n], n)) return !0;
7
+ return !1;
8
+ }
9
+ var n = {
10
+ unnamedDefinition: ["interface"],
11
+ namedDefinition: [
12
+ "module",
13
+ "library",
14
+ "macro",
15
+ "C-struct",
16
+ "C-union",
17
+ "C-function",
18
+ "C-callable-wrapper"
19
+ ],
20
+ typeParameterizedDefinition: [
21
+ "class",
22
+ "C-subtype",
23
+ "C-mapped-subtype"
24
+ ],
25
+ otherParameterizedDefinition: [
26
+ "method",
27
+ "function",
28
+ "C-variable",
29
+ "C-address"
30
+ ],
31
+ constantSimpleDefinition: ["constant"],
32
+ variableSimpleDefinition: ["variable"],
33
+ otherSimpleDefinition: [
34
+ "generic",
35
+ "domain",
36
+ "C-pointer-type",
37
+ "table"
38
+ ],
39
+ statement: [
40
+ "if",
41
+ "block",
42
+ "begin",
43
+ "method",
44
+ "case",
45
+ "for",
46
+ "select",
47
+ "when",
48
+ "unless",
49
+ "until",
50
+ "while",
51
+ "iterate",
52
+ "profiling",
53
+ "dynamic-bind"
54
+ ],
55
+ separator: [
56
+ "finally",
57
+ "exception",
58
+ "cleanup",
59
+ "else",
60
+ "elseif",
61
+ "afterwards"
62
+ ],
63
+ other: [
64
+ "above",
65
+ "below",
66
+ "by",
67
+ "from",
68
+ "handler",
69
+ "in",
70
+ "instance",
71
+ "let",
72
+ "local",
73
+ "otherwise",
74
+ "slot",
75
+ "subclass",
76
+ "then",
77
+ "to",
78
+ "keyed-by",
79
+ "virtual"
80
+ ],
81
+ signalingCalls: [
82
+ "signal",
83
+ "error",
84
+ "cerror",
85
+ "break",
86
+ "check-type",
87
+ "abort"
88
+ ]
89
+ };
90
+ n.otherDefinition = n.unnamedDefinition.concat(n.namedDefinition).concat(n.otherParameterizedDefinition), n.definition = n.typeParameterizedDefinition.concat(n.otherDefinition), n.parameterizedDefinition = n.typeParameterizedDefinition.concat(n.otherParameterizedDefinition), n.simpleDefinition = n.constantSimpleDefinition.concat(n.variableSimpleDefinition).concat(n.otherSimpleDefinition), n.keyword = n.statement.concat(n.separator).concat(n.other);
91
+ var r = "[-_a-zA-Z?!*@<>$%]+", i = RegExp("^" + r), a = {
92
+ symbolKeyword: r + ":",
93
+ symbolClass: "<" + r + ">",
94
+ symbolGlobal: "\\*" + r + "\\*",
95
+ symbolConstant: "\\$" + r
96
+ }, o = {
97
+ symbolKeyword: "atom",
98
+ symbolClass: "tag",
99
+ symbolGlobal: "variableName.standard",
100
+ symbolConstant: "variableName.constant"
101
+ };
102
+ for (var s in a) a.hasOwnProperty(s) && (a[s] = RegExp("^" + a[s]));
103
+ a.keyword = [/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];
104
+ var c = {};
105
+ c.keyword = "keyword", c.definition = "def", c.simpleDefinition = "def", c.signalingCalls = "builtin";
106
+ var l = {}, u = {};
107
+ e([
108
+ "keyword",
109
+ "definition",
110
+ "simpleDefinition",
111
+ "signalingCalls"
112
+ ], function(t) {
113
+ e(n[t], function(e) {
114
+ l[e] = t, u[e] = c[t];
115
+ });
116
+ });
117
+ function d(e, t, n) {
118
+ return t.tokenize = n, n(e, t);
119
+ }
120
+ function f(e, n) {
121
+ var r = e.peek();
122
+ if (r == "'" || r == "\"") return e.next(), d(e, n, m(r, "string"));
123
+ if (r == "/") {
124
+ if (e.next(), e.eat("*")) return d(e, n, p);
125
+ if (e.eat("/")) return e.skipToEnd(), "comment";
126
+ e.backUp(1);
127
+ } else if (/[+\-\d\.]/.test(r)) {
128
+ if (e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i) || e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i) || e.match(/^[+-]?\d+/)) return "number";
129
+ } else if (r == "#") return e.next(), r = e.peek(), r == "\"" ? (e.next(), d(e, n, m("\"", "string"))) : r == "b" ? (e.next(), e.eatWhile(/[01]/), "number") : r == "x" ? (e.next(), e.eatWhile(/[\da-f]/i), "number") : r == "o" ? (e.next(), e.eatWhile(/[0-7]/), "number") : r == "#" ? (e.next(), "punctuation") : r == "[" || r == "(" ? (e.next(), "bracket") : e.match(/f|t|all-keys|include|key|next|rest/i) ? "atom" : (e.eatWhile(/[-a-zA-Z]/), "error");
130
+ else if (r == "~") return e.next(), r = e.peek(), r == "=" && (e.next(), r = e.peek(), r == "=" && e.next()), "operator";
131
+ else if (r == ":") {
132
+ if (e.next(), r = e.peek(), r == "=") return e.next(), "operator";
133
+ if (r == ":") return e.next(), "punctuation";
134
+ } else if ("[](){}".indexOf(r) != -1) return e.next(), "bracket";
135
+ else if (".,".indexOf(r) != -1) return e.next(), "punctuation";
136
+ else if (e.match("end")) return "keyword";
137
+ for (var s in a) if (a.hasOwnProperty(s)) {
138
+ var c = a[s];
139
+ if (c instanceof Array && t(c, function(t) {
140
+ return e.match(t);
141
+ }) || e.match(c)) return o[s];
142
+ }
143
+ return /[+\-*\/^=<>&|]/.test(r) ? (e.next(), "operator") : e.match("define") ? "def" : (e.eatWhile(/[\w\-]/), l.hasOwnProperty(e.current()) ? u[e.current()] : e.current().match(i) ? "variable" : (e.next(), "variableName.standard"));
144
+ }
145
+ function p(e, t) {
146
+ for (var n = !1, r = !1, i = 0, a; a = e.next();) {
147
+ if (a == "/" && n) {
148
+ if (i > 0) i--;
149
+ else {
150
+ t.tokenize = f;
151
+ break;
152
+ }
153
+ } else a == "*" && r && i++;
154
+ n = a == "*", r = a == "/";
155
+ }
156
+ return "comment";
157
+ }
158
+ function m(e, t) {
159
+ return function(n, r) {
160
+ for (var i = !1, a, o = !1; (a = n.next()) != null;) {
161
+ if (a == e && !i) {
162
+ o = !0;
163
+ break;
164
+ }
165
+ i = !i && a == "\\";
166
+ }
167
+ return (o || !i) && (r.tokenize = f), t;
168
+ };
169
+ }
170
+ var h = {
171
+ name: "dylan",
172
+ startState: function() {
173
+ return {
174
+ tokenize: f,
175
+ currentIndent: 0
176
+ };
177
+ },
178
+ token: function(e, t) {
179
+ return e.eatSpace() ? null : t.tokenize(e, t);
180
+ },
181
+ languageData: { commentTokens: { block: {
182
+ open: "/*",
183
+ close: "*/"
184
+ } } }
185
+ };
186
+ export { h as dylan };
@@ -0,0 +1,67 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/ebnf.js
2
+ var e = {
3
+ slash: 0,
4
+ parenthesis: 1
5
+ }, t = {
6
+ comment: 0,
7
+ _string: 1,
8
+ characterClass: 2
9
+ }, n = {
10
+ name: "ebnf",
11
+ startState: function() {
12
+ return {
13
+ stringType: null,
14
+ commentType: null,
15
+ braced: 0,
16
+ lhs: !0,
17
+ localState: null,
18
+ stack: [],
19
+ inDefinition: !1
20
+ };
21
+ },
22
+ token: function(n, r) {
23
+ if (n) {
24
+ switch (r.stack.length === 0 && (n.peek() == "\"" || n.peek() == "'" ? (r.stringType = n.peek(), n.next(), r.stack.unshift(t._string)) : n.match("/*") ? (r.stack.unshift(t.comment), r.commentType = e.slash) : n.match("(*") && (r.stack.unshift(t.comment), r.commentType = e.parenthesis)), r.stack[0]) {
25
+ case t._string:
26
+ for (; r.stack[0] === t._string && !n.eol();) n.peek() === r.stringType ? (n.next(), r.stack.shift()) : n.peek() === "\\" ? (n.next(), n.next()) : n.match(/^.[^\\\"\']*/);
27
+ return r.lhs ? "property" : "string";
28
+ case t.comment:
29
+ for (; r.stack[0] === t.comment && !n.eol();) r.commentType === e.slash && n.match("*/") || r.commentType === e.parenthesis && n.match("*)") ? (r.stack.shift(), r.commentType = null) : n.match(/^.[^\*]*/);
30
+ return "comment";
31
+ case t.characterClass:
32
+ for (; r.stack[0] === t.characterClass && !n.eol();) n.match(/^[^\]\\]+/) || n.match(".") || r.stack.shift();
33
+ return "operator";
34
+ }
35
+ var i = n.peek();
36
+ switch (i) {
37
+ case "[": return n.next(), r.stack.unshift(t.characterClass), "bracket";
38
+ case ":":
39
+ case "|":
40
+ case ";": return n.next(), "operator";
41
+ case "%":
42
+ if (n.match("%%")) return "header";
43
+ if (n.match(/[%][A-Za-z]+/)) return "keyword";
44
+ if (n.match(/[%][}]/)) return "bracket";
45
+ break;
46
+ case "/": if (n.match(/[\/][A-Za-z]+/)) return "keyword";
47
+ case "\\": if (n.match(/[\][a-z]+/)) return "string.special";
48
+ case ".": if (n.match(".")) return "atom";
49
+ case "*":
50
+ case "-":
51
+ case "+":
52
+ case "^": if (n.match(i)) return "atom";
53
+ case "$":
54
+ if (n.match("$$")) return "builtin";
55
+ if (n.match(/[$][0-9]+/)) return "variableName.special";
56
+ case "<": if (n.match(/<<[a-zA-Z_]+>>/)) return "builtin";
57
+ }
58
+ return n.match("//") ? (n.skipToEnd(), "comment") : n.match("return") ? "operator" : n.match(/^[a-zA-Z_][a-zA-Z0-9_]*/) ? n.match(/(?=[\(.])/) ? "variable" : n.match(/(?=[\s\n]*[:=])/) ? "def" : "variableName.special" : [
59
+ "[",
60
+ "]",
61
+ "(",
62
+ ")"
63
+ ].indexOf(n.peek()) == -1 ? (n.eatSpace() || n.next(), null) : (n.next(), "bracket");
64
+ }
65
+ }
66
+ };
67
+ export { n as ebnf };
@@ -0,0 +1,105 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/ecl.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
+ function t(e, t) {
7
+ return t.startOfLine ? (e.skipToEnd(), "meta") : !1;
8
+ }
9
+ var n = e("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"), r = e("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"), i = e("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"), a = e("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"), o = e("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"), s = e("catch class do else finally for if switch try while"), c = e("true false null"), l = { "#": t }, u = /[+\-*&%=<>!?|\/]/, d;
10
+ function f(e, t) {
11
+ var f = e.next();
12
+ if (l[f]) {
13
+ var h = l[f](e, t);
14
+ if (h !== !1) return h;
15
+ }
16
+ if (f == "\"" || f == "'") return t.tokenize = p(f), t.tokenize(e, t);
17
+ if (/[\[\]{}\(\),;\:\.]/.test(f)) return d = f, null;
18
+ if (/\d/.test(f)) return e.eatWhile(/[\w\.]/), "number";
19
+ if (f == "/") {
20
+ if (e.eat("*")) return t.tokenize = m, m(e, t);
21
+ if (e.eat("/")) return e.skipToEnd(), "comment";
22
+ }
23
+ if (u.test(f)) return e.eatWhile(u), "operator";
24
+ e.eatWhile(/[\w\$_]/);
25
+ var g = e.current().toLowerCase();
26
+ if (n.propertyIsEnumerable(g)) return s.propertyIsEnumerable(g) && (d = "newstatement"), "keyword";
27
+ if (r.propertyIsEnumerable(g)) return s.propertyIsEnumerable(g) && (d = "newstatement"), "variable";
28
+ if (i.propertyIsEnumerable(g)) return s.propertyIsEnumerable(g) && (d = "newstatement"), "modifier";
29
+ if (a.propertyIsEnumerable(g)) return s.propertyIsEnumerable(g) && (d = "newstatement"), "type";
30
+ if (o.propertyIsEnumerable(g)) return s.propertyIsEnumerable(g) && (d = "newstatement"), "builtin";
31
+ for (var _ = g.length - 1; _ >= 0 && (!isNaN(g[_]) || g[_] == "_");) --_;
32
+ if (_ > 0) {
33
+ var v = g.substr(0, _ + 1);
34
+ if (a.propertyIsEnumerable(v)) return s.propertyIsEnumerable(v) && (d = "newstatement"), "type";
35
+ }
36
+ return c.propertyIsEnumerable(g) ? "atom" : null;
37
+ }
38
+ function p(e) {
39
+ return function(t, n) {
40
+ for (var r = !1, i, a = !1; (i = t.next()) != null;) {
41
+ if (i == e && !r) {
42
+ a = !0;
43
+ break;
44
+ }
45
+ r = !r && i == "\\";
46
+ }
47
+ return (a || !r) && (n.tokenize = f), "string";
48
+ };
49
+ }
50
+ function m(e, t) {
51
+ for (var n = !1, r; r = e.next();) {
52
+ if (r == "/" && n) {
53
+ t.tokenize = f;
54
+ break;
55
+ }
56
+ n = r == "*";
57
+ }
58
+ return "comment";
59
+ }
60
+ function h(e, t, n, r, i) {
61
+ this.indented = e, this.column = t, this.type = n, this.align = r, this.prev = i;
62
+ }
63
+ function g(e, t, n) {
64
+ return e.context = new h(e.indented, t, n, null, e.context);
65
+ }
66
+ function _(e) {
67
+ var t = e.context.type;
68
+ return (t == ")" || t == "]" || t == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
69
+ }
70
+ var v = {
71
+ name: "ecl",
72
+ startState: function(e) {
73
+ return {
74
+ tokenize: null,
75
+ context: new h(-e, 0, "top", !1),
76
+ indented: 0,
77
+ startOfLine: !0
78
+ };
79
+ },
80
+ token: function(e, t) {
81
+ var n = t.context;
82
+ if (e.sol() && (n.align ?? (n.align = !1), t.indented = e.indentation(), t.startOfLine = !0), e.eatSpace()) return null;
83
+ d = null;
84
+ var r = (t.tokenize || f)(e, t);
85
+ if (r == "comment" || r == "meta") return r;
86
+ if (n.align ?? (n.align = !0), (d == ";" || d == ":") && n.type == "statement") _(t);
87
+ else if (d == "{") g(t, e.column(), "}");
88
+ else if (d == "[") g(t, e.column(), "]");
89
+ else if (d == "(") g(t, e.column(), ")");
90
+ else if (d == "}") {
91
+ for (; n.type == "statement";) n = _(t);
92
+ for (n.type == "}" && (n = _(t)); n.type == "statement";) n = _(t);
93
+ } else d == n.type ? _(t) : (n.type == "}" || n.type == "top" || n.type == "statement" && d == "newstatement") && g(t, e.column(), "statement");
94
+ return t.startOfLine = !1, r;
95
+ },
96
+ indent: function(e, t, n) {
97
+ if (e.tokenize != f && e.tokenize != null) return 0;
98
+ var r = e.context, i = t && t.charAt(0);
99
+ r.type == "statement" && i == "}" && (r = r.prev);
100
+ var a = i == r.type;
101
+ return r.type == "statement" ? r.indented + (i == "{" ? 0 : n.unit) : r.align ? r.column + +!a : r.indented + (a ? 0 : n.unit);
102
+ },
103
+ languageData: { indentOnInput: /^\s*[{}]$/ }
104
+ };
105
+ export { v as ecl };
@@ -0,0 +1,49 @@
1
+ // ../../node_modules/.pnpm/@codemirror+legacy-modes@6.5.5/node_modules/@codemirror/legacy-modes/mode/eiffel.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 = e(/* @__PURE__ */ "note.across.when.variant.until.unique.undefine.then.strip.select.retry.rescue.require.rename.reference.redefine.prefix.once.old.obsolete.loop.local.like.is.inspect.infix.include.if.frozen.from.external.export.ensure.end.elseif.else.do.creation.create.check.alias.agent.separate.invariant.inherit.indexing.feature.expanded.deferred.class.Void.True.Result.Precursor.False.Current.create.attached.detachable.as.and.implies.not.or".split(".")), n = e([
7
+ ":=",
8
+ "and then",
9
+ "and",
10
+ "or",
11
+ "<<",
12
+ ">>"
13
+ ]);
14
+ function r(e, t, n) {
15
+ return n.tokenize.push(e), e(t, n);
16
+ }
17
+ function i(e, t) {
18
+ if (e.eatSpace()) return null;
19
+ var n = e.next();
20
+ return n == "\"" || n == "'" ? r(a(n, "string"), e, t) : n == "-" && e.eat("-") ? (e.skipToEnd(), "comment") : n == ":" && e.eat("=") ? "operator" : /[0-9]/.test(n) ? (e.eatWhile(/[xXbBCc0-9\.]/), e.eat(/[\?\!]/), "variable") : /[a-zA-Z_0-9]/.test(n) ? (e.eatWhile(/[a-zA-Z_0-9]/), e.eat(/[\?\!]/), "variable") : /[=+\-\/*^%<>~]/.test(n) ? (e.eatWhile(/[=+\-\/*^%<>~]/), "operator") : null;
21
+ }
22
+ function a(e, t, n) {
23
+ return function(r, i) {
24
+ for (var a = !1, o; (o = r.next()) != null;) {
25
+ if (o == e && (n || !a)) {
26
+ i.tokenize.pop();
27
+ break;
28
+ }
29
+ a = !a && o == "%";
30
+ }
31
+ return t;
32
+ };
33
+ }
34
+ var o = {
35
+ name: "eiffel",
36
+ startState: function() {
37
+ return { tokenize: [i] };
38
+ },
39
+ token: function(e, r) {
40
+ var i = r.tokenize[r.tokenize.length - 1](e, r);
41
+ if (i == "variable") {
42
+ var a = e.current();
43
+ i = t.propertyIsEnumerable(e.current()) ? "keyword" : n.propertyIsEnumerable(e.current()) ? "operator" : /^[A-Z][A-Z_0-9]*$/g.test(a) ? "tag" : /^0[bB][0-1]+$/g.test(a) || /^0[cC][0-7]+$/g.test(a) || /^0[xX][a-fA-F0-9]+$/g.test(a) || /^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(a) || /^[0-9]+$/g.test(a) ? "number" : "variable";
44
+ }
45
+ return i;
46
+ },
47
+ languageData: { commentTokens: { line: "--" } }
48
+ };
49
+ export { o as eiffel };