@milkdown/crepe 7.5.1 → 7.5.3

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 (499) hide show
  1. package/lib/cjs/{index-udZSknd8.js → index-TGmNEvsj.js} +7 -7
  2. package/lib/cjs/index-TGmNEvsj.js.map +1 -0
  3. package/lib/cjs/index-fhKBUFkq.js +46 -0
  4. package/lib/cjs/index-fhKBUFkq.js.map +1 -0
  5. package/lib/cjs/{index-tqAbVyds.js → index-rLAgJeYn.js} +4 -4
  6. package/lib/cjs/index-rLAgJeYn.js.map +1 -0
  7. package/lib/cjs/index.js +3 -3
  8. package/lib/cjs/index.js.map +1 -1
  9. package/lib/esm/{index-v3rvbocl.js → index-amuALmzU.js} +2 -2
  10. package/lib/esm/{index-v3rvbocl.js.map → index-amuALmzU.js.map} +1 -1
  11. package/lib/esm/index-jU_6odT9.js +44 -0
  12. package/lib/esm/index-jU_6odT9.js.map +1 -0
  13. package/lib/esm/{index-lm00PM0y.js → index-w69wbtEZ.js} +2 -2
  14. package/lib/esm/{index-lm00PM0y.js.map → index-w69wbtEZ.js.map} +1 -1
  15. package/lib/esm/index.js +3 -3
  16. package/lib/esm/index.js.map +1 -1
  17. package/package.json +3 -5
  18. package/lib/cjs/apl-99bWvYTf.js +0 -145
  19. package/lib/cjs/apl-99bWvYTf.js.map +0 -1
  20. package/lib/cjs/asciiarmor-cf0JLIr_.js +0 -59
  21. package/lib/cjs/asciiarmor-cf0JLIr_.js.map +0 -1
  22. package/lib/cjs/asn1-H4XzAvBS.js +0 -195
  23. package/lib/cjs/asn1-H4XzAvBS.js.map +0 -1
  24. package/lib/cjs/asterisk-0FgJEfZB.js +0 -190
  25. package/lib/cjs/asterisk-0FgJEfZB.js.map +0 -1
  26. package/lib/cjs/brainfuck-JX7vRZy7.js +0 -73
  27. package/lib/cjs/brainfuck-JX7vRZy7.js.map +0 -1
  28. package/lib/cjs/clike-ueXlMQy5.js +0 -1034
  29. package/lib/cjs/clike-ueXlMQy5.js.map +0 -1
  30. package/lib/cjs/clojure-6iDAG5oi.js +0 -277
  31. package/lib/cjs/clojure-6iDAG5oi.js.map +0 -1
  32. package/lib/cjs/clsx-dASsG01A.js +0 -6
  33. package/lib/cjs/clsx-dASsG01A.js.map +0 -1
  34. package/lib/cjs/cmake-L0RIBnfc.js +0 -84
  35. package/lib/cjs/cmake-L0RIBnfc.js.map +0 -1
  36. package/lib/cjs/cobol-oxkMh1GJ.js +0 -238
  37. package/lib/cjs/cobol-oxkMh1GJ.js.map +0 -1
  38. package/lib/cjs/coffeescript--eauIeRQ.js +0 -332
  39. package/lib/cjs/coffeescript--eauIeRQ.js.map +0 -1
  40. package/lib/cjs/commonlisp-pgSu-q6f.js +0 -111
  41. package/lib/cjs/commonlisp-pgSu-q6f.js.map +0 -1
  42. package/lib/cjs/crystal-2y3I5ibZ.js +0 -422
  43. package/lib/cjs/crystal-2y3I5ibZ.js.map +0 -1
  44. package/lib/cjs/css-WH69cXzo.js +0 -855
  45. package/lib/cjs/css-WH69cXzo.js.map +0 -1
  46. package/lib/cjs/cypher-da-dqVyQ.js +0 -125
  47. package/lib/cjs/cypher-da-dqVyQ.js.map +0 -1
  48. package/lib/cjs/d-58J7EOkP.js +0 -208
  49. package/lib/cjs/d-58J7EOkP.js.map +0 -1
  50. package/lib/cjs/diff-437Hfzqm.js +0 -33
  51. package/lib/cjs/diff-437Hfzqm.js.map +0 -1
  52. package/lib/cjs/dockerfile-7i0OoaQe.js +0 -202
  53. package/lib/cjs/dockerfile-7i0OoaQe.js.map +0 -1
  54. package/lib/cjs/dtd-AKekCPPB.js +0 -124
  55. package/lib/cjs/dtd-AKekCPPB.js.map +0 -1
  56. package/lib/cjs/dylan-DLEmvz1I.js +0 -340
  57. package/lib/cjs/dylan-DLEmvz1I.js.map +0 -1
  58. package/lib/cjs/ebnf-36cJWqxB.js +0 -154
  59. package/lib/cjs/ebnf-36cJWqxB.js.map +0 -1
  60. package/lib/cjs/ecl-UWr5vJKJ.js +0 -193
  61. package/lib/cjs/ecl-UWr5vJKJ.js.map +0 -1
  62. package/lib/cjs/eiffel-Su-C9LAY.js +0 -149
  63. package/lib/cjs/eiffel-Su-C9LAY.js.map +0 -1
  64. package/lib/cjs/elm-vNNfVJj7.js +0 -233
  65. package/lib/cjs/elm-vNNfVJj7.js.map +0 -1
  66. package/lib/cjs/erlang-NM9dgYaS.js +0 -584
  67. package/lib/cjs/erlang-NM9dgYaS.js.map +0 -1
  68. package/lib/cjs/factor-RWs-4aWg.js +0 -68
  69. package/lib/cjs/factor-RWs-4aWg.js.map +0 -1
  70. package/lib/cjs/fcl-acUhGCfs.js +0 -157
  71. package/lib/cjs/fcl-acUhGCfs.js.map +0 -1
  72. package/lib/cjs/forth-sDkE6z3A.js +0 -167
  73. package/lib/cjs/forth-sDkE6z3A.js.map +0 -1
  74. package/lib/cjs/fortran-gkb4yvdk.js +0 -175
  75. package/lib/cjs/fortran-gkb4yvdk.js.map +0 -1
  76. package/lib/cjs/gas-mNA0qvkv.js +0 -347
  77. package/lib/cjs/gas-mNA0qvkv.js.map +0 -1
  78. package/lib/cjs/gherkin-5uyKpXXh.js +0 -150
  79. package/lib/cjs/gherkin-5uyKpXXh.js.map +0 -1
  80. package/lib/cjs/go-5XitXoIZ.js +0 -167
  81. package/lib/cjs/go-5XitXoIZ.js.map +0 -1
  82. package/lib/cjs/groovy-mz3pWMKN.js +0 -233
  83. package/lib/cjs/groovy-mz3pWMKN.js.map +0 -1
  84. package/lib/cjs/haskell-9KaSS7kb.js +0 -242
  85. package/lib/cjs/haskell-9KaSS7kb.js.map +0 -1
  86. package/lib/cjs/haxe-L8h6Pvni.js +0 -494
  87. package/lib/cjs/haxe-L8h6Pvni.js.map +0 -1
  88. package/lib/cjs/http-BFQQnRR-.js +0 -92
  89. package/lib/cjs/http-BFQQnRR-.js.map +0 -1
  90. package/lib/cjs/idl-29T-AzAy.js +0 -277
  91. package/lib/cjs/idl-29T-AzAy.js.map +0 -1
  92. package/lib/cjs/index--2zEz40J.js +0 -93
  93. package/lib/cjs/index--2zEz40J.js.map +0 -1
  94. package/lib/cjs/index-5n9R-QCl.js +0 -390
  95. package/lib/cjs/index-5n9R-QCl.js.map +0 -1
  96. package/lib/cjs/index-HEdBw63r.js +0 -428
  97. package/lib/cjs/index-HEdBw63r.js.map +0 -1
  98. package/lib/cjs/index-Hlt9dRH5.js +0 -113
  99. package/lib/cjs/index-Hlt9dRH5.js.map +0 -1
  100. package/lib/cjs/index-KCW2CzRk.js +0 -2504
  101. package/lib/cjs/index-KCW2CzRk.js.map +0 -1
  102. package/lib/cjs/index-KSZhahYb.js +0 -146
  103. package/lib/cjs/index-KSZhahYb.js.map +0 -1
  104. package/lib/cjs/index-NNo_VSEA.js +0 -684
  105. package/lib/cjs/index-NNo_VSEA.js.map +0 -1
  106. package/lib/cjs/index-O1bDbloo.js +0 -383
  107. package/lib/cjs/index-O1bDbloo.js.map +0 -1
  108. package/lib/cjs/index-OPh9naof.js +0 -141
  109. package/lib/cjs/index-OPh9naof.js.map +0 -1
  110. package/lib/cjs/index-PAhfZtcH.js +0 -517
  111. package/lib/cjs/index-PAhfZtcH.js.map +0 -1
  112. package/lib/cjs/index-PeRHVz4A.js +0 -759
  113. package/lib/cjs/index-PeRHVz4A.js.map +0 -1
  114. package/lib/cjs/index-U7GWrg-w.js +0 -25251
  115. package/lib/cjs/index-U7GWrg-w.js.map +0 -1
  116. package/lib/cjs/index-UTb0Az5e.js +0 -1877
  117. package/lib/cjs/index-UTb0Az5e.js.map +0 -1
  118. package/lib/cjs/index-UnEAyH8X.js +0 -194
  119. package/lib/cjs/index-UnEAyH8X.js.map +0 -1
  120. package/lib/cjs/index-VCkq0ru1.js +0 -188
  121. package/lib/cjs/index-VCkq0ru1.js.map +0 -1
  122. package/lib/cjs/index-WQl7Du53.js +0 -248
  123. package/lib/cjs/index-WQl7Du53.js.map +0 -1
  124. package/lib/cjs/index-ahL5MvrQ.js +0 -1014
  125. package/lib/cjs/index-ahL5MvrQ.js.map +0 -1
  126. package/lib/cjs/index-bpgWLeRY.js +0 -104
  127. package/lib/cjs/index-bpgWLeRY.js.map +0 -1
  128. package/lib/cjs/index-fZupvR_f.js +0 -341
  129. package/lib/cjs/index-fZupvR_f.js.map +0 -1
  130. package/lib/cjs/index-gSM-jgti.js +0 -449
  131. package/lib/cjs/index-gSM-jgti.js.map +0 -1
  132. package/lib/cjs/index-jlPr_A_N.js +0 -66
  133. package/lib/cjs/index-jlPr_A_N.js.map +0 -1
  134. package/lib/cjs/index-tqAbVyds.js.map +0 -1
  135. package/lib/cjs/index-udZSknd8.js.map +0 -1
  136. package/lib/cjs/index-urB-WDqA.js +0 -1030
  137. package/lib/cjs/index-urB-WDqA.js.map +0 -1
  138. package/lib/cjs/index-xWgWtxUR.js +0 -347
  139. package/lib/cjs/index-xWgWtxUR.js.map +0 -1
  140. package/lib/cjs/javascript-5-BTydbD.js +0 -928
  141. package/lib/cjs/javascript-5-BTydbD.js.map +0 -1
  142. package/lib/cjs/jinja2-BWMz4gPk.js +0 -174
  143. package/lib/cjs/jinja2-BWMz4gPk.js.map +0 -1
  144. package/lib/cjs/julia-dtR9J3KZ.js +0 -372
  145. package/lib/cjs/julia-dtR9J3KZ.js.map +0 -1
  146. package/lib/cjs/livescript-YxT0INe3.js +0 -262
  147. package/lib/cjs/livescript-YxT0INe3.js.map +0 -1
  148. package/lib/cjs/lua-h7_AXjy9.js +0 -140
  149. package/lib/cjs/lua-h7_AXjy9.js.map +0 -1
  150. package/lib/cjs/mathematica-Zc57fOr3.js +0 -156
  151. package/lib/cjs/mathematica-Zc57fOr3.js.map +0 -1
  152. package/lib/cjs/mbox-ltKsKgJd.js +0 -117
  153. package/lib/cjs/mbox-ltKsKgJd.js.map +0 -1
  154. package/lib/cjs/mirc-xTLeWqmy.js +0 -179
  155. package/lib/cjs/mirc-xTLeWqmy.js.map +0 -1
  156. package/lib/cjs/mllike-xukl-Kjp.js +0 -351
  157. package/lib/cjs/mllike-xukl-Kjp.js.map +0 -1
  158. package/lib/cjs/modelica-LsXtAawk.js +0 -195
  159. package/lib/cjs/modelica-LsXtAawk.js.map +0 -1
  160. package/lib/cjs/mscgen-9HooYIVW.js +0 -154
  161. package/lib/cjs/mscgen-9HooYIVW.js.map +0 -1
  162. package/lib/cjs/mumps-VXqGp84f.js +0 -132
  163. package/lib/cjs/mumps-VXqGp84f.js.map +0 -1
  164. package/lib/cjs/nginx-UrubUbn1.js +0 -166
  165. package/lib/cjs/nginx-UrubUbn1.js.map +0 -1
  166. package/lib/cjs/nsis-c2AYwqyy.js +0 -83
  167. package/lib/cjs/nsis-c2AYwqyy.js.map +0 -1
  168. package/lib/cjs/ntriples-N1nwiheD.js +0 -144
  169. package/lib/cjs/ntriples-N1nwiheD.js.map +0 -1
  170. package/lib/cjs/octave-ElonStfZ.js +0 -115
  171. package/lib/cjs/octave-ElonStfZ.js.map +0 -1
  172. package/lib/cjs/oz-7VQTnCfu.js +0 -238
  173. package/lib/cjs/oz-7VQTnCfu.js.map +0 -1
  174. package/lib/cjs/pascal-yq2Cb88Q.js +0 -127
  175. package/lib/cjs/pascal-yq2Cb88Q.js.map +0 -1
  176. package/lib/cjs/perl-hJq4byS9.js +0 -822
  177. package/lib/cjs/perl-hJq4byS9.js.map +0 -1
  178. package/lib/cjs/pig-2syuOlAa.js +0 -152
  179. package/lib/cjs/pig-2syuOlAa.js.map +0 -1
  180. package/lib/cjs/powershell-NDwxuSDg.js +0 -384
  181. package/lib/cjs/powershell-NDwxuSDg.js.map +0 -1
  182. package/lib/cjs/properties-wacODxDJ.js +0 -65
  183. package/lib/cjs/properties-wacODxDJ.js.map +0 -1
  184. package/lib/cjs/protobuf-zVHZwskk.js +0 -57
  185. package/lib/cjs/protobuf-zVHZwskk.js.map +0 -1
  186. package/lib/cjs/puppet-koQikqO-.js +0 -208
  187. package/lib/cjs/puppet-koQikqO-.js.map +0 -1
  188. package/lib/cjs/python-P3UsKHbj.js +0 -394
  189. package/lib/cjs/python-P3UsKHbj.js.map +0 -1
  190. package/lib/cjs/q-Z_d2uXoA.js +0 -126
  191. package/lib/cjs/q-Z_d2uXoA.js.map +0 -1
  192. package/lib/cjs/r-J6Jl9z1i.js +0 -177
  193. package/lib/cjs/r-J6Jl9z1i.js.map +0 -1
  194. package/lib/cjs/rpm-6C0Omumu.js +0 -93
  195. package/lib/cjs/rpm-6C0Omumu.js.map +0 -1
  196. package/lib/cjs/ruby-POVyUmsb.js +0 -290
  197. package/lib/cjs/ruby-POVyUmsb.js.map +0 -1
  198. package/lib/cjs/sas-vDtpSmFr.js +0 -271
  199. package/lib/cjs/sas-vDtpSmFr.js.map +0 -1
  200. package/lib/cjs/scheme-5AA5BH7S.js +0 -266
  201. package/lib/cjs/scheme-5AA5BH7S.js.map +0 -1
  202. package/lib/cjs/shell-_ztDMiW6.js +0 -148
  203. package/lib/cjs/shell-_ztDMiW6.js.map +0 -1
  204. package/lib/cjs/sieve-R_vzlbvH.js +0 -181
  205. package/lib/cjs/sieve-R_vzlbvH.js.map +0 -1
  206. package/lib/cjs/simple-mode-ZwmNbV0h.js +0 -138
  207. package/lib/cjs/simple-mode-ZwmNbV0h.js.map +0 -1
  208. package/lib/cjs/smalltalk-dWLp5zN8.js +0 -156
  209. package/lib/cjs/smalltalk-dWLp5zN8.js.map +0 -1
  210. package/lib/cjs/solr-wSmvjKI8.js +0 -83
  211. package/lib/cjs/solr-wSmvjKI8.js.map +0 -1
  212. package/lib/cjs/sparql-GNU_0xKB.js +0 -173
  213. package/lib/cjs/sparql-GNU_0xKB.js.map +0 -1
  214. package/lib/cjs/spreadsheet-BiqYLk6M.js +0 -101
  215. package/lib/cjs/spreadsheet-BiqYLk6M.js.map +0 -1
  216. package/lib/cjs/sql-9GpHBPsC.js +0 -497
  217. package/lib/cjs/sql-9GpHBPsC.js.map +0 -1
  218. package/lib/cjs/stex-1V41CNLk.js +0 -250
  219. package/lib/cjs/stex-1V41CNLk.js.map +0 -1
  220. package/lib/cjs/stylus-H6hn9z_G.js +0 -753
  221. package/lib/cjs/stylus-H6hn9z_G.js.map +0 -1
  222. package/lib/cjs/swift-Xv5f8zgN.js +0 -205
  223. package/lib/cjs/swift-Xv5f8zgN.js.map +0 -1
  224. package/lib/cjs/tcl-LI-LOw_t.js +0 -128
  225. package/lib/cjs/tcl-LI-LOw_t.js.map +0 -1
  226. package/lib/cjs/textile-3NvRPUgg.js +0 -444
  227. package/lib/cjs/textile-3NvRPUgg.js.map +0 -1
  228. package/lib/cjs/tiddlywiki-PkMzy8_R.js +0 -281
  229. package/lib/cjs/tiddlywiki-PkMzy8_R.js.map +0 -1
  230. package/lib/cjs/tiki-Zk_GnEC8.js +0 -292
  231. package/lib/cjs/tiki-Zk_GnEC8.js.map +0 -1
  232. package/lib/cjs/toml-36gJ0YCq.js +0 -78
  233. package/lib/cjs/toml-36gJ0YCq.js.map +0 -1
  234. package/lib/cjs/troff-RLZ_o61o.js +0 -67
  235. package/lib/cjs/troff-RLZ_o61o.js.map +0 -1
  236. package/lib/cjs/ttcn-cfg-twaoJYvf.js +0 -204
  237. package/lib/cjs/ttcn-cfg-twaoJYvf.js.map +0 -1
  238. package/lib/cjs/ttcn-kGwvGb2v.js +0 -260
  239. package/lib/cjs/ttcn-kGwvGb2v.js.map +0 -1
  240. package/lib/cjs/turtle-nnevat7b.js +0 -144
  241. package/lib/cjs/turtle-nnevat7b.js.map +0 -1
  242. package/lib/cjs/vb-fO_I9s3s.js +0 -252
  243. package/lib/cjs/vb-fO_I9s3s.js.map +0 -1
  244. package/lib/cjs/vbscript-HXnn40y4.js +0 -324
  245. package/lib/cjs/vbscript-HXnn40y4.js.map +0 -1
  246. package/lib/cjs/velocity-Wn-ZfFzr.js +0 -189
  247. package/lib/cjs/velocity-Wn-ZfFzr.js.map +0 -1
  248. package/lib/cjs/verilog-y1ev34z6.js +0 -569
  249. package/lib/cjs/verilog-y1ev34z6.js.map +0 -1
  250. package/lib/cjs/vhdl-LF0oeXxc.js +0 -177
  251. package/lib/cjs/vhdl-LF0oeXxc.js.map +0 -1
  252. package/lib/cjs/webidl-6kI5KbeC.js +0 -182
  253. package/lib/cjs/webidl-6kI5KbeC.js.map +0 -1
  254. package/lib/cjs/xquery-BavrmwsO.js +0 -428
  255. package/lib/cjs/xquery-BavrmwsO.js.map +0 -1
  256. package/lib/cjs/yacas-1g_AbTrl.js +0 -185
  257. package/lib/cjs/yacas-1g_AbTrl.js.map +0 -1
  258. package/lib/cjs/z80-QYzKAAp7.js +0 -106
  259. package/lib/cjs/z80-QYzKAAp7.js.map +0 -1
  260. package/lib/esm/apl-eHQxyJFn.js +0 -143
  261. package/lib/esm/apl-eHQxyJFn.js.map +0 -1
  262. package/lib/esm/asciiarmor-Z-IGYCI4.js +0 -57
  263. package/lib/esm/asciiarmor-Z-IGYCI4.js.map +0 -1
  264. package/lib/esm/asn1-gF7x-q1y.js +0 -193
  265. package/lib/esm/asn1-gF7x-q1y.js.map +0 -1
  266. package/lib/esm/asterisk-swk20ftp.js +0 -188
  267. package/lib/esm/asterisk-swk20ftp.js.map +0 -1
  268. package/lib/esm/brainfuck-IFQdiQoR.js +0 -71
  269. package/lib/esm/brainfuck-IFQdiQoR.js.map +0 -1
  270. package/lib/esm/clike-q3hUF2Cx.js +0 -1019
  271. package/lib/esm/clike-q3hUF2Cx.js.map +0 -1
  272. package/lib/esm/clojure-I2Krbr2M.js +0 -275
  273. package/lib/esm/clojure-I2Krbr2M.js.map +0 -1
  274. package/lib/esm/clsx-RxCLxYpD.js +0 -4
  275. package/lib/esm/clsx-RxCLxYpD.js.map +0 -1
  276. package/lib/esm/cmake-ewwXLeuZ.js +0 -82
  277. package/lib/esm/cmake-ewwXLeuZ.js.map +0 -1
  278. package/lib/esm/cobol-fpN1nAnR.js +0 -236
  279. package/lib/esm/cobol-fpN1nAnR.js.map +0 -1
  280. package/lib/esm/coffeescript--eTFR-bH.js +0 -330
  281. package/lib/esm/coffeescript--eTFR-bH.js.map +0 -1
  282. package/lib/esm/commonlisp-XLSwVdLc.js +0 -109
  283. package/lib/esm/commonlisp-XLSwVdLc.js.map +0 -1
  284. package/lib/esm/crystal-_r3Aa1_a.js +0 -420
  285. package/lib/esm/crystal-_r3Aa1_a.js.map +0 -1
  286. package/lib/esm/css-hgwYGMKZ.js +0 -848
  287. package/lib/esm/css-hgwYGMKZ.js.map +0 -1
  288. package/lib/esm/cypher-bbJyAa-4.js +0 -123
  289. package/lib/esm/cypher-bbJyAa-4.js.map +0 -1
  290. package/lib/esm/d-5MyulviS.js +0 -206
  291. package/lib/esm/d-5MyulviS.js.map +0 -1
  292. package/lib/esm/diff-neOaT_vk.js +0 -31
  293. package/lib/esm/diff-neOaT_vk.js.map +0 -1
  294. package/lib/esm/dockerfile-lzx42-zz.js +0 -200
  295. package/lib/esm/dockerfile-lzx42-zz.js.map +0 -1
  296. package/lib/esm/dtd-FmzPLZcQ.js +0 -122
  297. package/lib/esm/dtd-FmzPLZcQ.js.map +0 -1
  298. package/lib/esm/dylan-1HtRK4GO.js +0 -338
  299. package/lib/esm/dylan-1HtRK4GO.js.map +0 -1
  300. package/lib/esm/ebnf-Nz-pnLHy.js +0 -152
  301. package/lib/esm/ebnf-Nz-pnLHy.js.map +0 -1
  302. package/lib/esm/ecl-lQsZhQz0.js +0 -191
  303. package/lib/esm/ecl-lQsZhQz0.js.map +0 -1
  304. package/lib/esm/eiffel-R_HiEkhx.js +0 -147
  305. package/lib/esm/eiffel-R_HiEkhx.js.map +0 -1
  306. package/lib/esm/elm-KYv4VTDg.js +0 -231
  307. package/lib/esm/elm-KYv4VTDg.js.map +0 -1
  308. package/lib/esm/erlang-7YaHCBIe.js +0 -582
  309. package/lib/esm/erlang-7YaHCBIe.js.map +0 -1
  310. package/lib/esm/factor-opBU9aTK.js +0 -66
  311. package/lib/esm/factor-opBU9aTK.js.map +0 -1
  312. package/lib/esm/fcl-jm31FmFz.js +0 -155
  313. package/lib/esm/fcl-jm31FmFz.js.map +0 -1
  314. package/lib/esm/forth-5NKbjnWh.js +0 -165
  315. package/lib/esm/forth-5NKbjnWh.js.map +0 -1
  316. package/lib/esm/fortran-dXm_-cb9.js +0 -173
  317. package/lib/esm/fortran-dXm_-cb9.js.map +0 -1
  318. package/lib/esm/gas-nsYVnsy-.js +0 -344
  319. package/lib/esm/gas-nsYVnsy-.js.map +0 -1
  320. package/lib/esm/gherkin-fzKpjm3M.js +0 -148
  321. package/lib/esm/gherkin-fzKpjm3M.js.map +0 -1
  322. package/lib/esm/go-Pn1qh7yl.js +0 -165
  323. package/lib/esm/go-Pn1qh7yl.js.map +0 -1
  324. package/lib/esm/groovy-DZY-8keZ.js +0 -231
  325. package/lib/esm/groovy-DZY-8keZ.js.map +0 -1
  326. package/lib/esm/haskell-JGh2upDd.js +0 -240
  327. package/lib/esm/haskell-JGh2upDd.js.map +0 -1
  328. package/lib/esm/haxe-1hvVK-Fy.js +0 -491
  329. package/lib/esm/haxe-1hvVK-Fy.js.map +0 -1
  330. package/lib/esm/http-mY1M77wn.js +0 -90
  331. package/lib/esm/http-mY1M77wn.js.map +0 -1
  332. package/lib/esm/idl-dy_653wH.js +0 -275
  333. package/lib/esm/idl-dy_653wH.js.map +0 -1
  334. package/lib/esm/index-1NetiFdJ.js +0 -90
  335. package/lib/esm/index-1NetiFdJ.js.map +0 -1
  336. package/lib/esm/index-2I_xbjAZ.js +0 -1012
  337. package/lib/esm/index-2I_xbjAZ.js.map +0 -1
  338. package/lib/esm/index-2huXYfuJ.js +0 -138
  339. package/lib/esm/index-2huXYfuJ.js.map +0 -1
  340. package/lib/esm/index-4x6_TVZv.js +0 -100
  341. package/lib/esm/index-4x6_TVZv.js.map +0 -1
  342. package/lib/esm/index-A-dNwMMf.js +0 -1872
  343. package/lib/esm/index-A-dNwMMf.js.map +0 -1
  344. package/lib/esm/index-AV99ipmP.js +0 -446
  345. package/lib/esm/index-AV99ipmP.js.map +0 -1
  346. package/lib/esm/index-PC2bahtq.js +0 -110
  347. package/lib/esm/index-PC2bahtq.js.map +0 -1
  348. package/lib/esm/index-QBYz82jZ.js +0 -378
  349. package/lib/esm/index-QBYz82jZ.js.map +0 -1
  350. package/lib/esm/index-W1pAMr_8.js +0 -142
  351. package/lib/esm/index-W1pAMr_8.js.map +0 -1
  352. package/lib/esm/index-Xzdc2jbA.js +0 -25207
  353. package/lib/esm/index-Xzdc2jbA.js.map +0 -1
  354. package/lib/esm/index-ZAtZWqJQ.js +0 -191
  355. package/lib/esm/index-ZAtZWqJQ.js.map +0 -1
  356. package/lib/esm/index-bnSKBrbD.js +0 -386
  357. package/lib/esm/index-bnSKBrbD.js.map +0 -1
  358. package/lib/esm/index-ftnOhuRS.js +0 -244
  359. package/lib/esm/index-ftnOhuRS.js.map +0 -1
  360. package/lib/esm/index-iQPB0Rdl.js +0 -343
  361. package/lib/esm/index-iQPB0Rdl.js.map +0 -1
  362. package/lib/esm/index-kPj3-TKp.js +0 -63
  363. package/lib/esm/index-kPj3-TKp.js.map +0 -1
  364. package/lib/esm/index-kgOR7SZ6.js +0 -336
  365. package/lib/esm/index-kgOR7SZ6.js.map +0 -1
  366. package/lib/esm/index-m49Bj3q7.js +0 -185
  367. package/lib/esm/index-m49Bj3q7.js.map +0 -1
  368. package/lib/esm/index-sWVjGw-3.js +0 -2497
  369. package/lib/esm/index-sWVjGw-3.js.map +0 -1
  370. package/lib/esm/index-twh8lL5o.js +0 -671
  371. package/lib/esm/index-twh8lL5o.js.map +0 -1
  372. package/lib/esm/index-v02MCz4_.js +0 -744
  373. package/lib/esm/index-v02MCz4_.js.map +0 -1
  374. package/lib/esm/index-wEXT8mbN.js +0 -512
  375. package/lib/esm/index-wEXT8mbN.js.map +0 -1
  376. package/lib/esm/index-wFIac5Kw.js +0 -1023
  377. package/lib/esm/index-wFIac5Kw.js.map +0 -1
  378. package/lib/esm/index-wg94ewRo.js +0 -425
  379. package/lib/esm/index-wg94ewRo.js.map +0 -1
  380. package/lib/esm/javascript-TMTz-YQH.js +0 -923
  381. package/lib/esm/javascript-TMTz-YQH.js.map +0 -1
  382. package/lib/esm/jinja2-sRIdliZK.js +0 -172
  383. package/lib/esm/jinja2-sRIdliZK.js.map +0 -1
  384. package/lib/esm/julia-fK0wmpGL.js +0 -370
  385. package/lib/esm/julia-fK0wmpGL.js.map +0 -1
  386. package/lib/esm/livescript-FRbAot3D.js +0 -260
  387. package/lib/esm/livescript-FRbAot3D.js.map +0 -1
  388. package/lib/esm/lua-t4FHEjvK.js +0 -138
  389. package/lib/esm/lua-t4FHEjvK.js.map +0 -1
  390. package/lib/esm/mathematica-sn_KGlYj.js +0 -154
  391. package/lib/esm/mathematica-sn_KGlYj.js.map +0 -1
  392. package/lib/esm/mbox-KvVC319E.js +0 -115
  393. package/lib/esm/mbox-KvVC319E.js.map +0 -1
  394. package/lib/esm/mirc-PzJ0zKSk.js +0 -177
  395. package/lib/esm/mirc-PzJ0zKSk.js.map +0 -1
  396. package/lib/esm/mllike-ZK411xkN.js +0 -347
  397. package/lib/esm/mllike-ZK411xkN.js.map +0 -1
  398. package/lib/esm/modelica-ZaHlRCbp.js +0 -193
  399. package/lib/esm/modelica-ZaHlRCbp.js.map +0 -1
  400. package/lib/esm/mscgen-Kkq4o4Zm.js +0 -150
  401. package/lib/esm/mscgen-Kkq4o4Zm.js.map +0 -1
  402. package/lib/esm/mumps-M8a87-rl.js +0 -130
  403. package/lib/esm/mumps-M8a87-rl.js.map +0 -1
  404. package/lib/esm/nginx-2LJIX23E.js +0 -164
  405. package/lib/esm/nginx-2LJIX23E.js.map +0 -1
  406. package/lib/esm/nsis-zvfFgMLi.js +0 -81
  407. package/lib/esm/nsis-zvfFgMLi.js.map +0 -1
  408. package/lib/esm/ntriples-tVkHy5bk.js +0 -142
  409. package/lib/esm/ntriples-tVkHy5bk.js.map +0 -1
  410. package/lib/esm/octave-mE4T5MF5.js +0 -113
  411. package/lib/esm/octave-mE4T5MF5.js.map +0 -1
  412. package/lib/esm/oz-q-LCsuVg.js +0 -236
  413. package/lib/esm/oz-q-LCsuVg.js.map +0 -1
  414. package/lib/esm/pascal-0IgUAn4C.js +0 -125
  415. package/lib/esm/pascal-0IgUAn4C.js.map +0 -1
  416. package/lib/esm/perl-AqxdYGac.js +0 -820
  417. package/lib/esm/perl-AqxdYGac.js.map +0 -1
  418. package/lib/esm/pig-ESM-IjQj.js +0 -150
  419. package/lib/esm/pig-ESM-IjQj.js.map +0 -1
  420. package/lib/esm/powershell-CLFP0L55.js +0 -382
  421. package/lib/esm/powershell-CLFP0L55.js.map +0 -1
  422. package/lib/esm/properties-oWHNzvb9.js +0 -63
  423. package/lib/esm/properties-oWHNzvb9.js.map +0 -1
  424. package/lib/esm/protobuf-c7eMmdcc.js +0 -55
  425. package/lib/esm/protobuf-c7eMmdcc.js.map +0 -1
  426. package/lib/esm/puppet-FjzvdRJr.js +0 -206
  427. package/lib/esm/puppet-FjzvdRJr.js.map +0 -1
  428. package/lib/esm/python-3Pv0tnvt.js +0 -390
  429. package/lib/esm/python-3Pv0tnvt.js.map +0 -1
  430. package/lib/esm/q-IImW8da6.js +0 -124
  431. package/lib/esm/q-IImW8da6.js.map +0 -1
  432. package/lib/esm/r-CnEkTvR0.js +0 -175
  433. package/lib/esm/r-CnEkTvR0.js.map +0 -1
  434. package/lib/esm/rpm-Q55-fEHj.js +0 -90
  435. package/lib/esm/rpm-Q55-fEHj.js.map +0 -1
  436. package/lib/esm/ruby-zhaGB3Kh.js +0 -288
  437. package/lib/esm/ruby-zhaGB3Kh.js.map +0 -1
  438. package/lib/esm/sas-Ur9jZIOV.js +0 -269
  439. package/lib/esm/sas-Ur9jZIOV.js.map +0 -1
  440. package/lib/esm/scheme-daT5-Rya.js +0 -264
  441. package/lib/esm/scheme-daT5-Rya.js.map +0 -1
  442. package/lib/esm/shell-cwFL0AYP.js +0 -146
  443. package/lib/esm/shell-cwFL0AYP.js.map +0 -1
  444. package/lib/esm/sieve-MlNXFFUq.js +0 -179
  445. package/lib/esm/sieve-MlNXFFUq.js.map +0 -1
  446. package/lib/esm/simple-mode-m1rsX7Gw.js +0 -136
  447. package/lib/esm/simple-mode-m1rsX7Gw.js.map +0 -1
  448. package/lib/esm/smalltalk-xrQICp9e.js +0 -154
  449. package/lib/esm/smalltalk-xrQICp9e.js.map +0 -1
  450. package/lib/esm/solr-PU3oPgQz.js +0 -81
  451. package/lib/esm/solr-PU3oPgQz.js.map +0 -1
  452. package/lib/esm/sparql--u8NRBii.js +0 -171
  453. package/lib/esm/sparql--u8NRBii.js.map +0 -1
  454. package/lib/esm/spreadsheet-QCp0LifX.js +0 -99
  455. package/lib/esm/spreadsheet-QCp0LifX.js.map +0 -1
  456. package/lib/esm/sql-dsGfl64h.js +0 -482
  457. package/lib/esm/sql-dsGfl64h.js.map +0 -1
  458. package/lib/esm/stex-WcLBzvkD.js +0 -247
  459. package/lib/esm/stex-WcLBzvkD.js.map +0 -1
  460. package/lib/esm/stylus--A5XAqOX.js +0 -751
  461. package/lib/esm/stylus--A5XAqOX.js.map +0 -1
  462. package/lib/esm/swift-qAm73i7G.js +0 -203
  463. package/lib/esm/swift-qAm73i7G.js.map +0 -1
  464. package/lib/esm/tcl-Kdc7qxc-.js +0 -126
  465. package/lib/esm/tcl-Kdc7qxc-.js.map +0 -1
  466. package/lib/esm/textile--sz8UrIz.js +0 -442
  467. package/lib/esm/textile--sz8UrIz.js.map +0 -1
  468. package/lib/esm/tiddlywiki-xNXTeBlQ.js +0 -279
  469. package/lib/esm/tiddlywiki-xNXTeBlQ.js.map +0 -1
  470. package/lib/esm/tiki-LCXjrNH3.js +0 -290
  471. package/lib/esm/tiki-LCXjrNH3.js.map +0 -1
  472. package/lib/esm/toml-Ac4tlBMn.js +0 -76
  473. package/lib/esm/toml-Ac4tlBMn.js.map +0 -1
  474. package/lib/esm/troff-LLW1x1Yz.js +0 -65
  475. package/lib/esm/troff-LLW1x1Yz.js.map +0 -1
  476. package/lib/esm/ttcn-ZYZ9FS3u.js +0 -258
  477. package/lib/esm/ttcn-ZYZ9FS3u.js.map +0 -1
  478. package/lib/esm/ttcn-cfg-qsvf3MfB.js +0 -202
  479. package/lib/esm/ttcn-cfg-qsvf3MfB.js.map +0 -1
  480. package/lib/esm/turtle-wq3TqOth.js +0 -142
  481. package/lib/esm/turtle-wq3TqOth.js.map +0 -1
  482. package/lib/esm/vb-86M_JuNP.js +0 -250
  483. package/lib/esm/vb-86M_JuNP.js.map +0 -1
  484. package/lib/esm/vbscript-GueAeVug.js +0 -321
  485. package/lib/esm/vbscript-GueAeVug.js.map +0 -1
  486. package/lib/esm/velocity-7PW9GXO2.js +0 -187
  487. package/lib/esm/velocity-7PW9GXO2.js.map +0 -1
  488. package/lib/esm/verilog-PXtXH14C.js +0 -566
  489. package/lib/esm/verilog-PXtXH14C.js.map +0 -1
  490. package/lib/esm/vhdl-I8eyK83X.js +0 -175
  491. package/lib/esm/vhdl-I8eyK83X.js.map +0 -1
  492. package/lib/esm/webidl-1f8ATJ66.js +0 -180
  493. package/lib/esm/webidl-1f8ATJ66.js.map +0 -1
  494. package/lib/esm/xquery-IYp28Wx6.js +0 -426
  495. package/lib/esm/xquery-IYp28Wx6.js.map +0 -1
  496. package/lib/esm/yacas-wkENB05f.js +0 -183
  497. package/lib/esm/yacas-wkENB05f.js.map +0 -1
  498. package/lib/esm/z80-GaXiLdiV.js +0 -103
  499. package/lib/esm/z80-GaXiLdiV.js.map +0 -1
