@milkdown/crepe 7.3.6 → 7.5.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 (991) hide show
  1. package/lib/cjs/_view-N32ied53.js +27 -0
  2. package/lib/cjs/_view-N32ied53.js.map +1 -0
  3. package/lib/cjs/apl-99bWvYTf.js +145 -0
  4. package/lib/cjs/apl-99bWvYTf.js.map +1 -0
  5. package/lib/cjs/asciiarmor-cf0JLIr_.js +59 -0
  6. package/lib/cjs/asciiarmor-cf0JLIr_.js.map +1 -0
  7. package/lib/cjs/asn1-H4XzAvBS.js +195 -0
  8. package/lib/cjs/asn1-H4XzAvBS.js.map +1 -0
  9. package/lib/cjs/asterisk-0FgJEfZB.js +190 -0
  10. package/lib/cjs/asterisk-0FgJEfZB.js.map +1 -0
  11. package/lib/cjs/brainfuck-JX7vRZy7.js +73 -0
  12. package/lib/cjs/brainfuck-JX7vRZy7.js.map +1 -0
  13. package/lib/cjs/clike-ueXlMQy5.js +1034 -0
  14. package/lib/cjs/clike-ueXlMQy5.js.map +1 -0
  15. package/lib/cjs/clojure-6iDAG5oi.js +277 -0
  16. package/lib/cjs/clojure-6iDAG5oi.js.map +1 -0
  17. package/lib/cjs/clsx-dASsG01A.js +6 -0
  18. package/lib/cjs/clsx-dASsG01A.js.map +1 -0
  19. package/lib/cjs/cmake-L0RIBnfc.js +84 -0
  20. package/lib/cjs/cmake-L0RIBnfc.js.map +1 -0
  21. package/lib/cjs/cobol-oxkMh1GJ.js +238 -0
  22. package/lib/cjs/cobol-oxkMh1GJ.js.map +1 -0
  23. package/lib/cjs/coffeescript--eauIeRQ.js +332 -0
  24. package/lib/cjs/coffeescript--eauIeRQ.js.map +1 -0
  25. package/lib/cjs/commonlisp-pgSu-q6f.js +111 -0
  26. package/lib/cjs/commonlisp-pgSu-q6f.js.map +1 -0
  27. package/lib/cjs/crystal-2y3I5ibZ.js +422 -0
  28. package/lib/cjs/crystal-2y3I5ibZ.js.map +1 -0
  29. package/lib/cjs/css-WH69cXzo.js +855 -0
  30. package/lib/cjs/css-WH69cXzo.js.map +1 -0
  31. package/lib/cjs/cypher-da-dqVyQ.js +125 -0
  32. package/lib/cjs/cypher-da-dqVyQ.js.map +1 -0
  33. package/lib/cjs/d-58J7EOkP.js +208 -0
  34. package/lib/cjs/d-58J7EOkP.js.map +1 -0
  35. package/lib/cjs/diff-437Hfzqm.js +33 -0
  36. package/lib/cjs/diff-437Hfzqm.js.map +1 -0
  37. package/lib/cjs/dockerfile-7i0OoaQe.js +202 -0
  38. package/lib/cjs/dockerfile-7i0OoaQe.js.map +1 -0
  39. package/lib/cjs/dtd-AKekCPPB.js +124 -0
  40. package/lib/cjs/dtd-AKekCPPB.js.map +1 -0
  41. package/lib/cjs/dylan-DLEmvz1I.js +340 -0
  42. package/lib/cjs/dylan-DLEmvz1I.js.map +1 -0
  43. package/lib/cjs/ebnf-36cJWqxB.js +154 -0
  44. package/lib/cjs/ebnf-36cJWqxB.js.map +1 -0
  45. package/lib/cjs/ecl-UWr5vJKJ.js +193 -0
  46. package/lib/cjs/ecl-UWr5vJKJ.js.map +1 -0
  47. package/lib/cjs/eiffel-Su-C9LAY.js +149 -0
  48. package/lib/cjs/eiffel-Su-C9LAY.js.map +1 -0
  49. package/lib/cjs/elm-vNNfVJj7.js +233 -0
  50. package/lib/cjs/elm-vNNfVJj7.js.map +1 -0
  51. package/lib/cjs/erlang-NM9dgYaS.js +584 -0
  52. package/lib/cjs/erlang-NM9dgYaS.js.map +1 -0
  53. package/lib/cjs/factor-RWs-4aWg.js +68 -0
  54. package/lib/cjs/factor-RWs-4aWg.js.map +1 -0
  55. package/lib/cjs/fcl-acUhGCfs.js +157 -0
  56. package/lib/cjs/fcl-acUhGCfs.js.map +1 -0
  57. package/lib/cjs/floating-ui.dom-2cjBpir5.js +1134 -0
  58. package/lib/cjs/floating-ui.dom-2cjBpir5.js.map +1 -0
  59. package/lib/cjs/forth-sDkE6z3A.js +167 -0
  60. package/lib/cjs/forth-sDkE6z3A.js.map +1 -0
  61. package/lib/cjs/fortran-gkb4yvdk.js +175 -0
  62. package/lib/cjs/fortran-gkb4yvdk.js.map +1 -0
  63. package/lib/cjs/gas-mNA0qvkv.js +347 -0
  64. package/lib/cjs/gas-mNA0qvkv.js.map +1 -0
  65. package/lib/cjs/gherkin-5uyKpXXh.js +150 -0
  66. package/lib/cjs/gherkin-5uyKpXXh.js.map +1 -0
  67. package/lib/cjs/go-5XitXoIZ.js +167 -0
  68. package/lib/cjs/go-5XitXoIZ.js.map +1 -0
  69. package/lib/cjs/groovy-mz3pWMKN.js +233 -0
  70. package/lib/cjs/groovy-mz3pWMKN.js.map +1 -0
  71. package/lib/cjs/haskell-9KaSS7kb.js +242 -0
  72. package/lib/cjs/haskell-9KaSS7kb.js.map +1 -0
  73. package/lib/cjs/haxe-L8h6Pvni.js +494 -0
  74. package/lib/cjs/haxe-L8h6Pvni.js.map +1 -0
  75. package/lib/cjs/helper-1aludV1Z.js +15 -0
  76. package/lib/cjs/helper-1aludV1Z.js.map +1 -0
  77. package/lib/cjs/http-BFQQnRR-.js +92 -0
  78. package/lib/cjs/http-BFQQnRR-.js.map +1 -0
  79. package/lib/cjs/idl-29T-AzAy.js +277 -0
  80. package/lib/cjs/idl-29T-AzAy.js.map +1 -0
  81. package/lib/cjs/index--sa4NMpW.js +119 -0
  82. package/lib/cjs/index--sa4NMpW.js.map +1 -0
  83. package/lib/cjs/index--tnUmqZ_.js +108 -0
  84. package/lib/cjs/index--tnUmqZ_.js.map +1 -0
  85. package/lib/cjs/index-1vHyMXH8.js +203 -0
  86. package/lib/cjs/index-1vHyMXH8.js.map +1 -0
  87. package/lib/cjs/index-28q261C7.js +448 -0
  88. package/lib/cjs/index-28q261C7.js.map +1 -0
  89. package/lib/cjs/index-55VIM-52.js +156 -0
  90. package/lib/cjs/index-55VIM-52.js.map +1 -0
  91. package/lib/cjs/index-92bwto5V.js +405 -0
  92. package/lib/cjs/index-92bwto5V.js.map +1 -0
  93. package/lib/cjs/index-Buu2tD9O.js +534 -0
  94. package/lib/cjs/index-Buu2tD9O.js.map +1 -0
  95. package/lib/cjs/index-E4Ist86Z.js +532 -0
  96. package/lib/cjs/index-E4Ist86Z.js.map +1 -0
  97. package/lib/cjs/index-FbNqlZU8.js +263 -0
  98. package/lib/cjs/index-FbNqlZU8.js.map +1 -0
  99. package/lib/cjs/index-HH5lPgpj.js +443 -0
  100. package/lib/cjs/index-HH5lPgpj.js.map +1 -0
  101. package/lib/cjs/index-J1-yHn7v.js +128 -0
  102. package/lib/cjs/index-J1-yHn7v.js.map +1 -0
  103. package/lib/cjs/index-J3XY9IPt.js +78 -0
  104. package/lib/cjs/index-J3XY9IPt.js.map +1 -0
  105. package/lib/cjs/index-Jztk6JlP.js +25698 -0
  106. package/lib/cjs/index-Jztk6JlP.js.map +1 -0
  107. package/lib/cjs/index-N6pPZY61.js +191 -0
  108. package/lib/cjs/index-N6pPZY61.js.map +1 -0
  109. package/lib/cjs/index-TUJs6KKL.js +472 -0
  110. package/lib/cjs/index-TUJs6KKL.js.map +1 -0
  111. package/lib/cjs/index-Tjg8KyK7.js +398 -0
  112. package/lib/cjs/index-Tjg8KyK7.js.map +1 -0
  113. package/lib/cjs/index-VYwHTL3F.js +161 -0
  114. package/lib/cjs/index-VYwHTL3F.js.map +1 -0
  115. package/lib/cjs/index-_GOdKqUK.js +1147 -0
  116. package/lib/cjs/index-_GOdKqUK.js.map +1 -0
  117. package/lib/cjs/index-cKQcw-eu.js +386 -0
  118. package/lib/cjs/index-cKQcw-eu.js.map +1 -0
  119. package/lib/cjs/index-c_OzudR7.js +699 -0
  120. package/lib/cjs/index-c_OzudR7.js.map +1 -0
  121. package/lib/cjs/index-cb-5m0vG.js +2519 -0
  122. package/lib/cjs/index-cb-5m0vG.js.map +1 -0
  123. package/lib/cjs/index-cpC-j5Nt.js +176 -0
  124. package/lib/cjs/index-cpC-j5Nt.js.map +1 -0
  125. package/lib/cjs/index-crv_k6dv.js +1353 -0
  126. package/lib/cjs/index-crv_k6dv.js.map +1 -0
  127. package/lib/cjs/index-jlfsu92T.js +362 -0
  128. package/lib/cjs/index-jlfsu92T.js.map +1 -0
  129. package/lib/cjs/index-jn036wuh.js +1045 -0
  130. package/lib/cjs/index-jn036wuh.js.map +1 -0
  131. package/lib/cjs/index-kqz-P6o6.js +55 -0
  132. package/lib/cjs/index-kqz-P6o6.js.map +1 -0
  133. package/lib/cjs/index-lBumFRUQ.js +209 -0
  134. package/lib/cjs/index-lBumFRUQ.js.map +1 -0
  135. package/lib/cjs/index-lUNj3xuC.js +81 -0
  136. package/lib/cjs/index-lUNj3xuC.js.map +1 -0
  137. package/lib/cjs/index-mcxgNBq9.js +464 -0
  138. package/lib/cjs/index-mcxgNBq9.js.map +1 -0
  139. package/lib/cjs/index-nTfDKYYi.js +1029 -0
  140. package/lib/cjs/index-nTfDKYYi.js.map +1 -0
  141. package/lib/cjs/index-tBw4NmwY.js +33852 -0
  142. package/lib/cjs/index-tBw4NmwY.js.map +1 -0
  143. package/lib/cjs/index-vfzLCXfi.js +774 -0
  144. package/lib/cjs/index-vfzLCXfi.js.map +1 -0
  145. package/lib/cjs/index-von4W2LG.js +356 -0
  146. package/lib/cjs/index-von4W2LG.js.map +1 -0
  147. package/lib/cjs/index-z6pe2alg.js +20 -0
  148. package/lib/cjs/index-z6pe2alg.js.map +1 -0
  149. package/lib/cjs/index-zXSAHvAj.js +1877 -0
  150. package/lib/cjs/index-zXSAHvAj.js.map +1 -0
  151. package/lib/cjs/index.js +20 -0
  152. package/lib/cjs/index.js.map +1 -0
  153. package/lib/cjs/javascript-5-BTydbD.js +928 -0
  154. package/lib/cjs/javascript-5-BTydbD.js.map +1 -0
  155. package/lib/cjs/jinja2-BWMz4gPk.js +174 -0
  156. package/lib/cjs/jinja2-BWMz4gPk.js.map +1 -0
  157. package/lib/cjs/julia-dtR9J3KZ.js +372 -0
  158. package/lib/cjs/julia-dtR9J3KZ.js.map +1 -0
  159. package/lib/cjs/livescript-YxT0INe3.js +262 -0
  160. package/lib/cjs/livescript-YxT0INe3.js.map +1 -0
  161. package/lib/cjs/lua-h7_AXjy9.js +140 -0
  162. package/lib/cjs/lua-h7_AXjy9.js.map +1 -0
  163. package/lib/cjs/mathematica-Zc57fOr3.js +156 -0
  164. package/lib/cjs/mathematica-Zc57fOr3.js.map +1 -0
  165. package/lib/cjs/mbox-ltKsKgJd.js +117 -0
  166. package/lib/cjs/mbox-ltKsKgJd.js.map +1 -0
  167. package/lib/cjs/mirc-xTLeWqmy.js +179 -0
  168. package/lib/cjs/mirc-xTLeWqmy.js.map +1 -0
  169. package/lib/cjs/mllike-xukl-Kjp.js +351 -0
  170. package/lib/cjs/mllike-xukl-Kjp.js.map +1 -0
  171. package/lib/cjs/modelica-LsXtAawk.js +195 -0
  172. package/lib/cjs/modelica-LsXtAawk.js.map +1 -0
  173. package/lib/cjs/mscgen-9HooYIVW.js +154 -0
  174. package/lib/cjs/mscgen-9HooYIVW.js.map +1 -0
  175. package/lib/cjs/mumps-VXqGp84f.js +132 -0
  176. package/lib/cjs/mumps-VXqGp84f.js.map +1 -0
  177. package/lib/cjs/nginx-UrubUbn1.js +166 -0
  178. package/lib/cjs/nginx-UrubUbn1.js.map +1 -0
  179. package/lib/cjs/nsis-c2AYwqyy.js +83 -0
  180. package/lib/cjs/nsis-c2AYwqyy.js.map +1 -0
  181. package/lib/cjs/ntriples-N1nwiheD.js +144 -0
  182. package/lib/cjs/ntriples-N1nwiheD.js.map +1 -0
  183. package/lib/cjs/octave-ElonStfZ.js +115 -0
  184. package/lib/cjs/octave-ElonStfZ.js.map +1 -0
  185. package/lib/cjs/oz-7VQTnCfu.js +238 -0
  186. package/lib/cjs/oz-7VQTnCfu.js.map +1 -0
  187. package/lib/cjs/pascal-yq2Cb88Q.js +127 -0
  188. package/lib/cjs/pascal-yq2Cb88Q.js.map +1 -0
  189. package/lib/cjs/perl-hJq4byS9.js +822 -0
  190. package/lib/cjs/perl-hJq4byS9.js.map +1 -0
  191. package/lib/cjs/pig-2syuOlAa.js +152 -0
  192. package/lib/cjs/pig-2syuOlAa.js.map +1 -0
  193. package/lib/cjs/powershell-NDwxuSDg.js +384 -0
  194. package/lib/cjs/powershell-NDwxuSDg.js.map +1 -0
  195. package/lib/cjs/properties-wacODxDJ.js +65 -0
  196. package/lib/cjs/properties-wacODxDJ.js.map +1 -0
  197. package/lib/cjs/protobuf-zVHZwskk.js +57 -0
  198. package/lib/cjs/protobuf-zVHZwskk.js.map +1 -0
  199. package/lib/cjs/puppet-koQikqO-.js +208 -0
  200. package/lib/cjs/puppet-koQikqO-.js.map +1 -0
  201. package/lib/cjs/python-P3UsKHbj.js +394 -0
  202. package/lib/cjs/python-P3UsKHbj.js.map +1 -0
  203. package/lib/cjs/q-Z_d2uXoA.js +126 -0
  204. package/lib/cjs/q-Z_d2uXoA.js.map +1 -0
  205. package/lib/cjs/r-J6Jl9z1i.js +177 -0
  206. package/lib/cjs/r-J6Jl9z1i.js.map +1 -0
  207. package/lib/cjs/rpm-6C0Omumu.js +93 -0
  208. package/lib/cjs/rpm-6C0Omumu.js.map +1 -0
  209. package/lib/cjs/ruby-POVyUmsb.js +290 -0
  210. package/lib/cjs/ruby-POVyUmsb.js.map +1 -0
  211. package/lib/cjs/sas-vDtpSmFr.js +271 -0
  212. package/lib/cjs/sas-vDtpSmFr.js.map +1 -0
  213. package/lib/cjs/schema-RVrwDDcq.js +74 -0
  214. package/lib/cjs/schema-RVrwDDcq.js.map +1 -0
  215. package/lib/cjs/scheme-5AA5BH7S.js +266 -0
  216. package/lib/cjs/scheme-5AA5BH7S.js.map +1 -0
  217. package/lib/cjs/shell-_ztDMiW6.js +148 -0
  218. package/lib/cjs/shell-_ztDMiW6.js.map +1 -0
  219. package/lib/cjs/sieve-R_vzlbvH.js +181 -0
  220. package/lib/cjs/sieve-R_vzlbvH.js.map +1 -0
  221. package/lib/cjs/simple-mode-ZwmNbV0h.js +138 -0
  222. package/lib/cjs/simple-mode-ZwmNbV0h.js.map +1 -0
  223. package/lib/cjs/smalltalk-dWLp5zN8.js +156 -0
  224. package/lib/cjs/smalltalk-dWLp5zN8.js.map +1 -0
  225. package/lib/cjs/solr-wSmvjKI8.js +83 -0
  226. package/lib/cjs/solr-wSmvjKI8.js.map +1 -0
  227. package/lib/cjs/sparql-GNU_0xKB.js +173 -0
  228. package/lib/cjs/sparql-GNU_0xKB.js.map +1 -0
  229. package/lib/cjs/spreadsheet-BiqYLk6M.js +101 -0
  230. package/lib/cjs/spreadsheet-BiqYLk6M.js.map +1 -0
  231. package/lib/cjs/sql-9GpHBPsC.js +497 -0
  232. package/lib/cjs/sql-9GpHBPsC.js.map +1 -0
  233. package/lib/cjs/stex-1V41CNLk.js +250 -0
  234. package/lib/cjs/stex-1V41CNLk.js.map +1 -0
  235. package/lib/cjs/stylus-H6hn9z_G.js +753 -0
  236. package/lib/cjs/stylus-H6hn9z_G.js.map +1 -0
  237. package/lib/cjs/swift-Xv5f8zgN.js +205 -0
  238. package/lib/cjs/swift-Xv5f8zgN.js.map +1 -0
  239. package/lib/cjs/tcl-LI-LOw_t.js +128 -0
  240. package/lib/cjs/tcl-LI-LOw_t.js.map +1 -0
  241. package/lib/cjs/textile-3NvRPUgg.js +444 -0
  242. package/lib/cjs/textile-3NvRPUgg.js.map +1 -0
  243. package/lib/cjs/tiddlywiki-PkMzy8_R.js +281 -0
  244. package/lib/cjs/tiddlywiki-PkMzy8_R.js.map +1 -0
  245. package/lib/cjs/tiki-Zk_GnEC8.js +292 -0
  246. package/lib/cjs/tiki-Zk_GnEC8.js.map +1 -0
  247. package/lib/cjs/todoList-Ze4FLMlx.js +415 -0
  248. package/lib/cjs/todoList-Ze4FLMlx.js.map +1 -0
  249. package/lib/cjs/toml-36gJ0YCq.js +78 -0
  250. package/lib/cjs/toml-36gJ0YCq.js.map +1 -0
  251. package/lib/cjs/tooltip-plugin--lhebztC.js +191 -0
  252. package/lib/cjs/tooltip-plugin--lhebztC.js.map +1 -0
  253. package/lib/cjs/troff-RLZ_o61o.js +67 -0
  254. package/lib/cjs/troff-RLZ_o61o.js.map +1 -0
  255. package/lib/cjs/ttcn-cfg-twaoJYvf.js +204 -0
  256. package/lib/cjs/ttcn-cfg-twaoJYvf.js.map +1 -0
  257. package/lib/cjs/ttcn-kGwvGb2v.js +260 -0
  258. package/lib/cjs/ttcn-kGwvGb2v.js.map +1 -0
  259. package/lib/cjs/turtle-nnevat7b.js +144 -0
  260. package/lib/cjs/turtle-nnevat7b.js.map +1 -0
  261. package/lib/cjs/vb-fO_I9s3s.js +252 -0
  262. package/lib/cjs/vb-fO_I9s3s.js.map +1 -0
  263. package/lib/cjs/vbscript-HXnn40y4.js +324 -0
  264. package/lib/cjs/vbscript-HXnn40y4.js.map +1 -0
  265. package/lib/cjs/velocity-Wn-ZfFzr.js +189 -0
  266. package/lib/cjs/velocity-Wn-ZfFzr.js.map +1 -0
  267. package/lib/cjs/verilog-y1ev34z6.js +569 -0
  268. package/lib/cjs/verilog-y1ev34z6.js.map +1 -0
  269. package/lib/cjs/vhdl-LF0oeXxc.js +177 -0
  270. package/lib/cjs/vhdl-LF0oeXxc.js.map +1 -0
  271. package/lib/cjs/webidl-6kI5KbeC.js +182 -0
  272. package/lib/cjs/webidl-6kI5KbeC.js.map +1 -0
  273. package/lib/cjs/xquery-BavrmwsO.js +428 -0
  274. package/lib/cjs/xquery-BavrmwsO.js.map +1 -0
  275. package/lib/cjs/yacas-1g_AbTrl.js +185 -0
  276. package/lib/cjs/yacas-1g_AbTrl.js.map +1 -0
  277. package/lib/cjs/z80-QYzKAAp7.js +106 -0
  278. package/lib/cjs/z80-QYzKAAp7.js.map +1 -0
  279. package/lib/esm/_view-IlZC8FA6.js +25 -0
  280. package/lib/esm/_view-IlZC8FA6.js.map +1 -0
  281. package/lib/esm/apl-eHQxyJFn.js +143 -0
  282. package/lib/esm/apl-eHQxyJFn.js.map +1 -0
  283. package/lib/esm/asciiarmor-Z-IGYCI4.js +57 -0
  284. package/lib/esm/asciiarmor-Z-IGYCI4.js.map +1 -0
  285. package/lib/esm/asn1-gF7x-q1y.js +193 -0
  286. package/lib/esm/asn1-gF7x-q1y.js.map +1 -0
  287. package/lib/esm/asterisk-swk20ftp.js +188 -0
  288. package/lib/esm/asterisk-swk20ftp.js.map +1 -0
  289. package/lib/esm/brainfuck-IFQdiQoR.js +71 -0
  290. package/lib/esm/brainfuck-IFQdiQoR.js.map +1 -0
  291. package/lib/esm/clike-q3hUF2Cx.js +1019 -0
  292. package/lib/esm/clike-q3hUF2Cx.js.map +1 -0
  293. package/lib/esm/clojure-I2Krbr2M.js +275 -0
  294. package/lib/esm/clojure-I2Krbr2M.js.map +1 -0
  295. package/lib/esm/clsx-RxCLxYpD.js +4 -0
  296. package/lib/esm/clsx-RxCLxYpD.js.map +1 -0
  297. package/lib/esm/cmake-ewwXLeuZ.js +82 -0
  298. package/lib/esm/cmake-ewwXLeuZ.js.map +1 -0
  299. package/lib/esm/cobol-fpN1nAnR.js +236 -0
  300. package/lib/esm/cobol-fpN1nAnR.js.map +1 -0
  301. package/lib/esm/coffeescript--eTFR-bH.js +330 -0
  302. package/lib/esm/coffeescript--eTFR-bH.js.map +1 -0
  303. package/lib/esm/commonlisp-XLSwVdLc.js +109 -0
  304. package/lib/esm/commonlisp-XLSwVdLc.js.map +1 -0
  305. package/lib/esm/crystal-_r3Aa1_a.js +420 -0
  306. package/lib/esm/crystal-_r3Aa1_a.js.map +1 -0
  307. package/lib/esm/css-hgwYGMKZ.js +848 -0
  308. package/lib/esm/css-hgwYGMKZ.js.map +1 -0
  309. package/lib/esm/cypher-bbJyAa-4.js +123 -0
  310. package/lib/esm/cypher-bbJyAa-4.js.map +1 -0
  311. package/lib/esm/d-5MyulviS.js +206 -0
  312. package/lib/esm/d-5MyulviS.js.map +1 -0
  313. package/lib/esm/diff-neOaT_vk.js +31 -0
  314. package/lib/esm/diff-neOaT_vk.js.map +1 -0
  315. package/lib/esm/dockerfile-lzx42-zz.js +200 -0
  316. package/lib/esm/dockerfile-lzx42-zz.js.map +1 -0
  317. package/lib/esm/dtd-FmzPLZcQ.js +122 -0
  318. package/lib/esm/dtd-FmzPLZcQ.js.map +1 -0
  319. package/lib/esm/dylan-1HtRK4GO.js +338 -0
  320. package/lib/esm/dylan-1HtRK4GO.js.map +1 -0
  321. package/lib/esm/ebnf-Nz-pnLHy.js +152 -0
  322. package/lib/esm/ebnf-Nz-pnLHy.js.map +1 -0
  323. package/lib/esm/ecl-lQsZhQz0.js +191 -0
  324. package/lib/esm/ecl-lQsZhQz0.js.map +1 -0
  325. package/lib/esm/eiffel-R_HiEkhx.js +147 -0
  326. package/lib/esm/eiffel-R_HiEkhx.js.map +1 -0
  327. package/lib/esm/elm-KYv4VTDg.js +231 -0
  328. package/lib/esm/elm-KYv4VTDg.js.map +1 -0
  329. package/lib/esm/erlang-7YaHCBIe.js +582 -0
  330. package/lib/esm/erlang-7YaHCBIe.js.map +1 -0
  331. package/lib/esm/factor-opBU9aTK.js +66 -0
  332. package/lib/esm/factor-opBU9aTK.js.map +1 -0
  333. package/lib/esm/fcl-jm31FmFz.js +155 -0
  334. package/lib/esm/fcl-jm31FmFz.js.map +1 -0
  335. package/lib/esm/floating-ui.dom-CAYjY8Gv.js +1130 -0
  336. package/lib/esm/floating-ui.dom-CAYjY8Gv.js.map +1 -0
  337. package/lib/esm/forth-5NKbjnWh.js +165 -0
  338. package/lib/esm/forth-5NKbjnWh.js.map +1 -0
  339. package/lib/esm/fortran-dXm_-cb9.js +173 -0
  340. package/lib/esm/fortran-dXm_-cb9.js.map +1 -0
  341. package/lib/esm/gas-nsYVnsy-.js +344 -0
  342. package/lib/esm/gas-nsYVnsy-.js.map +1 -0
  343. package/lib/esm/gherkin-fzKpjm3M.js +148 -0
  344. package/lib/esm/gherkin-fzKpjm3M.js.map +1 -0
  345. package/lib/esm/go-Pn1qh7yl.js +165 -0
  346. package/lib/esm/go-Pn1qh7yl.js.map +1 -0
  347. package/lib/esm/groovy-DZY-8keZ.js +231 -0
  348. package/lib/esm/groovy-DZY-8keZ.js.map +1 -0
  349. package/lib/esm/haskell-JGh2upDd.js +240 -0
  350. package/lib/esm/haskell-JGh2upDd.js.map +1 -0
  351. package/lib/esm/haxe-1hvVK-Fy.js +491 -0
  352. package/lib/esm/haxe-1hvVK-Fy.js.map +1 -0
  353. package/lib/esm/helper-wZAtC67x.js +13 -0
  354. package/lib/esm/helper-wZAtC67x.js.map +1 -0
  355. package/lib/esm/http-mY1M77wn.js +90 -0
  356. package/lib/esm/http-mY1M77wn.js.map +1 -0
  357. package/lib/esm/idl-dy_653wH.js +275 -0
  358. package/lib/esm/idl-dy_653wH.js.map +1 -0
  359. package/lib/esm/index-0-j8Icms.js +384 -0
  360. package/lib/esm/index-0-j8Icms.js.map +1 -0
  361. package/lib/esm/index-1l-61HI-.js +358 -0
  362. package/lib/esm/index-1l-61HI-.js.map +1 -0
  363. package/lib/esm/index-3HeWs5rX.js +440 -0
  364. package/lib/esm/index-3HeWs5rX.js.map +1 -0
  365. package/lib/esm/index-3bDzhU6z.js +759 -0
  366. package/lib/esm/index-3bDzhU6z.js.map +1 -0
  367. package/lib/esm/index-6GrVnloh.js +1027 -0
  368. package/lib/esm/index-6GrVnloh.js.map +1 -0
  369. package/lib/esm/index-8QJbxTYk.js +1145 -0
  370. package/lib/esm/index-8QJbxTYk.js.map +1 -0
  371. package/lib/esm/index-9w_hdnvb.js +532 -0
  372. package/lib/esm/index-9w_hdnvb.js.map +1 -0
  373. package/lib/esm/index-A83StUe6.js +174 -0
  374. package/lib/esm/index-A83StUe6.js.map +1 -0
  375. package/lib/esm/index-AOoFzBaK.js +53 -0
  376. package/lib/esm/index-AOoFzBaK.js.map +1 -0
  377. package/lib/esm/index-DS7Z4Ach.js +686 -0
  378. package/lib/esm/index-DS7Z4Ach.js.map +1 -0
  379. package/lib/esm/index-Jvxff1vU.js +16 -0
  380. package/lib/esm/index-Jvxff1vU.js.map +1 -0
  381. package/lib/esm/index-LAdX6LsO.js +33805 -0
  382. package/lib/esm/index-LAdX6LsO.js.map +1 -0
  383. package/lib/esm/index-MB6wQe1U.js +74 -0
  384. package/lib/esm/index-MB6wQe1U.js.map +1 -0
  385. package/lib/esm/index-MxgqkRtj.js +125 -0
  386. package/lib/esm/index-MxgqkRtj.js.map +1 -0
  387. package/lib/esm/index-NZ5-xr5_.js +351 -0
  388. package/lib/esm/index-NZ5-xr5_.js.map +1 -0
  389. package/lib/esm/index-OpUb5xP6.js +1872 -0
  390. package/lib/esm/index-OpUb5xP6.js.map +1 -0
  391. package/lib/esm/index-SDPCpsD5.js +461 -0
  392. package/lib/esm/index-SDPCpsD5.js.map +1 -0
  393. package/lib/esm/index-VP76m4nW.js +157 -0
  394. package/lib/esm/index-VP76m4nW.js.map +1 -0
  395. package/lib/esm/index-Vl0W0S3h.js +259 -0
  396. package/lib/esm/index-Vl0W0S3h.js.map +1 -0
  397. package/lib/esm/index-VoX_n1l_.js +1038 -0
  398. package/lib/esm/index-VoX_n1l_.js.map +1 -0
  399. package/lib/esm/index-XH7OnwZl.js +527 -0
  400. package/lib/esm/index-XH7OnwZl.js.map +1 -0
  401. package/lib/esm/index-Yuj7sNhQ.js +105 -0
  402. package/lib/esm/index-Yuj7sNhQ.js.map +1 -0
  403. package/lib/esm/index-_4fWmRbN.js +206 -0
  404. package/lib/esm/index-_4fWmRbN.js.map +1 -0
  405. package/lib/esm/index-bexsWrgs.js +153 -0
  406. package/lib/esm/index-bexsWrgs.js.map +1 -0
  407. package/lib/esm/index-chrnjY1D.js +470 -0
  408. package/lib/esm/index-chrnjY1D.js.map +1 -0
  409. package/lib/esm/index-eqd5wtjX.js +393 -0
  410. package/lib/esm/index-eqd5wtjX.js.map +1 -0
  411. package/lib/esm/index-g_3dzLYU.js +200 -0
  412. package/lib/esm/index-g_3dzLYU.js.map +1 -0
  413. package/lib/esm/index-grT-Kuf2.js +78 -0
  414. package/lib/esm/index-grT-Kuf2.js.map +1 -0
  415. package/lib/esm/index-hF04phbf.js +189 -0
  416. package/lib/esm/index-hF04phbf.js.map +1 -0
  417. package/lib/esm/index-i79QMXpJ.js +25654 -0
  418. package/lib/esm/index-i79QMXpJ.js.map +1 -0
  419. package/lib/esm/index-rvOBAXap.js +2512 -0
  420. package/lib/esm/index-rvOBAXap.js.map +1 -0
  421. package/lib/esm/index-uP9BKsTM.js +446 -0
  422. package/lib/esm/index-uP9BKsTM.js.map +1 -0
  423. package/lib/esm/index-ueQQMSgm.js +1351 -0
  424. package/lib/esm/index-ueQQMSgm.js.map +1 -0
  425. package/lib/esm/index-x8SyiPMC.js +401 -0
  426. package/lib/esm/index-x8SyiPMC.js.map +1 -0
  427. package/lib/esm/index-zrQXXSXm.js +115 -0
  428. package/lib/esm/index-zrQXXSXm.js.map +1 -0
  429. package/lib/esm/index.js +13 -0
  430. package/lib/esm/index.js.map +1 -0
  431. package/lib/esm/javascript-TMTz-YQH.js +923 -0
  432. package/lib/esm/javascript-TMTz-YQH.js.map +1 -0
  433. package/lib/esm/jinja2-sRIdliZK.js +172 -0
  434. package/lib/esm/jinja2-sRIdliZK.js.map +1 -0
  435. package/lib/esm/julia-fK0wmpGL.js +370 -0
  436. package/lib/esm/julia-fK0wmpGL.js.map +1 -0
  437. package/lib/esm/livescript-FRbAot3D.js +260 -0
  438. package/lib/esm/livescript-FRbAot3D.js.map +1 -0
  439. package/lib/esm/lua-t4FHEjvK.js +138 -0
  440. package/lib/esm/lua-t4FHEjvK.js.map +1 -0
  441. package/lib/esm/mathematica-sn_KGlYj.js +154 -0
  442. package/lib/esm/mathematica-sn_KGlYj.js.map +1 -0
  443. package/lib/esm/mbox-KvVC319E.js +115 -0
  444. package/lib/esm/mbox-KvVC319E.js.map +1 -0
  445. package/lib/esm/mirc-PzJ0zKSk.js +177 -0
  446. package/lib/esm/mirc-PzJ0zKSk.js.map +1 -0
  447. package/lib/esm/mllike-ZK411xkN.js +347 -0
  448. package/lib/esm/mllike-ZK411xkN.js.map +1 -0
  449. package/lib/esm/modelica-ZaHlRCbp.js +193 -0
  450. package/lib/esm/modelica-ZaHlRCbp.js.map +1 -0
  451. package/lib/esm/mscgen-Kkq4o4Zm.js +150 -0
  452. package/lib/esm/mscgen-Kkq4o4Zm.js.map +1 -0
  453. package/lib/esm/mumps-M8a87-rl.js +130 -0
  454. package/lib/esm/mumps-M8a87-rl.js.map +1 -0
  455. package/lib/esm/nginx-2LJIX23E.js +164 -0
  456. package/lib/esm/nginx-2LJIX23E.js.map +1 -0
  457. package/lib/esm/nsis-zvfFgMLi.js +81 -0
  458. package/lib/esm/nsis-zvfFgMLi.js.map +1 -0
  459. package/lib/esm/ntriples-tVkHy5bk.js +142 -0
  460. package/lib/esm/ntriples-tVkHy5bk.js.map +1 -0
  461. package/lib/esm/octave-mE4T5MF5.js +113 -0
  462. package/lib/esm/octave-mE4T5MF5.js.map +1 -0
  463. package/lib/esm/oz-q-LCsuVg.js +236 -0
  464. package/lib/esm/oz-q-LCsuVg.js.map +1 -0
  465. package/lib/esm/pascal-0IgUAn4C.js +125 -0
  466. package/lib/esm/pascal-0IgUAn4C.js.map +1 -0
  467. package/lib/esm/perl-AqxdYGac.js +820 -0
  468. package/lib/esm/perl-AqxdYGac.js.map +1 -0
  469. package/lib/esm/pig-ESM-IjQj.js +150 -0
  470. package/lib/esm/pig-ESM-IjQj.js.map +1 -0
  471. package/lib/esm/powershell-CLFP0L55.js +382 -0
  472. package/lib/esm/powershell-CLFP0L55.js.map +1 -0
  473. package/lib/esm/properties-oWHNzvb9.js +63 -0
  474. package/lib/esm/properties-oWHNzvb9.js.map +1 -0
  475. package/lib/esm/protobuf-c7eMmdcc.js +55 -0
  476. package/lib/esm/protobuf-c7eMmdcc.js.map +1 -0
  477. package/lib/esm/puppet-FjzvdRJr.js +206 -0
  478. package/lib/esm/puppet-FjzvdRJr.js.map +1 -0
  479. package/lib/esm/python-3Pv0tnvt.js +390 -0
  480. package/lib/esm/python-3Pv0tnvt.js.map +1 -0
  481. package/lib/esm/q-IImW8da6.js +124 -0
  482. package/lib/esm/q-IImW8da6.js.map +1 -0
  483. package/lib/esm/r-CnEkTvR0.js +175 -0
  484. package/lib/esm/r-CnEkTvR0.js.map +1 -0
  485. package/lib/esm/rpm-Q55-fEHj.js +90 -0
  486. package/lib/esm/rpm-Q55-fEHj.js.map +1 -0
  487. package/lib/esm/ruby-zhaGB3Kh.js +288 -0
  488. package/lib/esm/ruby-zhaGB3Kh.js.map +1 -0
  489. package/lib/esm/sas-Ur9jZIOV.js +269 -0
  490. package/lib/esm/sas-Ur9jZIOV.js.map +1 -0
  491. package/lib/esm/schema-JWJqD9qa.js +71 -0
  492. package/lib/esm/schema-JWJqD9qa.js.map +1 -0
  493. package/lib/esm/scheme-daT5-Rya.js +264 -0
  494. package/lib/esm/scheme-daT5-Rya.js.map +1 -0
  495. package/lib/esm/shell-cwFL0AYP.js +146 -0
  496. package/lib/esm/shell-cwFL0AYP.js.map +1 -0
  497. package/lib/esm/sieve-MlNXFFUq.js +179 -0
  498. package/lib/esm/sieve-MlNXFFUq.js.map +1 -0
  499. package/lib/esm/simple-mode-m1rsX7Gw.js +136 -0
  500. package/lib/esm/simple-mode-m1rsX7Gw.js.map +1 -0
  501. package/lib/esm/smalltalk-xrQICp9e.js +154 -0
  502. package/lib/esm/smalltalk-xrQICp9e.js.map +1 -0
  503. package/lib/esm/solr-PU3oPgQz.js +81 -0
  504. package/lib/esm/solr-PU3oPgQz.js.map +1 -0
  505. package/lib/esm/sparql--u8NRBii.js +171 -0
  506. package/lib/esm/sparql--u8NRBii.js.map +1 -0
  507. package/lib/esm/spreadsheet-QCp0LifX.js +99 -0
  508. package/lib/esm/spreadsheet-QCp0LifX.js.map +1 -0
  509. package/lib/esm/sql-dsGfl64h.js +482 -0
  510. package/lib/esm/sql-dsGfl64h.js.map +1 -0
  511. package/lib/esm/stex-WcLBzvkD.js +247 -0
  512. package/lib/esm/stex-WcLBzvkD.js.map +1 -0
  513. package/lib/esm/stylus--A5XAqOX.js +751 -0
  514. package/lib/esm/stylus--A5XAqOX.js.map +1 -0
  515. package/lib/esm/swift-qAm73i7G.js +203 -0
  516. package/lib/esm/swift-qAm73i7G.js.map +1 -0
  517. package/lib/esm/tcl-Kdc7qxc-.js +126 -0
  518. package/lib/esm/tcl-Kdc7qxc-.js.map +1 -0
  519. package/lib/esm/textile--sz8UrIz.js +442 -0
  520. package/lib/esm/textile--sz8UrIz.js.map +1 -0
  521. package/lib/esm/tiddlywiki-xNXTeBlQ.js +279 -0
  522. package/lib/esm/tiddlywiki-xNXTeBlQ.js.map +1 -0
  523. package/lib/esm/tiki-LCXjrNH3.js +290 -0
  524. package/lib/esm/tiki-LCXjrNH3.js.map +1 -0
  525. package/lib/esm/todoList-M-PGJKde.js +378 -0
  526. package/lib/esm/todoList-M-PGJKde.js.map +1 -0
  527. package/lib/esm/toml-Ac4tlBMn.js +76 -0
  528. package/lib/esm/toml-Ac4tlBMn.js.map +1 -0
  529. package/lib/esm/tooltip-plugin-iw2EQWIG.js +185 -0
  530. package/lib/esm/tooltip-plugin-iw2EQWIG.js.map +1 -0
  531. package/lib/esm/troff-LLW1x1Yz.js +65 -0
  532. package/lib/esm/troff-LLW1x1Yz.js.map +1 -0
  533. package/lib/esm/ttcn-ZYZ9FS3u.js +258 -0
  534. package/lib/esm/ttcn-ZYZ9FS3u.js.map +1 -0
  535. package/lib/esm/ttcn-cfg-qsvf3MfB.js +202 -0
  536. package/lib/esm/ttcn-cfg-qsvf3MfB.js.map +1 -0
  537. package/lib/esm/turtle-wq3TqOth.js +142 -0
  538. package/lib/esm/turtle-wq3TqOth.js.map +1 -0
  539. package/lib/esm/vb-86M_JuNP.js +250 -0
  540. package/lib/esm/vb-86M_JuNP.js.map +1 -0
  541. package/lib/esm/vbscript-GueAeVug.js +321 -0
  542. package/lib/esm/vbscript-GueAeVug.js.map +1 -0
  543. package/lib/esm/velocity-7PW9GXO2.js +187 -0
  544. package/lib/esm/velocity-7PW9GXO2.js.map +1 -0
  545. package/lib/esm/verilog-PXtXH14C.js +566 -0
  546. package/lib/esm/verilog-PXtXH14C.js.map +1 -0
  547. package/lib/esm/vhdl-I8eyK83X.js +175 -0
  548. package/lib/esm/vhdl-I8eyK83X.js.map +1 -0
  549. package/lib/esm/webidl-1f8ATJ66.js +180 -0
  550. package/lib/esm/webidl-1f8ATJ66.js.map +1 -0
  551. package/lib/esm/xquery-IYp28Wx6.js +426 -0
  552. package/lib/esm/xquery-IYp28Wx6.js.map +1 -0
  553. package/lib/esm/yacas-wkENB05f.js +183 -0
  554. package/lib/esm/yacas-wkENB05f.js.map +1 -0
  555. package/lib/esm/z80-GaXiLdiV.js +103 -0
  556. package/lib/esm/z80-GaXiLdiV.js.map +1 -0
  557. package/lib/theme/_internal/classic-common.css +257 -0
  558. package/lib/theme/common/block-edit.css +120 -0
  559. package/lib/theme/common/code-mirror.css +192 -0
  560. package/lib/theme/common/cursor.css +13 -0
  561. package/lib/theme/common/image-block.css +364 -0
  562. package/lib/theme/common/link-tooltip.css +102 -0
  563. package/lib/theme/common/list-item.css +49 -0
  564. package/lib/theme/common/placeholder.css +7 -0
  565. package/lib/theme/common/prosemirror.css +1 -0
  566. package/lib/theme/common/style.css +10 -0
  567. package/lib/theme/common/table.css +217 -0
  568. package/lib/theme/common/toolbar.css +41 -0
  569. package/lib/theme/crepe/style.css +28 -0
  570. package/lib/theme/crepe-dark/style.css +28 -0
  571. package/lib/theme/frame/style.css +28 -0
  572. package/lib/theme/frame-dark/style.css +28 -0
  573. package/lib/theme/nord/style.css +28 -0
  574. package/lib/theme/nord-dark/style.css +28 -0
  575. package/lib/types/core/crepe.d.ts +21 -0
  576. package/lib/types/core/crepe.d.ts.map +1 -0
  577. package/lib/types/core/index.d.ts +2 -0
  578. package/lib/types/core/index.d.ts.map +1 -0
  579. package/lib/types/core/slice.d.ts +5 -0
  580. package/lib/types/core/slice.d.ts.map +1 -0
  581. package/lib/types/feature/block-edit/handle/component.d.ts +12 -0
  582. package/lib/types/feature/block-edit/handle/component.d.ts.map +1 -0
  583. package/lib/types/feature/block-edit/handle/index.d.ts +12 -0
  584. package/lib/types/feature/block-edit/handle/index.d.ts.map +1 -0
  585. package/lib/types/feature/block-edit/index.d.ts +44 -0
  586. package/lib/types/feature/block-edit/index.d.ts.map +1 -0
  587. package/lib/types/feature/block-edit/menu/component.d.ts +16 -0
  588. package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -0
  589. package/lib/types/feature/block-edit/menu/config.d.ts +12 -0
  590. package/lib/types/feature/block-edit/menu/config.d.ts.map +1 -0
  591. package/lib/types/feature/block-edit/menu/group-builder.d.ts +29 -0
  592. package/lib/types/feature/block-edit/menu/group-builder.d.ts.map +1 -0
  593. package/lib/types/feature/block-edit/menu/index.d.ts +10 -0
  594. package/lib/types/feature/block-edit/menu/index.d.ts.map +1 -0
  595. package/lib/types/feature/block-edit/menu/utils.d.ts +28 -0
  596. package/lib/types/feature/block-edit/menu/utils.d.ts.map +1 -0
  597. package/lib/types/feature/code-mirror/index.d.ts +19 -0
  598. package/lib/types/feature/code-mirror/index.d.ts.map +1 -0
  599. package/lib/types/feature/cursor/index.d.ts +9 -0
  600. package/lib/types/feature/cursor/index.d.ts.map +1 -0
  601. package/lib/types/feature/image-block/index.d.ts +20 -0
  602. package/lib/types/feature/image-block/index.d.ts.map +1 -0
  603. package/lib/types/feature/index.d.ts +35 -0
  604. package/lib/types/feature/index.d.ts.map +1 -0
  605. package/lib/types/feature/link-tooltip/index.d.ts +13 -0
  606. package/lib/types/feature/link-tooltip/index.d.ts.map +1 -0
  607. package/lib/types/feature/list-item/index.d.ts +9 -0
  608. package/lib/types/feature/list-item/index.d.ts.map +1 -0
  609. package/lib/types/feature/placeholder/index.d.ts +11 -0
  610. package/lib/types/feature/placeholder/index.d.ts.map +1 -0
  611. package/lib/types/feature/shared.d.ts +5 -0
  612. package/lib/types/feature/shared.d.ts.map +1 -0
  613. package/lib/types/feature/table/index.d.ts +16 -0
  614. package/lib/types/feature/table/index.d.ts.map +1 -0
  615. package/lib/types/feature/toolbar/component.d.ts +15 -0
  616. package/lib/types/feature/toolbar/component.d.ts.map +1 -0
  617. package/lib/types/feature/toolbar/index.d.ts +12 -0
  618. package/lib/types/feature/toolbar/index.d.ts.map +1 -0
  619. package/lib/types/icons/alignCenter.d.ts +2 -0
  620. package/lib/types/icons/alignCenter.d.ts.map +1 -0
  621. package/lib/types/icons/alignLeft.d.ts +2 -0
  622. package/lib/types/icons/alignLeft.d.ts.map +1 -0
  623. package/lib/types/icons/alignRight.d.ts +2 -0
  624. package/lib/types/icons/alignRight.d.ts.map +1 -0
  625. package/lib/types/icons/bold.d.ts +2 -0
  626. package/lib/types/icons/bold.d.ts.map +1 -0
  627. package/lib/types/icons/bullet.d.ts +2 -0
  628. package/lib/types/icons/bullet.d.ts.map +1 -0
  629. package/lib/types/icons/bulletList.d.ts +2 -0
  630. package/lib/types/icons/bulletList.d.ts.map +1 -0
  631. package/lib/types/icons/caption.d.ts +2 -0
  632. package/lib/types/icons/caption.d.ts.map +1 -0
  633. package/lib/types/icons/checkBoxChecked.d.ts +2 -0
  634. package/lib/types/icons/checkBoxChecked.d.ts.map +1 -0
  635. package/lib/types/icons/checkBoxUnchecked.d.ts +2 -0
  636. package/lib/types/icons/checkBoxUnchecked.d.ts.map +1 -0
  637. package/lib/types/icons/chevronDown.d.ts +2 -0
  638. package/lib/types/icons/chevronDown.d.ts.map +1 -0
  639. package/lib/types/icons/clear.d.ts +2 -0
  640. package/lib/types/icons/clear.d.ts.map +1 -0
  641. package/lib/types/icons/code.d.ts +2 -0
  642. package/lib/types/icons/code.d.ts.map +1 -0
  643. package/lib/types/icons/confirm.d.ts +2 -0
  644. package/lib/types/icons/confirm.d.ts.map +1 -0
  645. package/lib/types/icons/divider.d.ts +2 -0
  646. package/lib/types/icons/divider.d.ts.map +1 -0
  647. package/lib/types/icons/dragHandle.d.ts +2 -0
  648. package/lib/types/icons/dragHandle.d.ts.map +1 -0
  649. package/lib/types/icons/edit.d.ts +2 -0
  650. package/lib/types/icons/edit.d.ts.map +1 -0
  651. package/lib/types/icons/h1.d.ts +2 -0
  652. package/lib/types/icons/h1.d.ts.map +1 -0
  653. package/lib/types/icons/h2.d.ts +2 -0
  654. package/lib/types/icons/h2.d.ts.map +1 -0
  655. package/lib/types/icons/h3.d.ts +2 -0
  656. package/lib/types/icons/h3.d.ts.map +1 -0
  657. package/lib/types/icons/h4.d.ts +2 -0
  658. package/lib/types/icons/h4.d.ts.map +1 -0
  659. package/lib/types/icons/h5.d.ts +2 -0
  660. package/lib/types/icons/h5.d.ts.map +1 -0
  661. package/lib/types/icons/h6.d.ts +2 -0
  662. package/lib/types/icons/h6.d.ts.map +1 -0
  663. package/lib/types/icons/image.d.ts +2 -0
  664. package/lib/types/icons/image.d.ts.map +1 -0
  665. package/lib/types/icons/index.d.ts +36 -0
  666. package/lib/types/icons/index.d.ts.map +1 -0
  667. package/lib/types/icons/italic.d.ts +2 -0
  668. package/lib/types/icons/italic.d.ts.map +1 -0
  669. package/lib/types/icons/link.d.ts +2 -0
  670. package/lib/types/icons/link.d.ts.map +1 -0
  671. package/lib/types/icons/menu.d.ts +2 -0
  672. package/lib/types/icons/menu.d.ts.map +1 -0
  673. package/lib/types/icons/orderedList.d.ts +2 -0
  674. package/lib/types/icons/orderedList.d.ts.map +1 -0
  675. package/lib/types/icons/plus.d.ts +2 -0
  676. package/lib/types/icons/plus.d.ts.map +1 -0
  677. package/lib/types/icons/quote.d.ts +2 -0
  678. package/lib/types/icons/quote.d.ts.map +1 -0
  679. package/lib/types/icons/remove.d.ts +2 -0
  680. package/lib/types/icons/remove.d.ts.map +1 -0
  681. package/lib/types/icons/search.d.ts +2 -0
  682. package/lib/types/icons/search.d.ts.map +1 -0
  683. package/lib/types/icons/strikethrough.d.ts +2 -0
  684. package/lib/types/icons/strikethrough.d.ts.map +1 -0
  685. package/lib/types/icons/table.d.ts +2 -0
  686. package/lib/types/icons/table.d.ts.map +1 -0
  687. package/lib/types/icons/text.d.ts +2 -0
  688. package/lib/types/icons/text.d.ts.map +1 -0
  689. package/lib/types/icons/todoList.d.ts +2 -0
  690. package/lib/types/icons/todoList.d.ts.map +1 -0
  691. package/lib/types/index.d.ts +3 -0
  692. package/lib/types/index.d.ts.map +1 -0
  693. package/lib/types/utils/index.d.ts +5 -0
  694. package/lib/types/utils/index.d.ts.map +1 -0
  695. package/package.json +25 -31
  696. package/src/core/crepe.ts +17 -17
  697. package/src/core/index.ts +0 -3
  698. package/src/core/slice.ts +2 -35
  699. package/src/feature/block-edit/handle/component.ts +13 -30
  700. package/src/feature/block-edit/handle/index.ts +39 -33
  701. package/src/feature/block-edit/index.ts +50 -9
  702. package/src/feature/block-edit/menu/component.ts +19 -12
  703. package/src/feature/block-edit/menu/config.ts +203 -275
  704. package/src/feature/block-edit/menu/group-builder.ts +50 -0
  705. package/src/feature/block-edit/menu/index.ts +20 -21
  706. package/src/feature/block-edit/menu/utils.ts +89 -0
  707. package/src/feature/code-mirror/index.ts +47 -47
  708. package/src/feature/cursor/index.ts +21 -0
  709. package/src/feature/image-block/index.ts +34 -45
  710. package/src/feature/index.ts +28 -7
  711. package/src/feature/link-tooltip/index.ts +23 -14
  712. package/src/feature/list-item/index.ts +22 -14
  713. package/src/feature/placeholder/index.ts +12 -11
  714. package/src/feature/shared.ts +5 -3
  715. package/src/feature/table/index.ts +54 -0
  716. package/src/feature/toolbar/component.ts +29 -12
  717. package/src/feature/toolbar/index.ts +31 -25
  718. package/src/icons/alignCenter.ts +7 -0
  719. package/src/icons/alignLeft.ts +7 -0
  720. package/src/icons/alignRight.ts +7 -0
  721. package/src/icons/bold.ts +7 -0
  722. package/src/icons/bullet.ts +14 -0
  723. package/src/icons/bulletList.ts +14 -0
  724. package/src/icons/caption.ts +7 -0
  725. package/src/icons/checkBoxChecked.ts +14 -0
  726. package/src/icons/checkBoxUnchecked.ts +14 -0
  727. package/src/icons/chevronDown.ts +7 -0
  728. package/src/icons/clear.ts +14 -0
  729. package/src/icons/code.ts +14 -0
  730. package/src/icons/confirm.ts +14 -0
  731. package/src/icons/divider.ts +14 -0
  732. package/src/icons/dragHandle.ts +7 -0
  733. package/src/icons/edit.ts +14 -0
  734. package/src/icons/h1.ts +14 -0
  735. package/src/icons/h2.ts +14 -0
  736. package/src/icons/h3.ts +14 -0
  737. package/src/icons/h4.ts +14 -0
  738. package/src/icons/h5.ts +14 -0
  739. package/src/icons/h6.ts +14 -0
  740. package/src/icons/image.ts +14 -0
  741. package/src/icons/index.ts +35 -0
  742. package/src/icons/italic.ts +7 -0
  743. package/src/icons/link.ts +7 -0
  744. package/src/icons/menu.ts +14 -0
  745. package/src/icons/orderedList.ts +14 -0
  746. package/src/icons/plus.ts +14 -0
  747. package/src/icons/quote.ts +14 -0
  748. package/src/icons/remove.ts +7 -0
  749. package/src/icons/search.ts +7 -0
  750. package/src/icons/strikethrough.ts +7 -0
  751. package/src/icons/table.ts +14 -0
  752. package/src/icons/text.ts +14 -0
  753. package/src/icons/todoList.ts +7 -0
  754. package/src/index.ts +0 -3
  755. package/src/theme/_internal/classic-common.css +220 -0
  756. package/src/theme/common/block-edit.css +138 -0
  757. package/src/theme/common/code-mirror.css +189 -0
  758. package/src/theme/common/cursor.css +15 -0
  759. package/src/theme/common/image-block.css +381 -0
  760. package/src/theme/common/link-tooltip.css +112 -0
  761. package/src/theme/common/list-item.css +43 -0
  762. package/src/theme/common/prosemirror.css +1 -0
  763. package/src/theme/common/style.css +10 -0
  764. package/src/theme/common/table.css +204 -0
  765. package/src/theme/common/toolbar.css +51 -0
  766. package/src/theme/crepe/style.css +28 -0
  767. package/src/theme/crepe-dark/style.css +28 -0
  768. package/src/theme/frame/style.css +28 -0
  769. package/src/theme/frame-dark/style.css +28 -0
  770. package/src/theme/nord/style.css +28 -0
  771. package/src/theme/nord-dark/style.css +28 -0
  772. package/src/utils/index.ts +6 -2
  773. package/src/vite-env.d.ts +0 -1
  774. package/lib/apl-p0IPP13W.js +0 -76
  775. package/lib/asciiarmor-lJsBxlJJ.js +0 -34
  776. package/lib/asn1-Q9v1zIy5.js +0 -102
  777. package/lib/asterisk-foNkeTjy.js +0 -273
  778. package/lib/brainfuck-0XqyXpNS.js +0 -35
  779. package/lib/clike-ak6Z6Yhe.js +0 -639
  780. package/lib/clojure-iYO8U8Sg.js +0 -810
  781. package/lib/clsx-7d8NmkQq.js +0 -21
  782. package/lib/cmake-SVzjkxV_.js +0 -28
  783. package/lib/cobol-APHEnAOX.js +0 -74
  784. package/lib/coffeescript-KqQa0SYG.js +0 -182
  785. package/lib/commonlisp-bwqNqR5V.js +0 -79
  786. package/lib/core/crepe.d.ts +0 -21
  787. package/lib/core/crepe.d.ts.map +0 -1
  788. package/lib/core/index.d.ts +0 -3
  789. package/lib/core/index.d.ts.map +0 -1
  790. package/lib/core/slice.d.ts +0 -12
  791. package/lib/core/slice.d.ts.map +0 -1
  792. package/lib/crystal-BViWuDpA.js +0 -217
  793. package/lib/css-KHXHXfXg.js +0 -1572
  794. package/lib/cypher-XpTt4zQ3.js +0 -69
  795. package/lib/d-fLig6yqY.js +0 -139
  796. package/lib/diff-WoKGLpy6.js +0 -18
  797. package/lib/dockerfile-u6f6Vw2s.js +0 -194
  798. package/lib/dtd-SIJRUW6K.js +0 -91
  799. package/lib/dylan-4HCLhpWP.js +0 -238
  800. package/lib/ebnf-h_0lged5.js +0 -77
  801. package/lib/ecl-Lf4FF0lf.js +0 -133
  802. package/lib/eiffel-qlw8KUyf.js +0 -112
  803. package/lib/elm-QRnB3zXs.js +0 -108
  804. package/lib/erlang-fyVKb7eK.js +0 -488
  805. package/lib/factor-BEeN4upY.js +0 -65
  806. package/lib/fcl-lRek3hEb.js +0 -106
  807. package/lib/feature/block-edit/handle/component.d.ts +0 -9
  808. package/lib/feature/block-edit/handle/component.d.ts.map +0 -1
  809. package/lib/feature/block-edit/handle/index.d.ts +0 -12
  810. package/lib/feature/block-edit/handle/index.d.ts.map +0 -1
  811. package/lib/feature/block-edit/index.d.ts +0 -3
  812. package/lib/feature/block-edit/index.d.ts.map +0 -1
  813. package/lib/feature/block-edit/menu/component.d.ts +0 -14
  814. package/lib/feature/block-edit/menu/component.d.ts.map +0 -1
  815. package/lib/feature/block-edit/menu/config.d.ts +0 -21
  816. package/lib/feature/block-edit/menu/config.d.ts.map +0 -1
  817. package/lib/feature/block-edit/menu/icons.d.ts +0 -14
  818. package/lib/feature/block-edit/menu/icons.d.ts.map +0 -1
  819. package/lib/feature/block-edit/menu/index.d.ts +0 -9
  820. package/lib/feature/block-edit/menu/index.d.ts.map +0 -1
  821. package/lib/feature/code-mirror/index.d.ts +0 -3
  822. package/lib/feature/code-mirror/index.d.ts.map +0 -1
  823. package/lib/feature/gap-cursor/index.d.ts +0 -3
  824. package/lib/feature/gap-cursor/index.d.ts.map +0 -1
  825. package/lib/feature/image-block/index.d.ts +0 -3
  826. package/lib/feature/image-block/index.d.ts.map +0 -1
  827. package/lib/feature/index.d.ts +0 -18
  828. package/lib/feature/index.d.ts.map +0 -1
  829. package/lib/feature/link-tooltip/consts.d.ts +0 -5
  830. package/lib/feature/link-tooltip/consts.d.ts.map +0 -1
  831. package/lib/feature/link-tooltip/index.d.ts +0 -3
  832. package/lib/feature/link-tooltip/index.d.ts.map +0 -1
  833. package/lib/feature/list-item/consts.d.ts +0 -2
  834. package/lib/feature/list-item/consts.d.ts.map +0 -1
  835. package/lib/feature/list-item/index.d.ts +0 -3
  836. package/lib/feature/list-item/index.d.ts.map +0 -1
  837. package/lib/feature/placeholder/index.d.ts +0 -10
  838. package/lib/feature/placeholder/index.d.ts.map +0 -1
  839. package/lib/feature/shared.d.ts +0 -3
  840. package/lib/feature/shared.d.ts.map +0 -1
  841. package/lib/feature/toolbar/component.d.ts +0 -13
  842. package/lib/feature/toolbar/component.d.ts.map +0 -1
  843. package/lib/feature/toolbar/consts.d.ts +0 -5
  844. package/lib/feature/toolbar/consts.d.ts.map +0 -1
  845. package/lib/feature/toolbar/index.d.ts +0 -3
  846. package/lib/feature/toolbar/index.d.ts.map +0 -1
  847. package/lib/forth-ua2bRd8T.js +0 -60
  848. package/lib/fortran-WnF7znuN.js +0 -443
  849. package/lib/gas-wowve1o7.js +0 -183
  850. package/lib/gherkin-m7GIChu3.js +0 -34
  851. package/lib/go-th443Dhb.js +0 -158
  852. package/lib/groovy-tR4RiZnc.js +0 -161
  853. package/lib/haskell-jxVBofv5.js +0 -375
  854. package/lib/haxe-kWPI2tq3.js +0 -390
  855. package/lib/hooks-82sqkbtE.js +0 -21
  856. package/lib/http-3GIFWUlG.js +0 -45
  857. package/lib/icons-HYkfuR-O.js +0 -50
  858. package/lib/idl-PvpMZg-l.js +0 -947
  859. package/lib/index-BSv6537G.js +0 -364
  860. package/lib/index-BoI246Ti.js +0 -507
  861. package/lib/index-DDSXiQ90.js +0 -552
  862. package/lib/index-ECCvmC6D.js +0 -1301
  863. package/lib/index-EI1FcaSv.js +0 -928
  864. package/lib/index-ESoQGvsE.js +0 -288
  865. package/lib/index-GOH7H2i9.js +0 -81
  866. package/lib/index-GjFRg3RJ.js +0 -8
  867. package/lib/index-GzVCh3P9.js +0 -353
  868. package/lib/index-KCykNSJx.js +0 -323
  869. package/lib/index-Ls2I7eOW.js +0 -20986
  870. package/lib/index-P4-KqpEN.js +0 -275
  871. package/lib/index-Qcks_HSE.js +0 -984
  872. package/lib/index-RKThEh9x.js +0 -517
  873. package/lib/index-UqF8o9eD.js +0 -19665
  874. package/lib/index-_VrGF4z-.js +0 -47
  875. package/lib/index-cteyPSwp.js +0 -83
  876. package/lib/index-f0pbmfJP.js +0 -64
  877. package/lib/index-gMYRN2wV.js +0 -107
  878. package/lib/index-jZuF1Iix.js +0 -146
  879. package/lib/index-kyD7hUif.js +0 -141
  880. package/lib/index-oszOFbwW.js +0 -1041
  881. package/lib/index-pC1MPpe2.js +0 -1744
  882. package/lib/index-q3iu4cef.js +0 -78
  883. package/lib/index-qMeqmZtK.js +0 -168
  884. package/lib/index-rs4SJ8Gd.js +0 -253
  885. package/lib/index-w-CiezW1.js +0 -135
  886. package/lib/index-x6C6leag.js +0 -99
  887. package/lib/index-xHADmDT3.js +0 -12
  888. package/lib/index-xa7wUurf.js +0 -8
  889. package/lib/index-xjkoF_Bn.js +0 -317
  890. package/lib/index-yrfirMbY.js +0 -551
  891. package/lib/index-zNGl_CdN.js +0 -8
  892. package/lib/index-zc51oyS8.js +0 -121
  893. package/lib/index.d.ts +0 -4
  894. package/lib/index.d.ts.map +0 -1
  895. package/lib/index.es.js +0 -7
  896. package/lib/javascript-8ZHqHagw.js +0 -758
  897. package/lib/jinja2-vsOFe0qD.js +0 -154
  898. package/lib/julia-dlp_pbN1.js +0 -241
  899. package/lib/livescript-Gf5R-LT6.js +0 -273
  900. package/lib/lua-c5Y_JsBp.js +0 -221
  901. package/lib/mathematica-iiGTGmUs.js +0 -35
  902. package/lib/mbox-ZJh86H8B.js +0 -78
  903. package/lib/meta-tAGyVRPE.js +0 -511
  904. package/lib/mirc-i0qkCa0y.js +0 -73
  905. package/lib/mllike-Dy551fZW.js +0 -275
  906. package/lib/modelica-n6tGqUT9.js +0 -94
  907. package/lib/mscgen-aKSbB7D9.js +0 -104
  908. package/lib/mumps-lNiKA6sp.js +0 -25
  909. package/lib/nginx--YmuCfDj.js +0 -93
  910. package/lib/nsis-zhS8iA09.js +0 -62
  911. package/lib/ntriples-E3jQl3MC.js +0 -79
  912. package/lib/octave-EQvkGIeG.js +0 -144
  913. package/lib/oz-W2cpqFf6.js +0 -152
  914. package/lib/pascal-lCh6ouNZ.js +0 -79
  915. package/lib/perl-PxEQBX0B.js +0 -915
  916. package/lib/pig-Y_bNcrzS.js +0 -56
  917. package/lib/powershell-GaQP-TZr.js +0 -249
  918. package/lib/properties-mbRyn54L.js +0 -26
  919. package/lib/prosemirror-noTDkx-k.js +0 -4
  920. package/lib/protobuf-8CJideyJ.js +0 -49
  921. package/lib/puppet-ABBaChNZ.js +0 -45
  922. package/lib/python-sKdHg3Ka.js +0 -321
  923. package/lib/q-_1yG40Nm.js +0 -89
  924. package/lib/r-Ziz56bHT.js +0 -108
  925. package/lib/rpm-ORjGOHaQ.js +0 -57
  926. package/lib/ruby-jlbYq0dT.js +0 -233
  927. package/lib/sas-2n7xeUuO.js +0 -107
  928. package/lib/schema-ywm7RaKF.js +0 -62
  929. package/lib/scheme-XCs-NPeU.js +0 -126
  930. package/lib/shell-0_1Um7Dq.js +0 -184
  931. package/lib/sieve-7uyJD1x1.js +0 -73
  932. package/lib/simple-mode--HIzBxba.js +0 -95
  933. package/lib/smalltalk-PEFzrlQ-.js +0 -48
  934. package/lib/solr-BLBaHahN.js +0 -41
  935. package/lib/sparql-4F9ZWf1b.js +0 -204
  936. package/lib/spreadsheet-SGSo6blj.js +0 -49
  937. package/lib/sql-tebLBzN0.js +0 -291
  938. package/lib/stex-SFJcFGOO.js +0 -130
  939. package/lib/stylus-rwwWYWFm.js +0 -256
  940. package/lib/swift-eorJ0tCv.js +0 -238
  941. package/lib/tcl-IwXMB8U4.js +0 -82
  942. package/lib/textile-ok2VyjwC.js +0 -299
  943. package/lib/theme/classic/index.d.ts +0 -3
  944. package/lib/theme/classic/index.d.ts.map +0 -1
  945. package/lib/theme/classic-dark/index.d.ts +0 -3
  946. package/lib/theme/classic-dark/index.d.ts.map +0 -1
  947. package/lib/theme/headless/index.d.ts +0 -3
  948. package/lib/theme/headless/index.d.ts.map +0 -1
  949. package/lib/theme/index.d.ts +0 -8
  950. package/lib/theme/index.d.ts.map +0 -1
  951. package/lib/theme/shared.d.ts +0 -3
  952. package/lib/theme/shared.d.ts.map +0 -1
  953. package/lib/tiddlywiki-DLhz8_pc.js +0 -156
  954. package/lib/tiki-DFAqFElY.js +0 -183
  955. package/lib/tippy.esm-4ny8MQOF.js +0 -1813
  956. package/lib/toml-ryxpTZEV.js +0 -49
  957. package/lib/tooltip-plugin-NpyG8C5u.js +0 -122
  958. package/lib/troff-ZzZyvNct.js +0 -36
  959. package/lib/ttcn-6gvkqqpW.js +0 -136
  960. package/lib/ttcn-cfg-oSu-Dq5C.js +0 -98
  961. package/lib/turtle-10ofr5au.js +0 -87
  962. package/lib/utils/index.d.ts +0 -4
  963. package/lib/utils/index.d.ts.map +0 -1
  964. package/lib/vb-a6n6fzrD.js +0 -74
  965. package/lib/vbscript-dgvo8jPt.js +0 -324
  966. package/lib/velocity-CBncCrwO.js +0 -97
  967. package/lib/verilog-KlcACt6C.js +0 -271
  968. package/lib/vhdl-NMd7Gf35.js +0 -117
  969. package/lib/webidl-z1UE5DN_.js +0 -160
  970. package/lib/xquery-hDt5jWTp.js +0 -431
  971. package/lib/yacas-ftgh_qwr.js +0 -74
  972. package/lib/z80-dA1PqWe1.js +0 -62
  973. package/src/feature/block-edit/menu/icons.ts +0 -171
  974. package/src/feature/block-edit/style.css +0 -126
  975. package/src/feature/code-mirror/style.css +0 -159
  976. package/src/feature/gap-cursor/index.ts +0 -31
  977. package/src/feature/image-block/style.css +0 -215
  978. package/src/feature/link-tooltip/consts.ts +0 -47
  979. package/src/feature/link-tooltip/style.css +0 -107
  980. package/src/feature/list-item/consts.ts +0 -15
  981. package/src/feature/list-item/style.css +0 -23
  982. package/src/feature/toolbar/consts.ts +0 -26
  983. package/src/feature/toolbar/style.css +0 -37
  984. package/src/theme/classic/index.ts +0 -12
  985. package/src/theme/classic/style.css +0 -192
  986. package/src/theme/classic-dark/index.ts +0 -12
  987. package/src/theme/classic-dark/style.css +0 -197
  988. package/src/theme/headless/index.ts +0 -9
  989. package/src/theme/index.ts +0 -26
  990. package/src/theme/shared.ts +0 -4
  991. /package/src/{feature/placeholder/style.css → theme/common/placeholder.css} +0 -0