@@ -1,753 +0,0 @@
1
- 'use strict';
2
-
3
- // developer.mozilla.org/en-US/docs/Web/HTML/Element
4
- var tagKeywords_ = ["a","abbr","address","area","article","aside","audio", "b", "base","bdi", "bdo","bgsound","blockquote","body","br","button","canvas","caption","cite", "code","col","colgroup","data","datalist","dd","del","details","dfn","div", "dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1", "h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe", "img","input","ins","kbd","keygen","label","legend","li","link","main","map", "mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes", "noscript","object","ol","optgroup","option","output","p","param","pre", "progress","q","rp","rt","ruby","s","samp","script","section","select", "small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track", "u","ul","var","video"];
5
-
6
- // github.com/codemirror/CodeMirror/blob/master/mode/css/css.js
7
- // Note, "url-prefix" should precede "url" in order to match correctly in documentTypesRegexp
8
- var documentTypes_ = ["domain", "regexp", "url-prefix", "url"];
9
- var mediaTypes_ = ["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"];
10
- var mediaFeatures_ = ["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"];
11
- var propertyKeywords_ = ["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"];
12
- var nonStandardPropertyKeywords_ = ["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"];
13
- var fontProperties_ = ["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"];
14
- var colorKeywords_ = ["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"];
15
- var valueKeywords_ = ["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around", "unset"];
16
-
17
- var wordOperatorKeywords_ = ["in","and","or","not","is not","is a","is","isnt","defined","if unless"],
18
- blockKeywords_ = ["for","if","else","unless", "from", "to"],
19
- commonAtoms_ = ["null","true","false","href","title","type","not-allowed","readonly","disabled"],
20
- commonDef_ = ["@font-face", "@keyframes", "@media", "@viewport", "@page", "@host", "@supports", "@block", "@css"];
21
-
22
- var hintWords = tagKeywords_.concat(documentTypes_,mediaTypes_,mediaFeatures_,
23
- propertyKeywords_,nonStandardPropertyKeywords_,
24
- colorKeywords_,valueKeywords_,fontProperties_,
25
- wordOperatorKeywords_,blockKeywords_,
26
- commonAtoms_,commonDef_);
27
-
28
- function wordRegexp(words) {
29
- words = words.sort(function(a,b){return b > a;});
30
- return new RegExp("^((" + words.join(")|(") + "))\\b");
31
- }
32
-
33
- function keySet(array) {
34
- var keys = {};
35
- for (var i = 0; i < array.length; ++i) keys[array[i]] = true;
36
- return keys;
37
- }
38
-
39
- function escapeRegExp(text) {
40
- return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
41
- }
42
-
43
- var tagKeywords = keySet(tagKeywords_),
44
- tagVariablesRegexp = /^(a|b|i|s|col|em)$/i,
45
- propertyKeywords = keySet(propertyKeywords_),
46
- nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_),
47
- valueKeywords = keySet(valueKeywords_),
48
- colorKeywords = keySet(colorKeywords_),
49
- documentTypes = keySet(documentTypes_),
50
- documentTypesRegexp = wordRegexp(documentTypes_),
51
- mediaFeatures = keySet(mediaFeatures_),
52
- mediaTypes = keySet(mediaTypes_),
53
- fontProperties = keySet(fontProperties_),
54
- operatorsRegexp = /^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/,
55
- wordOperatorKeywordsRegexp = wordRegexp(wordOperatorKeywords_),
56
- blockKeywords = keySet(blockKeywords_),
57
- vendorPrefixesRegexp = new RegExp(/^\-(moz|ms|o|webkit)-/i),
58
- commonAtoms = keySet(commonAtoms_),
59
- firstWordMatch = "",
60
- states = {},
61
- ch,
62
- style,
63
- type,
64
- override;
65
-
66
- /**
67
- * Tokenizers
68
- */
69
- function tokenBase(stream, state) {
70
- firstWordMatch = stream.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/);
71
- state.context.line.firstWord = firstWordMatch ? firstWordMatch[0].replace(/^\s*/, "") : "";
72
- state.context.line.indent = stream.indentation();
73
- ch = stream.peek();
74
-
75
- // Line comment
76
- if (stream.match("//")) {
77
- stream.skipToEnd();
78
- return ["comment", "comment"];
79
- }
80
- // Block comment
81
- if (stream.match("/*")) {
82
- state.tokenize = tokenCComment;
83
- return tokenCComment(stream, state);
84
- }
85
- // String
86
- if (ch == "\"" || ch == "'") {
87
- stream.next();
88
- state.tokenize = tokenString(ch);
89
- return state.tokenize(stream, state);
90
- }
91
- // Def
92
- if (ch == "@") {
93
- stream.next();
94
- stream.eatWhile(/[\w\\-]/);
95
- return ["def", stream.current()];
96
- }
97
- // ID selector or Hex color
98
- if (ch == "#") {
99
- stream.next();
100
- // Hex color
101
- if (stream.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i)) {
102
- return ["atom", "atom"];
103
- }
104
- // ID selector
105
- if (stream.match(/^[a-z][\w-]*/i)) {
106
- return ["builtin", "hash"];
107
- }
108
- }
109
- // Vendor prefixes
110
- if (stream.match(vendorPrefixesRegexp)) {
111
- return ["meta", "vendor-prefixes"];
112
- }
113
- // Numbers
114
- if (stream.match(/^-?[0-9]?\.?[0-9]/)) {
115
- stream.eatWhile(/[a-z%]/i);
116
- return ["number", "unit"];
117
- }
118
- // !important|optional
119
- if (ch == "!") {
120
- stream.next();
121
- return [stream.match(/^(important|optional)/i) ? "keyword": "operator", "important"];
122
- }
123
- // Class
124
- if (ch == "." && stream.match(/^\.[a-z][\w-]*/i)) {
125
- return ["qualifier", "qualifier"];
126
- }
127
- // url url-prefix domain regexp
128
- if (stream.match(documentTypesRegexp)) {
129
- if (stream.peek() == "(") state.tokenize = tokenParenthesized;
130
- return ["property", "word"];
131
- }
132
- // Mixins / Functions
133
- if (stream.match(/^[a-z][\w-]*\(/i)) {
134
- stream.backUp(1);
135
- return ["keyword", "mixin"];
136
- }
137
- // Block mixins
138
- if (stream.match(/^(\+|-)[a-z][\w-]*\(/i)) {
139
- stream.backUp(1);
140
- return ["keyword", "block-mixin"];
141
- }
142
- // Parent Reference BEM naming
143
- if (stream.string.match(/^\s*&/) && stream.match(/^[-_]+[a-z][\w-]*/)) {
144
- return ["qualifier", "qualifier"];
145
- }
146
- // / Root Reference & Parent Reference
147
- if (stream.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)) {
148
- stream.backUp(1);
149
- return ["variableName.special", "reference"];
150
- }
151
- if (stream.match(/^&{1}\s*$/)) {
152
- return ["variableName.special", "reference"];
153
- }
154
- // Word operator
155
- if (stream.match(wordOperatorKeywordsRegexp)) {
156
- return ["operator", "operator"];
157
- }
158
- // Word
159
- if (stream.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)) {
160
- // Variable
161
- if (stream.match(/^(\.|\[)[\w-\'\"\]]+/i, false)) {
162
- if (!wordIsTag(stream.current())) {
163
- stream.match('.');
164
- return ["variable", "variable-name"];
165
- }
166
- }
167
- return ["variable", "word"];
168
- }
169
- // Operators
170
- if (stream.match(operatorsRegexp)) {
171
- return ["operator", stream.current()];
172
- }
173
- // Delimiters
174
- if (/[:;,{}\[\]\(\)]/.test(ch)) {
175
- stream.next();
176
- return [null, ch];
177
- }
178
- // Non-detected items
179
- stream.next();
180
- return [null, null];
181
- }
182
-
183
- /**
184
- * Token comment
185
- */
186
- function tokenCComment(stream, state) {
187
- var maybeEnd = false, ch;
188
- while ((ch = stream.next()) != null) {
189
- if (maybeEnd && ch == "/") {
190
- state.tokenize = null;
191
- break;
192
- }
193
- maybeEnd = (ch == "*");
194
- }
195
- return ["comment", "comment"];
196
- }
197
-
198
- /**
199
- * Token string
200
- */
201
- function tokenString(quote) {
202
- return function(stream, state) {
203
- var escaped = false, ch;
204
- while ((ch = stream.next()) != null) {
205
- if (ch == quote && !escaped) {
206
- if (quote == ")") stream.backUp(1);
207
- break;
208
- }
209
- escaped = !escaped && ch == "\\";
210
- }
211
- if (ch == quote || !escaped && quote != ")") state.tokenize = null;
212
- return ["string", "string"];
213
- };
214
- }
215
-
216
- /**
217
- * Token parenthesized
218
- */
219
- function tokenParenthesized(stream, state) {
220
- stream.next(); // Must be "("
221
- if (!stream.match(/\s*[\"\')]/, false))
222
- state.tokenize = tokenString(")");
223
- else
224
- state.tokenize = null;
225
- return [null, "("];
226
- }
227
-
228
- /**
229
- * Context management
230
- */
231
- function Context(type, indent, prev, line) {
232
- this.type = type;
233
- this.indent = indent;
234
- this.prev = prev;
235
- this.line = line || {firstWord: "", indent: 0};
236
- }
237
-
238
- function pushContext(state, stream, type, indent) {
239
- indent = indent >= 0 ? indent : stream.indentUnit;
240
- state.context = new Context(type, stream.indentation() + indent, state.context);
241
- return type;
242
- }
243
-
244
- function popContext(state, stream, currentIndent) {
245
- var contextIndent = state.context.indent - stream.indentUnit;
246
- currentIndent = currentIndent || false;
247
- state.context = state.context.prev;
248
- if (currentIndent) state.context.indent = contextIndent;
249
- return state.context.type;
250
- }
251
-
252
- function pass(type, stream, state) {
253
- return states[state.context.type](type, stream, state);
254
- }
255
-
256
- function popAndPass(type, stream, state, n) {
257
- for (var i = n || 1; i > 0; i--)
258
- state.context = state.context.prev;
259
- return pass(type, stream, state);
260
- }
261
-
262
-
263
- /**
264
- * Parser
265
- */
266
- function wordIsTag(word) {
267
- return word.toLowerCase() in tagKeywords;
268
- }
269
-
270
- function wordIsProperty(word) {
271
- word = word.toLowerCase();
272
- return word in propertyKeywords || word in fontProperties;
273
- }
274
-
275
- function wordIsBlock(word) {
276
- return word.toLowerCase() in blockKeywords;
277
- }
278
-
279
- function wordIsVendorPrefix(word) {
280
- return word.toLowerCase().match(vendorPrefixesRegexp);
281
- }
282
-
283
- function wordAsValue(word) {
284
- var wordLC = word.toLowerCase();
285
- var override = "variable";
286
- if (wordIsTag(word)) override = "tag";
287
- else if (wordIsBlock(word)) override = "block-keyword";
288
- else if (wordIsProperty(word)) override = "property";
289
- else if (wordLC in valueKeywords || wordLC in commonAtoms) override = "atom";
290
- else if (wordLC == "return" || wordLC in colorKeywords) override = "keyword";
291
-
292
- // Font family
293
- else if (word.match(/^[A-Z]/)) override = "string";
294
- return override;
295
- }
296
-
297
- function typeIsBlock(type, stream) {
298
- return ((endOfLine(stream) && (type == "{" || type == "]" || type == "hash" || type == "qualifier")) || type == "block-mixin");
299
- }
300
-
301
- function typeIsInterpolation(type, stream) {
302
- return type == "{" && stream.match(/^\s*\$?[\w-]+/i, false);
303
- }
304
-
305
- function typeIsPseudo(type, stream) {
306
- return type == ":" && stream.match(/^[a-z-]+/, false);
307
- }
308
-
309
- function startOfLine(stream) {
310
- return stream.sol() || stream.string.match(new RegExp("^\\s*" + escapeRegExp(stream.current())));
311
- }
312
-
313
- function endOfLine(stream) {
314
- return stream.eol() || stream.match(/^\s*$/, false);
315
- }
316
-
317
- function firstWordOfLine(line) {
318
- var re = /^\s*[-_]*[a-z0-9]+[\w-]*/i;
319
- var result = typeof line == "string" ? line.match(re) : line.string.match(re);
320
- return result ? result[0].replace(/^\s*/, "") : "";
321
- }
322
-
323
-
324
- /**
325
- * Block
326
- */
327
- states.block = function(type, stream, state) {
328
- if ((type == "comment" && startOfLine(stream)) ||
329
- (type == "," && endOfLine(stream)) ||
330
- type == "mixin") {
331
- return pushContext(state, stream, "block", 0);
332
- }
333
- if (typeIsInterpolation(type, stream)) {
334
- return pushContext(state, stream, "interpolation");
335
- }
336
- if (endOfLine(stream) && type == "]") {
337
- if (!/^\s*(\.|#|:|\[|\*|&)/.test(stream.string) && !wordIsTag(firstWordOfLine(stream))) {
338
- return pushContext(state, stream, "block", 0);
339
- }
340
- }
341
- if (typeIsBlock(type, stream)) {
342
- return pushContext(state, stream, "block");
343
- }
344
- if (type == "}" && endOfLine(stream)) {
345
- return pushContext(state, stream, "block", 0);
346
- }
347
- if (type == "variable-name") {
348
- if (stream.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/) || wordIsBlock(firstWordOfLine(stream))) {
349
- return pushContext(state, stream, "variableName");
350
- }
351
- else {
352
- return pushContext(state, stream, "variableName", 0);
353
- }
354
- }
355
- if (type == "=") {
356
- if (!endOfLine(stream) && !wordIsBlock(firstWordOfLine(stream))) {
357
- return pushContext(state, stream, "block", 0);
358
- }
359
- return pushContext(state, stream, "block");
360
- }
361
- if (type == "*") {
362
- if (endOfLine(stream) || stream.match(/\s*(,|\.|#|\[|:|{)/,false)) {
363
- override = "tag";
364
- return pushContext(state, stream, "block");
365
- }
366
- }
367
- if (typeIsPseudo(type, stream)) {
368
- return pushContext(state, stream, "pseudo");
369
- }
370
- if (/@(font-face|media|supports|(-moz-)?document)/.test(type)) {
371
- return pushContext(state, stream, endOfLine(stream) ? "block" : "atBlock");
372
- }
373
- if (/@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) {
374
- return pushContext(state, stream, "keyframes");
375
- }
376
- if (/@extends?/.test(type)) {
377
- return pushContext(state, stream, "extend", 0);
378
- }
379
- if (type && type.charAt(0) == "@") {
380
-
381
- // Property Lookup
382
- if (stream.indentation() > 0 && wordIsProperty(stream.current().slice(1))) {
383
- override = "variable";
384
- return "block";
385
- }
386
- if (/(@import|@require|@charset)/.test(type)) {
387
- return pushContext(state, stream, "block", 0);
388
- }
389
- return pushContext(state, stream, "block");
390
- }
391
- if (type == "reference" && endOfLine(stream)) {
392
- return pushContext(state, stream, "block");
393
- }
394
- if (type == "(") {
395
- return pushContext(state, stream, "parens");
396
- }
397
-
398
- if (type == "vendor-prefixes") {
399
- return pushContext(state, stream, "vendorPrefixes");
400
- }
401
- if (type == "word") {
402
- var word = stream.current();
403
- override = wordAsValue(word);
404
-
405
- if (override == "property") {
406
- if (startOfLine(stream)) {
407
- return pushContext(state, stream, "block", 0);
408
- } else {
409
- override = "atom";
410
- return "block";
411
- }
412
- }
413
-
414
- if (override == "tag") {
415
-
416
- // tag is a css value
417
- if (/embed|menu|pre|progress|sub|table/.test(word)) {
418
- if (wordIsProperty(firstWordOfLine(stream))) {
419
- override = "atom";
420
- return "block";
421
- }
422
- }
423
-
424
- // tag is an attribute
425
- if (stream.string.match(new RegExp("\\[\\s*" + word + "|" + word +"\\s*\\]"))) {
426
- override = "atom";
427
- return "block";
428
- }
429
-
430
- // tag is a variable
431
- if (tagVariablesRegexp.test(word)) {
432
- if ((startOfLine(stream) && stream.string.match(/=/)) ||
433
- (!startOfLine(stream) &&
434
- !stream.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/) &&
435
- !wordIsTag(firstWordOfLine(stream)))) {
436
- override = "variable";
437
- if (wordIsBlock(firstWordOfLine(stream))) return "block";
438
- return pushContext(state, stream, "block", 0);
439
- }
440
- }
441
-
442
- if (endOfLine(stream)) return pushContext(state, stream, "block");
443
- }
444
- if (override == "block-keyword") {
445
- override = "keyword";
446
-
447
- // Postfix conditionals
448
- if (stream.current(/(if|unless)/) && !startOfLine(stream)) {
449
- return "block";
450
- }
451
- return pushContext(state, stream, "block");
452
- }
453
- if (word == "return") return pushContext(state, stream, "block", 0);
454
-
455
- // Placeholder selector
456
- if (override == "variable" && stream.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)) {
457
- return pushContext(state, stream, "block");
458
- }
459
- }
460
- return state.context.type;
461
- };
462
-
463
-
464
- /**
465
- * Parens
466
- */
467
- states.parens = function(type, stream, state) {
468
- if (type == "(") return pushContext(state, stream, "parens");
469
- if (type == ")") {
470
- if (state.context.prev.type == "parens") {
471
- return popContext(state, stream);
472
- }
473
- if ((stream.string.match(/^[a-z][\w-]*\(/i) && endOfLine(stream)) ||
474
- wordIsBlock(firstWordOfLine(stream)) ||
475
- /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(firstWordOfLine(stream)) ||
476
- (!stream.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/) &&
477
- wordIsTag(firstWordOfLine(stream)))) {
478
- return pushContext(state, stream, "block");
479
- }
480
- if (stream.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/) ||
481
- stream.string.match(/^\s*(\(|\)|[0-9])/) ||
482
- stream.string.match(/^\s+[a-z][\w-]*\(/i) ||
483
- stream.string.match(/^\s+[\$-]?[a-z]/i)) {
484
- return pushContext(state, stream, "block", 0);
485
- }
486
- if (endOfLine(stream)) return pushContext(state, stream, "block");
487
- else return pushContext(state, stream, "block", 0);
488
- }
489
- if (type && type.charAt(0) == "@" && wordIsProperty(stream.current().slice(1))) {
490
- override = "variable";
491
- }
492
- if (type == "word") {
493
- var word = stream.current();
494
- override = wordAsValue(word);
495
- if (override == "tag" && tagVariablesRegexp.test(word)) {
496
- override = "variable";
497
- }
498
- if (override == "property" || word == "to") override = "atom";
499
- }
500
- if (type == "variable-name") {
501
- return pushContext(state, stream, "variableName");
502
- }
503
- if (typeIsPseudo(type, stream)) {
504
- return pushContext(state, stream, "pseudo");
505
- }
506
- return state.context.type;
507
- };
508
-
509
-
510
- /**
511
- * Vendor prefixes
512
- */
513
- states.vendorPrefixes = function(type, stream, state) {
514
- if (type == "word") {
515
- override = "property";
516
- return pushContext(state, stream, "block", 0);
517
- }
518
- return popContext(state, stream);
519
- };
520
-
521
-
522
- /**
523
- * Pseudo
524
- */
525
- states.pseudo = function(type, stream, state) {
526
- if (!wordIsProperty(firstWordOfLine(stream.string))) {
527
- stream.match(/^[a-z-]+/);
528
- override = "variableName.special";
529
- if (endOfLine(stream)) return pushContext(state, stream, "block");
530
- return popContext(state, stream);
531
- }
532
- return popAndPass(type, stream, state);
533
- };
534
-
535
-
536
- /**
537
- * atBlock
538
- */
539
- states.atBlock = function(type, stream, state) {
540
- if (type == "(") return pushContext(state, stream, "atBlock_parens");
541
- if (typeIsBlock(type, stream)) {
542
- return pushContext(state, stream, "block");
543
- }
544
- if (typeIsInterpolation(type, stream)) {
545
- return pushContext(state, stream, "interpolation");
546
- }
547
- if (type == "word") {
548
- var word = stream.current().toLowerCase();
549
- if (/^(only|not|and|or)$/.test(word))
550
- override = "keyword";
551
- else if (documentTypes.hasOwnProperty(word))
552
- override = "tag";
553
- else if (mediaTypes.hasOwnProperty(word))
554
- override = "attribute";
555
- else if (mediaFeatures.hasOwnProperty(word))
556
- override = "property";
557
- else if (nonStandardPropertyKeywords.hasOwnProperty(word))
558
- override = "string.special";
559
- else override = wordAsValue(stream.current());
560
- if (override == "tag" && endOfLine(stream)) {
561
- return pushContext(state, stream, "block");
562
- }
563
- }
564
- if (type == "operator" && /^(not|and|or)$/.test(stream.current())) {
565
- override = "keyword";
566
- }
567
- return state.context.type;
568
- };
569
-
570
- states.atBlock_parens = function(type, stream, state) {
571
- if (type == "{" || type == "}") return state.context.type;
572
- if (type == ")") {
573
- if (endOfLine(stream)) return pushContext(state, stream, "block");
574
- else return pushContext(state, stream, "atBlock");
575
- }
576
- if (type == "word") {
577
- var word = stream.current().toLowerCase();
578
- override = wordAsValue(word);
579
- if (/^(max|min)/.test(word)) override = "property";
580
- if (override == "tag") {
581
- tagVariablesRegexp.test(word) ? override = "variable" : override = "atom";
582
- }
583
- return state.context.type;
584
- }
585
- return states.atBlock(type, stream, state);
586
- };
587
-
588
-
589
- /**
590
- * Keyframes
591
- */
592
- states.keyframes = function(type, stream, state) {
593
- if (stream.indentation() == "0" && ((type == "}" && startOfLine(stream)) || type == "]" || type == "hash"
594
- || type == "qualifier" || wordIsTag(stream.current()))) {
595
- return popAndPass(type, stream, state);
596
- }
597
- if (type == "{") return pushContext(state, stream, "keyframes");
598
- if (type == "}") {
599
- if (startOfLine(stream)) return popContext(state, stream, true);
600
- else return pushContext(state, stream, "keyframes");
601
- }
602
- if (type == "unit" && /^[0-9]+\%$/.test(stream.current())) {
603
- return pushContext(state, stream, "keyframes");
604
- }
605
- if (type == "word") {
606
- override = wordAsValue(stream.current());
607
- if (override == "block-keyword") {
608
- override = "keyword";
609
- return pushContext(state, stream, "keyframes");
610
- }
611
- }
612
- if (/@(font-face|media|supports|(-moz-)?document)/.test(type)) {
613
- return pushContext(state, stream, endOfLine(stream) ? "block" : "atBlock");
614
- }
615
- if (type == "mixin") {
616
- return pushContext(state, stream, "block", 0);
617
- }
618
- return state.context.type;
619
- };
620
-
621
-
622
- /**
623
- * Interpolation
624
- */
625
- states.interpolation = function(type, stream, state) {
626
- if (type == "{") popContext(state, stream) && pushContext(state, stream, "block");
627
- if (type == "}") {
628
- if (stream.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i) ||
629
- (stream.string.match(/^\s*[a-z]/i) && wordIsTag(firstWordOfLine(stream)))) {
630
- return pushContext(state, stream, "block");
631
- }
632
- if (!stream.string.match(/^(\{|\s*\&)/) ||
633
- stream.match(/\s*[\w-]/,false)) {
634
- return pushContext(state, stream, "block", 0);
635
- }
636
- return pushContext(state, stream, "block");
637
- }
638
- if (type == "variable-name") {
639
- return pushContext(state, stream, "variableName", 0);
640
- }
641
- if (type == "word") {
642
- override = wordAsValue(stream.current());
643
- if (override == "tag") override = "atom";
644
- }
645
- return state.context.type;
646
- };
647
-
648
-
649
- /**
650
- * Extend/s
651
- */
652
- states.extend = function(type, stream, state) {
653
- if (type == "[" || type == "=") return "extend";
654
- if (type == "]") return popContext(state, stream);
655
- if (type == "word") {
656
- override = wordAsValue(stream.current());
657
- return "extend";
658
- }
659
- return popContext(state, stream);
660
- };
661
-
662
-
663
- /**
664
- * Variable name
665
- */
666
- states.variableName = function(type, stream, state) {
667
- if (type == "string" || type == "[" || type == "]" || stream.current().match(/^(\.|\$)/)) {
668
- if (stream.current().match(/^\.[\w-]+/i)) override = "variable";
669
- return "variableName";
670
- }
671
- return popAndPass(type, stream, state);
672
- };
673
-
674
- const stylus = {
675
- name: "stylus",
676
- startState: function() {
677
- return {
678
- tokenize: null,
679
- state: "block",
680
- context: new Context("block", 0, null)
681
- };
682
- },
683
- token: function(stream, state) {
684
- if (!state.tokenize && stream.eatSpace()) return null;
685
- style = (state.tokenize || tokenBase)(stream, state);
686
- if (style && typeof style == "object") {
687
- type = style[1];
688
- style = style[0];
689
- }
690
- override = style;
691
- state.state = states[state.state](type, stream, state);
692
- return override;
693
- },
694
- indent: function(state, textAfter, iCx) {
695
- var cx = state.context,
696
- ch = textAfter && textAfter.charAt(0),
697
- indent = cx.indent,
698
- lineFirstWord = firstWordOfLine(textAfter),
699
- lineIndent = iCx.lineIndent(iCx.pos),
700
- prevLineFirstWord = state.context.prev ? state.context.prev.line.firstWord : "",
701
- prevLineIndent = state.context.prev ? state.context.prev.line.indent : lineIndent;
702
-
703
- if (cx.prev &&
704
- (ch == "}" && (cx.type == "block" || cx.type == "atBlock" || cx.type == "keyframes") ||
705
- ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
706
- ch == "{" && (cx.type == "at"))) {
707
- indent = cx.indent - iCx.unit;
708
- } else if (!(/(\})/.test(ch))) {
709
- if (/@|\$|\d/.test(ch) ||
710
- /^\{/.test(textAfter) ||
711
- /^\s*\/(\/|\*)/.test(textAfter) ||
712
- /^\s*\/\*/.test(prevLineFirstWord) ||
713
- /^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(textAfter) ||
714
- /^(\+|-)?[a-z][\w-]*\(/i.test(textAfter) ||
715
- /^return/.test(textAfter) ||
716
- wordIsBlock(lineFirstWord)) {
717
- indent = lineIndent;
718
- } else if (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ch) || wordIsTag(lineFirstWord)) {
719
- if (/\,\s*$/.test(prevLineFirstWord)) {
720
- indent = prevLineIndent;
721
- } else if (!state.sol() && (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(prevLineFirstWord) || wordIsTag(prevLineFirstWord))) {
722
- indent = lineIndent <= prevLineIndent ? prevLineIndent : prevLineIndent + iCx.unit;
723
- } else {
724
- indent = lineIndent;
725
- }
726
- } else if (!/,\s*$/.test(textAfter) && (wordIsVendorPrefix(lineFirstWord) || wordIsProperty(lineFirstWord))) {
727
- if (wordIsBlock(prevLineFirstWord)) {
728
- indent = lineIndent <= prevLineIndent ? prevLineIndent : prevLineIndent + iCx.unit;
729
- } else if (/^\{/.test(prevLineFirstWord)) {
730
- indent = lineIndent <= prevLineIndent ? lineIndent : prevLineIndent + iCx.unit;
731
- } else if (wordIsVendorPrefix(prevLineFirstWord) || wordIsProperty(prevLineFirstWord)) {
732
- indent = lineIndent >= prevLineIndent ? prevLineIndent : lineIndent;
733
- } else if (/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(prevLineFirstWord) ||
734
- /=\s*$/.test(prevLineFirstWord) ||
735
- wordIsTag(prevLineFirstWord) ||
736
- /^\$[\w-\.\[\]\'\"]/.test(prevLineFirstWord)) {
737
- indent = prevLineIndent + iCx.unit;
738
- } else {
739
- indent = lineIndent;
740
- }
741
- }
742
- }
743
- return indent;
744
- },
745
- languageData: {
746
- indentOnInput: /^\s*\}$/,
747
- commentTokens: {line: "//", block: {open: "/*", close: "*/"}},
748
- autocomplete: hintWords
749
- }
750
- };
751
-
752
- exports.stylus = stylus;
753
- //# sourceMappingURL=stylus-H6hn9z_G.js.map