@@ -0,0 +1,923 @@
1
+ function mkJavaScript(parserConfig) {
2
+ var statementIndent = parserConfig.statementIndent;
3
+ var jsonldMode = parserConfig.jsonld;
4
+ var jsonMode = parserConfig.json || jsonldMode;
5
+ var isTS = parserConfig.typescript;
6
+ var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
7
+
8
+ // Tokenizer
9
+
10
+ var keywords = function(){
11
+ function kw(type) {return {type: type, style: "keyword"};}
12
+ var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d");
13
+ var operator = kw("operator"), atom = {type: "atom", style: "atom"};
14
+
15
+ return {
16
+ "if": kw("if"), "while": A, "with": A, "else": B, "do": B, "try": B, "finally": B,
17
+ "return": D, "break": D, "continue": D, "new": kw("new"), "delete": C, "void": C, "throw": C,
18
+ "debugger": kw("debugger"), "var": kw("var"), "const": kw("var"), "let": kw("var"),
19
+ "function": kw("function"), "catch": kw("catch"),
20
+ "for": kw("for"), "switch": kw("switch"), "case": kw("case"), "default": kw("default"),
21
+ "in": operator, "typeof": operator, "instanceof": operator,
22
+ "true": atom, "false": atom, "null": atom, "undefined": atom, "NaN": atom, "Infinity": atom,
23
+ "this": kw("this"), "class": kw("class"), "super": kw("atom"),
24
+ "yield": C, "export": kw("export"), "import": kw("import"), "extends": C,
25
+ "await": C
26
+ };
27
+ }();
28
+
29
+ var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
30
+ var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
31
+
32
+ function readRegexp(stream) {
33
+ var escaped = false, next, inSet = false;
34
+ while ((next = stream.next()) != null) {
35
+ if (!escaped) {
36
+ if (next == "/" && !inSet) return;
37
+ if (next == "[") inSet = true;
38
+ else if (inSet && next == "]") inSet = false;
39
+ }
40
+ escaped = !escaped && next == "\\";
41
+ }
42
+ }
43
+
44
+ // Used as scratch variables to communicate multiple values without
45
+ // consing up tons of objects.
46
+ var type, content;
47
+ function ret(tp, style, cont) {
48
+ type = tp; content = cont;
49
+ return style;
50
+ }
51
+ function tokenBase(stream, state) {
52
+ var ch = stream.next();
53
+ if (ch == '"' || ch == "'") {
54
+ state.tokenize = tokenString(ch);
55
+ return state.tokenize(stream, state);
56
+ } else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
57
+ return ret("number", "number");
58
+ } else if (ch == "." && stream.match("..")) {
59
+ return ret("spread", "meta");
60
+ } else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
61
+ return ret(ch);
62
+ } else if (ch == "=" && stream.eat(">")) {
63
+ return ret("=>", "operator");
64
+ } else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
65
+ return ret("number", "number");
66
+ } else if (/\d/.test(ch)) {
67
+ stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
68
+ return ret("number", "number");
69
+ } else if (ch == "/") {
70
+ if (stream.eat("*")) {
71
+ state.tokenize = tokenComment;
72
+ return tokenComment(stream, state);
73
+ } else if (stream.eat("/")) {
74
+ stream.skipToEnd();
75
+ return ret("comment", "comment");
76
+ } else if (expressionAllowed(stream, state, 1)) {
77
+ readRegexp(stream);
78
+ stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
79
+ return ret("regexp", "string.special");
80
+ } else {
81
+ stream.eat("=");
82
+ return ret("operator", "operator", stream.current());
83
+ }
84
+ } else if (ch == "`") {
85
+ state.tokenize = tokenQuasi;
86
+ return tokenQuasi(stream, state);
87
+ } else if (ch == "#" && stream.peek() == "!") {
88
+ stream.skipToEnd();
89
+ return ret("meta", "meta");
90
+ } else if (ch == "#" && stream.eatWhile(wordRE)) {
91
+ return ret("variable", "property")
92
+ } else if (ch == "<" && stream.match("!--") ||
93
+ (ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start)))) {
94
+ stream.skipToEnd();
95
+ return ret("comment", "comment")
96
+ } else if (isOperatorChar.test(ch)) {
97
+ if (ch != ">" || !state.lexical || state.lexical.type != ">") {
98
+ if (stream.eat("=")) {
99
+ if (ch == "!" || ch == "=") stream.eat("=");
100
+ } else if (/[<>*+\-|&?]/.test(ch)) {
101
+ stream.eat(ch);
102
+ if (ch == ">") stream.eat(ch);
103
+ }
104
+ }
105
+ if (ch == "?" && stream.eat(".")) return ret(".")
106
+ return ret("operator", "operator", stream.current());
107
+ } else if (wordRE.test(ch)) {
108
+ stream.eatWhile(wordRE);
109
+ var word = stream.current();
110
+ if (state.lastType != ".") {
111
+ if (keywords.propertyIsEnumerable(word)) {
112
+ var kw = keywords[word];
113
+ return ret(kw.type, kw.style, word)
114
+ }
115
+ if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
116
+ return ret("async", "keyword", word)
117
+ }
118
+ return ret("variable", "variable", word)
119
+ }
120
+ }
121
+
122
+ function tokenString(quote) {
123
+ return function(stream, state) {
124
+ var escaped = false, next;
125
+ if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)){
126
+ state.tokenize = tokenBase;
127
+ return ret("jsonld-keyword", "meta");
128
+ }
129
+ while ((next = stream.next()) != null) {
130
+ if (next == quote && !escaped) break;
131
+ escaped = !escaped && next == "\\";
132
+ }
133
+ if (!escaped) state.tokenize = tokenBase;
134
+ return ret("string", "string");
135
+ };
136
+ }
137
+
138
+ function tokenComment(stream, state) {
139
+ var maybeEnd = false, ch;
140
+ while (ch = stream.next()) {
141
+ if (ch == "/" && maybeEnd) {
142
+ state.tokenize = tokenBase;
143
+ break;
144
+ }
145
+ maybeEnd = (ch == "*");
146
+ }
147
+ return ret("comment", "comment");
148
+ }
149
+
150
+ function tokenQuasi(stream, state) {
151
+ var escaped = false, next;
152
+ while ((next = stream.next()) != null) {
153
+ if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
154
+ state.tokenize = tokenBase;
155
+ break;
156
+ }
157
+ escaped = !escaped && next == "\\";
158
+ }
159
+ return ret("quasi", "string.special", stream.current());
160
+ }
161
+
162
+ var brackets = "([{}])";
163
+ // This is a crude lookahead trick to try and notice that we're
164
+ // parsing the argument patterns for a fat-arrow function before we
165
+ // actually hit the arrow token. It only works if the arrow is on
166
+ // the same line as the arguments and there's no strange noise
167
+ // (comments) in between. Fallback is to only notice when we hit the
168
+ // arrow, and not declare the arguments as locals for the arrow
169
+ // body.
170
+ function findFatArrow(stream, state) {
171
+ if (state.fatArrowAt) state.fatArrowAt = null;
172
+ var arrow = stream.string.indexOf("=>", stream.start);
173
+ if (arrow < 0) return;
174
+
175
+ if (isTS) { // Try to skip TypeScript return type declarations after the arguments
176
+ var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow));
177
+ if (m) arrow = m.index;
178
+ }
179
+
180
+ var depth = 0, sawSomething = false;
181
+ for (var pos = arrow - 1; pos >= 0; --pos) {
182
+ var ch = stream.string.charAt(pos);
183
+ var bracket = brackets.indexOf(ch);
184
+ if (bracket >= 0 && bracket < 3) {
185
+ if (!depth) { ++pos; break; }
186
+ if (--depth == 0) { if (ch == "(") sawSomething = true; break; }
187
+ } else if (bracket >= 3 && bracket < 6) {
188
+ ++depth;
189
+ } else if (wordRE.test(ch)) {
190
+ sawSomething = true;
191
+ } else if (/["'\/`]/.test(ch)) {
192
+ for (;; --pos) {
193
+ if (pos == 0) return
194
+ var next = stream.string.charAt(pos - 1);
195
+ if (next == ch && stream.string.charAt(pos - 2) != "\\") { pos--; break }
196
+ }
197
+ } else if (sawSomething && !depth) {
198
+ ++pos;
199
+ break;
200
+ }
201
+ }
202
+ if (sawSomething && !depth) state.fatArrowAt = pos;
203
+ }
204
+
205
+ // Parser
206
+
207
+ var atomicTypes = {"atom": true, "number": true, "variable": true, "string": true,
208
+ "regexp": true, "this": true, "import": true, "jsonld-keyword": true};
209
+
210
+ function JSLexical(indented, column, type, align, prev, info) {
211
+ this.indented = indented;
212
+ this.column = column;
213
+ this.type = type;
214
+ this.prev = prev;
215
+ this.info = info;
216
+ if (align != null) this.align = align;
217
+ }
218
+
219
+ function inScope(state, varname) {
220
+ for (var v = state.localVars; v; v = v.next)
221
+ if (v.name == varname) return true;
222
+ for (var cx = state.context; cx; cx = cx.prev) {
223
+ for (var v = cx.vars; v; v = v.next)
224
+ if (v.name == varname) return true;
225
+ }
226
+ }
227
+
228
+ function parseJS(state, style, type, content, stream) {
229
+ var cc = state.cc;
230
+ // Communicate our context to the combinators.
231
+ // (Less wasteful than consing up a hundred closures on every call.)
232
+ cx.state = state; cx.stream = stream; cx.marked = null; cx.cc = cc; cx.style = style;
233
+
234
+ if (!state.lexical.hasOwnProperty("align"))
235
+ state.lexical.align = true;
236
+
237
+ while(true) {
238
+ var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
239
+ if (combinator(type, content)) {
240
+ while(cc.length && cc[cc.length - 1].lex)
241
+ cc.pop()();
242
+ if (cx.marked) return cx.marked;
243
+ if (type == "variable" && inScope(state, content)) return "variableName.local";
244
+ return style;
245
+ }
246
+ }
247
+ }
248
+
249
+ // Combinator utils
250
+
251
+ var cx = {state: null, column: null, marked: null, cc: null};
252
+ function pass() {
253
+ for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
254
+ }
255
+ function cont() {
256
+ pass.apply(null, arguments);
257
+ return true;
258
+ }
259
+ function inList(name, list) {
260
+ for (var v = list; v; v = v.next) if (v.name == name) return true
261
+ return false;
262
+ }
263
+ function register(varname) {
264
+ var state = cx.state;
265
+ cx.marked = "def";
266
+ if (state.context) {
267
+ if (state.lexical.info == "var" && state.context && state.context.block) {
268
+ // FIXME function decls are also not block scoped
269
+ var newContext = registerVarScoped(varname, state.context);
270
+ if (newContext != null) {
271
+ state.context = newContext;
272
+ return
273
+ }
274
+ } else if (!inList(varname, state.localVars)) {
275
+ state.localVars = new Var(varname, state.localVars);
276
+ return
277
+ }
278
+ }
279
+ // Fall through means this is global
280
+ if (parserConfig.globalVars && !inList(varname, state.globalVars))
281
+ state.globalVars = new Var(varname, state.globalVars);
282
+ }
283
+ function registerVarScoped(varname, context) {
284
+ if (!context) {
285
+ return null
286
+ } else if (context.block) {
287
+ var inner = registerVarScoped(varname, context.prev);
288
+ if (!inner) return null
289
+ if (inner == context.prev) return context
290
+ return new Context(inner, context.vars, true)
291
+ } else if (inList(varname, context.vars)) {
292
+ return context
293
+ } else {
294
+ return new Context(context.prev, new Var(varname, context.vars), false)
295
+ }
296
+ }
297
+
298
+ function isModifier(name) {
299
+ return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly"
300
+ }
301
+
302
+ // Combinators
303
+
304
+ function Context(prev, vars, block) { this.prev = prev; this.vars = vars; this.block = block; }
305
+ function Var(name, next) { this.name = name; this.next = next; }
306
+
307
+ var defaultVars = new Var("this", new Var("arguments", null));
308
+ function pushcontext() {
309
+ cx.state.context = new Context(cx.state.context, cx.state.localVars, false);
310
+ cx.state.localVars = defaultVars;
311
+ }
312
+ function pushblockcontext() {
313
+ cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
314
+ cx.state.localVars = null;
315
+ }
316
+ pushcontext.lex = pushblockcontext.lex = true;
317
+ function popcontext() {
318
+ cx.state.localVars = cx.state.context.vars;
319
+ cx.state.context = cx.state.context.prev;
320
+ }
321
+ popcontext.lex = true;
322
+ function pushlex(type, info) {
323
+ var result = function() {
324
+ var state = cx.state, indent = state.indented;
325
+ if (state.lexical.type == "stat") indent = state.lexical.indented;
326
+ else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
327
+ indent = outer.indented;
328
+ state.lexical = new JSLexical(indent, cx.stream.column(), type, null, state.lexical, info);
329
+ };
330
+ result.lex = true;
331
+ return result;
332
+ }
333
+ function poplex() {
334
+ var state = cx.state;
335
+ if (state.lexical.prev) {
336
+ if (state.lexical.type == ")")
337
+ state.indented = state.lexical.indented;
338
+ state.lexical = state.lexical.prev;
339
+ }
340
+ }
341
+ poplex.lex = true;
342
+
343
+ function expect(wanted) {
344
+ function exp(type) {
345
+ if (type == wanted) return cont();
346
+ else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass();
347
+ else return cont(exp);
348
+ } return exp;
349
+ }
350
+
351
+ function statement(type, value) {
352
+ if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
353
+ if (type == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
354
+ if (type == "keyword b") return cont(pushlex("form"), statement, poplex);
355
+ if (type == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
356
+ if (type == "debugger") return cont(expect(";"));
357
+ if (type == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
358
+ if (type == ";") return cont();
359
+ if (type == "if") {
360
+ if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
361
+ cx.state.cc.pop()();
362
+ return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
363
+ }
364
+ if (type == "function") return cont(functiondef);
365
+ if (type == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
366
+ if (type == "class" || (isTS && value == "interface")) {
367
+ cx.marked = "keyword";
368
+ return cont(pushlex("form", type == "class" ? type : value), className, poplex)
369
+ }
370
+ if (type == "variable") {
371
+ if (isTS && value == "declare") {
372
+ cx.marked = "keyword";
373
+ return cont(statement)
374
+ } else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
375
+ cx.marked = "keyword";
376
+ if (value == "enum") return cont(enumdef);
377
+ else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
378
+ else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex)
379
+ } else if (isTS && value == "namespace") {
380
+ cx.marked = "keyword";
381
+ return cont(pushlex("form"), expression, statement, poplex)
382
+ } else if (isTS && value == "abstract") {
383
+ cx.marked = "keyword";
384
+ return cont(statement)
385
+ } else {
386
+ return cont(pushlex("stat"), maybelabel);
387
+ }
388
+ }
389
+ if (type == "switch") return cont(pushlex("form"), parenExpr, expect("{"), pushlex("}", "switch"), pushblockcontext,
390
+ block, poplex, poplex, popcontext);
391
+ if (type == "case") return cont(expression, expect(":"));
392
+ if (type == "default") return cont(expect(":"));
393
+ if (type == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
394
+ if (type == "export") return cont(pushlex("stat"), afterExport, poplex);
395
+ if (type == "import") return cont(pushlex("stat"), afterImport, poplex);
396
+ if (type == "async") return cont(statement)
397
+ if (value == "@") return cont(expression, statement)
398
+ return pass(pushlex("stat"), expression, expect(";"), poplex);
399
+ }
400
+ function maybeCatchBinding(type) {
401
+ if (type == "(") return cont(funarg, expect(")"))
402
+ }
403
+ function expression(type, value) {
404
+ return expressionInner(type, value, false);
405
+ }
406
+ function expressionNoComma(type, value) {
407
+ return expressionInner(type, value, true);
408
+ }
409
+ function parenExpr(type) {
410
+ if (type != "(") return pass()
411
+ return cont(pushlex(")"), maybeexpression, expect(")"), poplex)
412
+ }
413
+ function expressionInner(type, value, noComma) {
414
+ if (cx.state.fatArrowAt == cx.stream.start) {
415
+ var body = noComma ? arrowBodyNoComma : arrowBody;
416
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
417
+ else if (type == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
418
+ }
419
+
420
+ var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
421
+ if (atomicTypes.hasOwnProperty(type)) return cont(maybeop);
422
+ if (type == "function") return cont(functiondef, maybeop);
423
+ if (type == "class" || (isTS && value == "interface")) { cx.marked = "keyword"; return cont(pushlex("form"), classExpression, poplex); }
424
+ if (type == "keyword c" || type == "async") return cont(noComma ? expressionNoComma : expression);
425
+ if (type == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
426
+ if (type == "operator" || type == "spread") return cont(noComma ? expressionNoComma : expression);
427
+ if (type == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
428
+ if (type == "{") return contCommasep(objprop, "}", null, maybeop);
429
+ if (type == "quasi") return pass(quasi, maybeop);
430
+ if (type == "new") return cont(maybeTarget(noComma));
431
+ return cont();
432
+ }
433
+ function maybeexpression(type) {
434
+ if (type.match(/[;\}\)\],]/)) return pass();
435
+ return pass(expression);
436
+ }
437
+
438
+ function maybeoperatorComma(type, value) {
439
+ if (type == ",") return cont(maybeexpression);
440
+ return maybeoperatorNoComma(type, value, false);
441
+ }
442
+ function maybeoperatorNoComma(type, value, noComma) {
443
+ var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
444
+ var expr = noComma == false ? expression : expressionNoComma;
445
+ if (type == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
446
+ if (type == "operator") {
447
+ if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
448
+ if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
449
+ return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
450
+ if (value == "?") return cont(expression, expect(":"), expr);
451
+ return cont(expr);
452
+ }
453
+ if (type == "quasi") { return pass(quasi, me); }
454
+ if (type == ";") return;
455
+ if (type == "(") return contCommasep(expressionNoComma, ")", "call", me);
456
+ if (type == ".") return cont(property, me);
457
+ if (type == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
458
+ if (isTS && value == "as") { cx.marked = "keyword"; return cont(typeexpr, me) }
459
+ if (type == "regexp") {
460
+ cx.state.lastType = cx.marked = "operator";
461
+ cx.stream.backUp(cx.stream.pos - cx.stream.start - 1);
462
+ return cont(expr)
463
+ }
464
+ }
465
+ function quasi(type, value) {
466
+ if (type != "quasi") return pass();
467
+ if (value.slice(value.length - 2) != "${") return cont(quasi);
468
+ return cont(maybeexpression, continueQuasi);
469
+ }
470
+ function continueQuasi(type) {
471
+ if (type == "}") {
472
+ cx.marked = "string.special";
473
+ cx.state.tokenize = tokenQuasi;
474
+ return cont(quasi);
475
+ }
476
+ }
477
+ function arrowBody(type) {
478
+ findFatArrow(cx.stream, cx.state);
479
+ return pass(type == "{" ? statement : expression);
480
+ }
481
+ function arrowBodyNoComma(type) {
482
+ findFatArrow(cx.stream, cx.state);
483
+ return pass(type == "{" ? statement : expressionNoComma);
484
+ }
485
+ function maybeTarget(noComma) {
486
+ return function(type) {
487
+ if (type == ".") return cont(noComma ? targetNoComma : target);
488
+ else if (type == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma)
489
+ else return pass(noComma ? expressionNoComma : expression);
490
+ };
491
+ }
492
+ function target(_, value) {
493
+ if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorComma); }
494
+ }
495
+ function targetNoComma(_, value) {
496
+ if (value == "target") { cx.marked = "keyword"; return cont(maybeoperatorNoComma); }
497
+ }
498
+ function maybelabel(type) {
499
+ if (type == ":") return cont(poplex, statement);
500
+ return pass(maybeoperatorComma, expect(";"), poplex);
501
+ }
502
+ function property(type) {
503
+ if (type == "variable") {cx.marked = "property"; return cont();}
504
+ }
505
+ function objprop(type, value) {
506
+ if (type == "async") {
507
+ cx.marked = "property";
508
+ return cont(objprop);
509
+ } else if (type == "variable" || cx.style == "keyword") {
510
+ cx.marked = "property";
511
+ if (value == "get" || value == "set") return cont(getterSetter);
512
+ var m; // Work around fat-arrow-detection complication for detecting typescript typed arrow params
513
+ if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
514
+ cx.state.fatArrowAt = cx.stream.pos + m[0].length;
515
+ return cont(afterprop);
516
+ } else if (type == "number" || type == "string") {
517
+ cx.marked = jsonldMode ? "property" : (cx.style + " property");
518
+ return cont(afterprop);
519
+ } else if (type == "jsonld-keyword") {
520
+ return cont(afterprop);
521
+ } else if (isTS && isModifier(value)) {
522
+ cx.marked = "keyword";
523
+ return cont(objprop)
524
+ } else if (type == "[") {
525
+ return cont(expression, maybetype, expect("]"), afterprop);
526
+ } else if (type == "spread") {
527
+ return cont(expressionNoComma, afterprop);
528
+ } else if (value == "*") {
529
+ cx.marked = "keyword";
530
+ return cont(objprop);
531
+ } else if (type == ":") {
532
+ return pass(afterprop)
533
+ }
534
+ }
535
+ function getterSetter(type) {
536
+ if (type != "variable") return pass(afterprop);
537
+ cx.marked = "property";
538
+ return cont(functiondef);
539
+ }
540
+ function afterprop(type) {
541
+ if (type == ":") return cont(expressionNoComma);
542
+ if (type == "(") return pass(functiondef);
543
+ }
544
+ function commasep(what, end, sep) {
545
+ function proceed(type, value) {
546
+ if (sep ? sep.indexOf(type) > -1 : type == ",") {
547
+ var lex = cx.state.lexical;
548
+ if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
549
+ return cont(function(type, value) {
550
+ if (type == end || value == end) return pass()
551
+ return pass(what)
552
+ }, proceed);
553
+ }
554
+ if (type == end || value == end) return cont();
555
+ if (sep && sep.indexOf(";") > -1) return pass(what)
556
+ return cont(expect(end));
557
+ }
558
+ return function(type, value) {
559
+ if (type == end || value == end) return cont();
560
+ return pass(what, proceed);
561
+ };
562
+ }
563
+ function contCommasep(what, end, info) {
564
+ for (var i = 3; i < arguments.length; i++)
565
+ cx.cc.push(arguments[i]);
566
+ return cont(pushlex(end, info), commasep(what, end), poplex);
567
+ }
568
+ function block(type) {
569
+ if (type == "}") return cont();
570
+ return pass(statement, block);
571
+ }
572
+ function maybetype(type, value) {
573
+ if (isTS) {
574
+ if (type == ":") return cont(typeexpr);
575
+ if (value == "?") return cont(maybetype);
576
+ }
577
+ }
578
+ function maybetypeOrIn(type, value) {
579
+ if (isTS && (type == ":" || value == "in")) return cont(typeexpr)
580
+ }
581
+ function mayberettype(type) {
582
+ if (isTS && type == ":") {
583
+ if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr)
584
+ else return cont(typeexpr)
585
+ }
586
+ }
587
+ function isKW(_, value) {
588
+ if (value == "is") {
589
+ cx.marked = "keyword";
590
+ return cont()
591
+ }
592
+ }
593
+ function typeexpr(type, value) {
594
+ if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
595
+ cx.marked = "keyword";
596
+ return cont(value == "typeof" ? expressionNoComma : typeexpr)
597
+ }
598
+ if (type == "variable" || value == "void") {
599
+ cx.marked = "type";
600
+ return cont(afterType)
601
+ }
602
+ if (value == "|" || value == "&") return cont(typeexpr)
603
+ if (type == "string" || type == "number" || type == "atom") return cont(afterType);
604
+ if (type == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType)
605
+ if (type == "{") return cont(pushlex("}"), typeprops, poplex, afterType)
606
+ if (type == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType)
607
+ if (type == "<") return cont(commasep(typeexpr, ">"), typeexpr)
608
+ if (type == "quasi") return pass(quasiType, afterType)
609
+ }
610
+ function maybeReturnType(type) {
611
+ if (type == "=>") return cont(typeexpr)
612
+ }
613
+ function typeprops(type) {
614
+ if (type.match(/[\}\)\]]/)) return cont()
615
+ if (type == "," || type == ";") return cont(typeprops)
616
+ return pass(typeprop, typeprops)
617
+ }
618
+ function typeprop(type, value) {
619
+ if (type == "variable" || cx.style == "keyword") {
620
+ cx.marked = "property";
621
+ return cont(typeprop)
622
+ } else if (value == "?" || type == "number" || type == "string") {
623
+ return cont(typeprop)
624
+ } else if (type == ":") {
625
+ return cont(typeexpr)
626
+ } else if (type == "[") {
627
+ return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop)
628
+ } else if (type == "(") {
629
+ return pass(functiondecl, typeprop)
630
+ } else if (!type.match(/[;\}\)\],]/)) {
631
+ return cont()
632
+ }
633
+ }
634
+ function quasiType(type, value) {
635
+ if (type != "quasi") return pass();
636
+ if (value.slice(value.length - 2) != "${") return cont(quasiType);
637
+ return cont(typeexpr, continueQuasiType);
638
+ }
639
+ function continueQuasiType(type) {
640
+ if (type == "}") {
641
+ cx.marked = "string.special";
642
+ cx.state.tokenize = tokenQuasi;
643
+ return cont(quasiType);
644
+ }
645
+ }
646
+ function typearg(type, value) {
647
+ if (type == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg)
648
+ if (type == ":") return cont(typeexpr)
649
+ if (type == "spread") return cont(typearg)
650
+ return pass(typeexpr)
651
+ }
652
+ function afterType(type, value) {
653
+ if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
654
+ if (value == "|" || type == "." || value == "&") return cont(typeexpr)
655
+ if (type == "[") return cont(typeexpr, expect("]"), afterType)
656
+ if (value == "extends" || value == "implements") { cx.marked = "keyword"; return cont(typeexpr) }
657
+ if (value == "?") return cont(typeexpr, expect(":"), typeexpr)
658
+ }
659
+ function maybeTypeArgs(_, value) {
660
+ if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType)
661
+ }
662
+ function typeparam() {
663
+ return pass(typeexpr, maybeTypeDefault)
664
+ }
665
+ function maybeTypeDefault(_, value) {
666
+ if (value == "=") return cont(typeexpr)
667
+ }
668
+ function vardef(_, value) {
669
+ if (value == "enum") {cx.marked = "keyword"; return cont(enumdef)}
670
+ return pass(pattern, maybetype, maybeAssign, vardefCont);
671
+ }
672
+ function pattern(type, value) {
673
+ if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(pattern) }
674
+ if (type == "variable") { register(value); return cont(); }
675
+ if (type == "spread") return cont(pattern);
676
+ if (type == "[") return contCommasep(eltpattern, "]");
677
+ if (type == "{") return contCommasep(proppattern, "}");
678
+ }
679
+ function proppattern(type, value) {
680
+ if (type == "variable" && !cx.stream.match(/^\s*:/, false)) {
681
+ register(value);
682
+ return cont(maybeAssign);
683
+ }
684
+ if (type == "variable") cx.marked = "property";
685
+ if (type == "spread") return cont(pattern);
686
+ if (type == "}") return pass();
687
+ if (type == "[") return cont(expression, expect(']'), expect(':'), proppattern);
688
+ return cont(expect(":"), pattern, maybeAssign);
689
+ }
690
+ function eltpattern() {
691
+ return pass(pattern, maybeAssign)
692
+ }
693
+ function maybeAssign(_type, value) {
694
+ if (value == "=") return cont(expressionNoComma);
695
+ }
696
+ function vardefCont(type) {
697
+ if (type == ",") return cont(vardef);
698
+ }
699
+ function maybeelse(type, value) {
700
+ if (type == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
701
+ }
702
+ function forspec(type, value) {
703
+ if (value == "await") return cont(forspec);
704
+ if (type == "(") return cont(pushlex(")"), forspec1, poplex);
705
+ }
706
+ function forspec1(type) {
707
+ if (type == "var") return cont(vardef, forspec2);
708
+ if (type == "variable") return cont(forspec2);
709
+ return pass(forspec2)
710
+ }
711
+ function forspec2(type, value) {
712
+ if (type == ")") return cont()
713
+ if (type == ";") return cont(forspec2)
714
+ if (value == "in" || value == "of") { cx.marked = "keyword"; return cont(expression, forspec2) }
715
+ return pass(expression, forspec2)
716
+ }
717
+ function functiondef(type, value) {
718
+ if (value == "*") {cx.marked = "keyword"; return cont(functiondef);}
719
+ if (type == "variable") {register(value); return cont(functiondef);}
720
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
721
+ if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef)
722
+ }
723
+ function functiondecl(type, value) {
724
+ if (value == "*") {cx.marked = "keyword"; return cont(functiondecl);}
725
+ if (type == "variable") {register(value); return cont(functiondecl);}
726
+ if (type == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
727
+ if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl)
728
+ }
729
+ function typename(type, value) {
730
+ if (type == "keyword" || type == "variable") {
731
+ cx.marked = "type";
732
+ return cont(typename)
733
+ } else if (value == "<") {
734
+ return cont(pushlex(">"), commasep(typeparam, ">"), poplex)
735
+ }
736
+ }
737
+ function funarg(type, value) {
738
+ if (value == "@") cont(expression, funarg);
739
+ if (type == "spread") return cont(funarg);
740
+ if (isTS && isModifier(value)) { cx.marked = "keyword"; return cont(funarg); }
741
+ if (isTS && type == "this") return cont(maybetype, maybeAssign)
742
+ return pass(pattern, maybetype, maybeAssign);
743
+ }
744
+ function classExpression(type, value) {
745
+ // Class expressions may have an optional name.
746
+ if (type == "variable") return className(type, value);
747
+ return classNameAfter(type, value);
748
+ }
749
+ function className(type, value) {
750
+ if (type == "variable") {register(value); return cont(classNameAfter);}
751
+ }
752
+ function classNameAfter(type, value) {
753
+ if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter)
754
+ if (value == "extends" || value == "implements" || (isTS && type == ",")) {
755
+ if (value == "implements") cx.marked = "keyword";
756
+ return cont(isTS ? typeexpr : expression, classNameAfter);
757
+ }
758
+ if (type == "{") return cont(pushlex("}"), classBody, poplex);
759
+ }
760
+ function classBody(type, value) {
761
+ if (type == "async" ||
762
+ (type == "variable" &&
763
+ (value == "static" || value == "get" || value == "set" || (isTS && isModifier(value))) &&
764
+ cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false))) {
765
+ cx.marked = "keyword";
766
+ return cont(classBody);
767
+ }
768
+ if (type == "variable" || cx.style == "keyword") {
769
+ cx.marked = "property";
770
+ return cont(classfield, classBody);
771
+ }
772
+ if (type == "number" || type == "string") return cont(classfield, classBody);
773
+ if (type == "[")
774
+ return cont(expression, maybetype, expect("]"), classfield, classBody)
775
+ if (value == "*") {
776
+ cx.marked = "keyword";
777
+ return cont(classBody);
778
+ }
779
+ if (isTS && type == "(") return pass(functiondecl, classBody)
780
+ if (type == ";" || type == ",") return cont(classBody);
781
+ if (type == "}") return cont();
782
+ if (value == "@") return cont(expression, classBody)
783
+ }
784
+ function classfield(type, value) {
785
+ if (value == "!" || value == "?") return cont(classfield)
786
+ if (type == ":") return cont(typeexpr, maybeAssign)
787
+ if (value == "=") return cont(expressionNoComma)
788
+ var context = cx.state.lexical.prev, isInterface = context && context.info == "interface";
789
+ return pass(isInterface ? functiondecl : functiondef)
790
+ }
791
+ function afterExport(type, value) {
792
+ if (value == "*") { cx.marked = "keyword"; return cont(maybeFrom, expect(";")); }
793
+ if (value == "default") { cx.marked = "keyword"; return cont(expression, expect(";")); }
794
+ if (type == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
795
+ return pass(statement);
796
+ }
797
+ function exportField(type, value) {
798
+ if (value == "as") { cx.marked = "keyword"; return cont(expect("variable")); }
799
+ if (type == "variable") return pass(expressionNoComma, exportField);
800
+ }
801
+ function afterImport(type) {
802
+ if (type == "string") return cont();
803
+ if (type == "(") return pass(expression);
804
+ if (type == ".") return pass(maybeoperatorComma);
805
+ return pass(importSpec, maybeMoreImports, maybeFrom);
806
+ }
807
+ function importSpec(type, value) {
808
+ if (type == "{") return contCommasep(importSpec, "}");
809
+ if (type == "variable") register(value);
810
+ if (value == "*") cx.marked = "keyword";
811
+ return cont(maybeAs);
812
+ }
813
+ function maybeMoreImports(type) {
814
+ if (type == ",") return cont(importSpec, maybeMoreImports)
815
+ }
816
+ function maybeAs(_type, value) {
817
+ if (value == "as") { cx.marked = "keyword"; return cont(importSpec); }
818
+ }
819
+ function maybeFrom(_type, value) {
820
+ if (value == "from") { cx.marked = "keyword"; return cont(expression); }
821
+ }
822
+ function arrayLiteral(type) {
823
+ if (type == "]") return cont();
824
+ return pass(commasep(expressionNoComma, "]"));
825
+ }
826
+ function enumdef() {
827
+ return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex)
828
+ }
829
+ function enummember() {
830
+ return pass(pattern, maybeAssign);
831
+ }
832
+
833
+ function isContinuedStatement(state, textAfter) {
834
+ return state.lastType == "operator" || state.lastType == "," ||
835
+ isOperatorChar.test(textAfter.charAt(0)) ||
836
+ /[,.]/.test(textAfter.charAt(0));
837
+ }
838
+
839
+ function expressionAllowed(stream, state, backUp) {
840
+ return state.tokenize == tokenBase &&
841
+ /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) ||
842
+ (state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - (backUp || 0))))
843
+ }
844
+
845
+ // Interface
846
+
847
+ return {
848
+ name: parserConfig.name,
849
+
850
+ startState: function(indentUnit) {
851
+ var state = {
852
+ tokenize: tokenBase,
853
+ lastType: "sof",
854
+ cc: [],
855
+ lexical: new JSLexical(-indentUnit, 0, "block", false),
856
+ localVars: parserConfig.localVars,
857
+ context: parserConfig.localVars && new Context(null, null, false),
858
+ indented: 0
859
+ };
860
+ if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
861
+ state.globalVars = parserConfig.globalVars;
862
+ return state;
863
+ },
864
+
865
+ token: function(stream, state) {
866
+ if (stream.sol()) {
867
+ if (!state.lexical.hasOwnProperty("align"))
868
+ state.lexical.align = false;
869
+ state.indented = stream.indentation();
870
+ findFatArrow(stream, state);
871
+ }
872
+ if (state.tokenize != tokenComment && stream.eatSpace()) return null;
873
+ var style = state.tokenize(stream, state);
874
+ if (type == "comment") return style;
875
+ state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
876
+ return parseJS(state, style, type, content, stream);
877
+ },
878
+
879
+ indent: function(state, textAfter, cx) {
880
+ if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return null;
881
+ if (state.tokenize != tokenBase) return 0;
882
+ var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top;
883
+ // Kludge to prevent 'maybelse' from blocking lexical scope pops
884
+ if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
885
+ var c = state.cc[i];
886
+ if (c == poplex) lexical = lexical.prev;
887
+ else if (c != maybeelse && c != popcontext) break;
888
+ }
889
+ while ((lexical.type == "stat" || lexical.type == "form") &&
890
+ (firstChar == "}" || ((top = state.cc[state.cc.length - 1]) &&
891
+ (top == maybeoperatorComma || top == maybeoperatorNoComma) &&
892
+ !/^[,\.=+\-*:?[\(]/.test(textAfter))))
893
+ lexical = lexical.prev;
894
+ if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
895
+ lexical = lexical.prev;
896
+ var type = lexical.type, closing = firstChar == type;
897
+
898
+ if (type == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
899
+ else if (type == "form" && firstChar == "{") return lexical.indented;
900
+ else if (type == "form") return lexical.indented + cx.unit;
901
+ else if (type == "stat")
902
+ return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || cx.unit : 0);
903
+ else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
904
+ return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? cx.unit : 2 * cx.unit);
905
+ else if (lexical.align) return lexical.column + (closing ? 0 : 1);
906
+ else return lexical.indented + (closing ? 0 : cx.unit);
907
+ },
908
+
909
+ languageData: {
910
+ indentOnInput: /^\s*(?:case .*?:|default:|\{|\})$/,
911
+ commentTokens: jsonMode ? undefined : {line: "//", block: {open: "/*", close: "*/"}},
912
+ closeBrackets: {brackets: ["(", "[", "{", "'", '"', "`"]},
913
+ wordChars: "$"
914
+ }
915
+ };
916
+ }
917
+ const javascript = mkJavaScript({name: "javascript"});
918
+ const json = mkJavaScript({name: "json", json: true});
919
+ const jsonld = mkJavaScript({name: "json", jsonld: true});
920
+ const typescript = mkJavaScript({name: "typescript", typescript: true});
921
+
922
+ export { javascript, json, jsonld, typescript };
923
+ //# sourceMappingURL=javascript-TMTz-YQH.js.map