@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.
- package/lib/cjs/_view-N32ied53.js +27 -0
- package/lib/cjs/_view-N32ied53.js.map +1 -0
- package/lib/cjs/apl-99bWvYTf.js +145 -0
- package/lib/cjs/apl-99bWvYTf.js.map +1 -0
- package/lib/cjs/asciiarmor-cf0JLIr_.js +59 -0
- package/lib/cjs/asciiarmor-cf0JLIr_.js.map +1 -0
- package/lib/cjs/asn1-H4XzAvBS.js +195 -0
- package/lib/cjs/asn1-H4XzAvBS.js.map +1 -0
- package/lib/cjs/asterisk-0FgJEfZB.js +190 -0
- package/lib/cjs/asterisk-0FgJEfZB.js.map +1 -0
- package/lib/cjs/brainfuck-JX7vRZy7.js +73 -0
- package/lib/cjs/brainfuck-JX7vRZy7.js.map +1 -0
- package/lib/cjs/clike-ueXlMQy5.js +1034 -0
- package/lib/cjs/clike-ueXlMQy5.js.map +1 -0
- package/lib/cjs/clojure-6iDAG5oi.js +277 -0
- package/lib/cjs/clojure-6iDAG5oi.js.map +1 -0
- package/lib/cjs/clsx-dASsG01A.js +6 -0
- package/lib/cjs/clsx-dASsG01A.js.map +1 -0
- package/lib/cjs/cmake-L0RIBnfc.js +84 -0
- package/lib/cjs/cmake-L0RIBnfc.js.map +1 -0
- package/lib/cjs/cobol-oxkMh1GJ.js +238 -0
- package/lib/cjs/cobol-oxkMh1GJ.js.map +1 -0
- package/lib/cjs/coffeescript--eauIeRQ.js +332 -0
- package/lib/cjs/coffeescript--eauIeRQ.js.map +1 -0
- package/lib/cjs/commonlisp-pgSu-q6f.js +111 -0
- package/lib/cjs/commonlisp-pgSu-q6f.js.map +1 -0
- package/lib/cjs/crystal-2y3I5ibZ.js +422 -0
- package/lib/cjs/crystal-2y3I5ibZ.js.map +1 -0
- package/lib/cjs/css-WH69cXzo.js +855 -0
- package/lib/cjs/css-WH69cXzo.js.map +1 -0
- package/lib/cjs/cypher-da-dqVyQ.js +125 -0
- package/lib/cjs/cypher-da-dqVyQ.js.map +1 -0
- package/lib/cjs/d-58J7EOkP.js +208 -0
- package/lib/cjs/d-58J7EOkP.js.map +1 -0
- package/lib/cjs/diff-437Hfzqm.js +33 -0
- package/lib/cjs/diff-437Hfzqm.js.map +1 -0
- package/lib/cjs/dockerfile-7i0OoaQe.js +202 -0
- package/lib/cjs/dockerfile-7i0OoaQe.js.map +1 -0
- package/lib/cjs/dtd-AKekCPPB.js +124 -0
- package/lib/cjs/dtd-AKekCPPB.js.map +1 -0
- package/lib/cjs/dylan-DLEmvz1I.js +340 -0
- package/lib/cjs/dylan-DLEmvz1I.js.map +1 -0
- package/lib/cjs/ebnf-36cJWqxB.js +154 -0
- package/lib/cjs/ebnf-36cJWqxB.js.map +1 -0
- package/lib/cjs/ecl-UWr5vJKJ.js +193 -0
- package/lib/cjs/ecl-UWr5vJKJ.js.map +1 -0
- package/lib/cjs/eiffel-Su-C9LAY.js +149 -0
- package/lib/cjs/eiffel-Su-C9LAY.js.map +1 -0
- package/lib/cjs/elm-vNNfVJj7.js +233 -0
- package/lib/cjs/elm-vNNfVJj7.js.map +1 -0
- package/lib/cjs/erlang-NM9dgYaS.js +584 -0
- package/lib/cjs/erlang-NM9dgYaS.js.map +1 -0
- package/lib/cjs/factor-RWs-4aWg.js +68 -0
- package/lib/cjs/factor-RWs-4aWg.js.map +1 -0
- package/lib/cjs/fcl-acUhGCfs.js +157 -0
- package/lib/cjs/fcl-acUhGCfs.js.map +1 -0
- package/lib/cjs/floating-ui.dom-2cjBpir5.js +1134 -0
- package/lib/cjs/floating-ui.dom-2cjBpir5.js.map +1 -0
- package/lib/cjs/forth-sDkE6z3A.js +167 -0
- package/lib/cjs/forth-sDkE6z3A.js.map +1 -0
- package/lib/cjs/fortran-gkb4yvdk.js +175 -0
- package/lib/cjs/fortran-gkb4yvdk.js.map +1 -0
- package/lib/cjs/gas-mNA0qvkv.js +347 -0
- package/lib/cjs/gas-mNA0qvkv.js.map +1 -0
- package/lib/cjs/gherkin-5uyKpXXh.js +150 -0
- package/lib/cjs/gherkin-5uyKpXXh.js.map +1 -0
- package/lib/cjs/go-5XitXoIZ.js +167 -0
- package/lib/cjs/go-5XitXoIZ.js.map +1 -0
- package/lib/cjs/groovy-mz3pWMKN.js +233 -0
- package/lib/cjs/groovy-mz3pWMKN.js.map +1 -0
- package/lib/cjs/haskell-9KaSS7kb.js +242 -0
- package/lib/cjs/haskell-9KaSS7kb.js.map +1 -0
- package/lib/cjs/haxe-L8h6Pvni.js +494 -0
- package/lib/cjs/haxe-L8h6Pvni.js.map +1 -0
- package/lib/cjs/helper-1aludV1Z.js +15 -0
- package/lib/cjs/helper-1aludV1Z.js.map +1 -0
- package/lib/cjs/http-BFQQnRR-.js +92 -0
- package/lib/cjs/http-BFQQnRR-.js.map +1 -0
- package/lib/cjs/idl-29T-AzAy.js +277 -0
- package/lib/cjs/idl-29T-AzAy.js.map +1 -0
- package/lib/cjs/index--sa4NMpW.js +119 -0
- package/lib/cjs/index--sa4NMpW.js.map +1 -0
- package/lib/cjs/index--tnUmqZ_.js +108 -0
- package/lib/cjs/index--tnUmqZ_.js.map +1 -0
- package/lib/cjs/index-1vHyMXH8.js +203 -0
- package/lib/cjs/index-1vHyMXH8.js.map +1 -0
- package/lib/cjs/index-28q261C7.js +448 -0
- package/lib/cjs/index-28q261C7.js.map +1 -0
- package/lib/cjs/index-55VIM-52.js +156 -0
- package/lib/cjs/index-55VIM-52.js.map +1 -0
- package/lib/cjs/index-92bwto5V.js +405 -0
- package/lib/cjs/index-92bwto5V.js.map +1 -0
- package/lib/cjs/index-Buu2tD9O.js +534 -0
- package/lib/cjs/index-Buu2tD9O.js.map +1 -0
- package/lib/cjs/index-E4Ist86Z.js +532 -0
- package/lib/cjs/index-E4Ist86Z.js.map +1 -0
- package/lib/cjs/index-FbNqlZU8.js +263 -0
- package/lib/cjs/index-FbNqlZU8.js.map +1 -0
- package/lib/cjs/index-HH5lPgpj.js +443 -0
- package/lib/cjs/index-HH5lPgpj.js.map +1 -0
- package/lib/cjs/index-J1-yHn7v.js +128 -0
- package/lib/cjs/index-J1-yHn7v.js.map +1 -0
- package/lib/cjs/index-J3XY9IPt.js +78 -0
- package/lib/cjs/index-J3XY9IPt.js.map +1 -0
- package/lib/cjs/index-Jztk6JlP.js +25698 -0
- package/lib/cjs/index-Jztk6JlP.js.map +1 -0
- package/lib/cjs/index-N6pPZY61.js +191 -0
- package/lib/cjs/index-N6pPZY61.js.map +1 -0
- package/lib/cjs/index-TUJs6KKL.js +472 -0
- package/lib/cjs/index-TUJs6KKL.js.map +1 -0
- package/lib/cjs/index-Tjg8KyK7.js +398 -0
- package/lib/cjs/index-Tjg8KyK7.js.map +1 -0
- package/lib/cjs/index-VYwHTL3F.js +161 -0
- package/lib/cjs/index-VYwHTL3F.js.map +1 -0
- package/lib/cjs/index-_GOdKqUK.js +1147 -0
- package/lib/cjs/index-_GOdKqUK.js.map +1 -0
- package/lib/cjs/index-cKQcw-eu.js +386 -0
- package/lib/cjs/index-cKQcw-eu.js.map +1 -0
- package/lib/cjs/index-c_OzudR7.js +699 -0
- package/lib/cjs/index-c_OzudR7.js.map +1 -0
- package/lib/cjs/index-cb-5m0vG.js +2519 -0
- package/lib/cjs/index-cb-5m0vG.js.map +1 -0
- package/lib/cjs/index-cpC-j5Nt.js +176 -0
- package/lib/cjs/index-cpC-j5Nt.js.map +1 -0
- package/lib/cjs/index-crv_k6dv.js +1353 -0
- package/lib/cjs/index-crv_k6dv.js.map +1 -0
- package/lib/cjs/index-jlfsu92T.js +362 -0
- package/lib/cjs/index-jlfsu92T.js.map +1 -0
- package/lib/cjs/index-jn036wuh.js +1045 -0
- package/lib/cjs/index-jn036wuh.js.map +1 -0
- package/lib/cjs/index-kqz-P6o6.js +55 -0
- package/lib/cjs/index-kqz-P6o6.js.map +1 -0
- package/lib/cjs/index-lBumFRUQ.js +209 -0
- package/lib/cjs/index-lBumFRUQ.js.map +1 -0
- package/lib/cjs/index-lUNj3xuC.js +81 -0
- package/lib/cjs/index-lUNj3xuC.js.map +1 -0
- package/lib/cjs/index-mcxgNBq9.js +464 -0
- package/lib/cjs/index-mcxgNBq9.js.map +1 -0
- package/lib/cjs/index-nTfDKYYi.js +1029 -0
- package/lib/cjs/index-nTfDKYYi.js.map +1 -0
- package/lib/cjs/index-tBw4NmwY.js +33852 -0
- package/lib/cjs/index-tBw4NmwY.js.map +1 -0
- package/lib/cjs/index-vfzLCXfi.js +774 -0
- package/lib/cjs/index-vfzLCXfi.js.map +1 -0
- package/lib/cjs/index-von4W2LG.js +356 -0
- package/lib/cjs/index-von4W2LG.js.map +1 -0
- package/lib/cjs/index-z6pe2alg.js +20 -0
- package/lib/cjs/index-z6pe2alg.js.map +1 -0
- package/lib/cjs/index-zXSAHvAj.js +1877 -0
- package/lib/cjs/index-zXSAHvAj.js.map +1 -0
- package/lib/cjs/index.js +20 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/javascript-5-BTydbD.js +928 -0
- package/lib/cjs/javascript-5-BTydbD.js.map +1 -0
- package/lib/cjs/jinja2-BWMz4gPk.js +174 -0
- package/lib/cjs/jinja2-BWMz4gPk.js.map +1 -0
- package/lib/cjs/julia-dtR9J3KZ.js +372 -0
- package/lib/cjs/julia-dtR9J3KZ.js.map +1 -0
- package/lib/cjs/livescript-YxT0INe3.js +262 -0
- package/lib/cjs/livescript-YxT0INe3.js.map +1 -0
- package/lib/cjs/lua-h7_AXjy9.js +140 -0
- package/lib/cjs/lua-h7_AXjy9.js.map +1 -0
- package/lib/cjs/mathematica-Zc57fOr3.js +156 -0
- package/lib/cjs/mathematica-Zc57fOr3.js.map +1 -0
- package/lib/cjs/mbox-ltKsKgJd.js +117 -0
- package/lib/cjs/mbox-ltKsKgJd.js.map +1 -0
- package/lib/cjs/mirc-xTLeWqmy.js +179 -0
- package/lib/cjs/mirc-xTLeWqmy.js.map +1 -0
- package/lib/cjs/mllike-xukl-Kjp.js +351 -0
- package/lib/cjs/mllike-xukl-Kjp.js.map +1 -0
- package/lib/cjs/modelica-LsXtAawk.js +195 -0
- package/lib/cjs/modelica-LsXtAawk.js.map +1 -0
- package/lib/cjs/mscgen-9HooYIVW.js +154 -0
- package/lib/cjs/mscgen-9HooYIVW.js.map +1 -0
- package/lib/cjs/mumps-VXqGp84f.js +132 -0
- package/lib/cjs/mumps-VXqGp84f.js.map +1 -0
- package/lib/cjs/nginx-UrubUbn1.js +166 -0
- package/lib/cjs/nginx-UrubUbn1.js.map +1 -0
- package/lib/cjs/nsis-c2AYwqyy.js +83 -0
- package/lib/cjs/nsis-c2AYwqyy.js.map +1 -0
- package/lib/cjs/ntriples-N1nwiheD.js +144 -0
- package/lib/cjs/ntriples-N1nwiheD.js.map +1 -0
- package/lib/cjs/octave-ElonStfZ.js +115 -0
- package/lib/cjs/octave-ElonStfZ.js.map +1 -0
- package/lib/cjs/oz-7VQTnCfu.js +238 -0
- package/lib/cjs/oz-7VQTnCfu.js.map +1 -0
- package/lib/cjs/pascal-yq2Cb88Q.js +127 -0
- package/lib/cjs/pascal-yq2Cb88Q.js.map +1 -0
- package/lib/cjs/perl-hJq4byS9.js +822 -0
- package/lib/cjs/perl-hJq4byS9.js.map +1 -0
- package/lib/cjs/pig-2syuOlAa.js +152 -0
- package/lib/cjs/pig-2syuOlAa.js.map +1 -0
- package/lib/cjs/powershell-NDwxuSDg.js +384 -0
- package/lib/cjs/powershell-NDwxuSDg.js.map +1 -0
- package/lib/cjs/properties-wacODxDJ.js +65 -0
- package/lib/cjs/properties-wacODxDJ.js.map +1 -0
- package/lib/cjs/protobuf-zVHZwskk.js +57 -0
- package/lib/cjs/protobuf-zVHZwskk.js.map +1 -0
- package/lib/cjs/puppet-koQikqO-.js +208 -0
- package/lib/cjs/puppet-koQikqO-.js.map +1 -0
- package/lib/cjs/python-P3UsKHbj.js +394 -0
- package/lib/cjs/python-P3UsKHbj.js.map +1 -0
- package/lib/cjs/q-Z_d2uXoA.js +126 -0
- package/lib/cjs/q-Z_d2uXoA.js.map +1 -0
- package/lib/cjs/r-J6Jl9z1i.js +177 -0
- package/lib/cjs/r-J6Jl9z1i.js.map +1 -0
- package/lib/cjs/rpm-6C0Omumu.js +93 -0
- package/lib/cjs/rpm-6C0Omumu.js.map +1 -0
- package/lib/cjs/ruby-POVyUmsb.js +290 -0
- package/lib/cjs/ruby-POVyUmsb.js.map +1 -0
- package/lib/cjs/sas-vDtpSmFr.js +271 -0
- package/lib/cjs/sas-vDtpSmFr.js.map +1 -0
- package/lib/cjs/schema-RVrwDDcq.js +74 -0
- package/lib/cjs/schema-RVrwDDcq.js.map +1 -0
- package/lib/cjs/scheme-5AA5BH7S.js +266 -0
- package/lib/cjs/scheme-5AA5BH7S.js.map +1 -0
- package/lib/cjs/shell-_ztDMiW6.js +148 -0
- package/lib/cjs/shell-_ztDMiW6.js.map +1 -0
- package/lib/cjs/sieve-R_vzlbvH.js +181 -0
- package/lib/cjs/sieve-R_vzlbvH.js.map +1 -0
- package/lib/cjs/simple-mode-ZwmNbV0h.js +138 -0
- package/lib/cjs/simple-mode-ZwmNbV0h.js.map +1 -0
- package/lib/cjs/smalltalk-dWLp5zN8.js +156 -0
- package/lib/cjs/smalltalk-dWLp5zN8.js.map +1 -0
- package/lib/cjs/solr-wSmvjKI8.js +83 -0
- package/lib/cjs/solr-wSmvjKI8.js.map +1 -0
- package/lib/cjs/sparql-GNU_0xKB.js +173 -0
- package/lib/cjs/sparql-GNU_0xKB.js.map +1 -0
- package/lib/cjs/spreadsheet-BiqYLk6M.js +101 -0
- package/lib/cjs/spreadsheet-BiqYLk6M.js.map +1 -0
- package/lib/cjs/sql-9GpHBPsC.js +497 -0
- package/lib/cjs/sql-9GpHBPsC.js.map +1 -0
- package/lib/cjs/stex-1V41CNLk.js +250 -0
- package/lib/cjs/stex-1V41CNLk.js.map +1 -0
- package/lib/cjs/stylus-H6hn9z_G.js +753 -0
- package/lib/cjs/stylus-H6hn9z_G.js.map +1 -0
- package/lib/cjs/swift-Xv5f8zgN.js +205 -0
- package/lib/cjs/swift-Xv5f8zgN.js.map +1 -0
- package/lib/cjs/tcl-LI-LOw_t.js +128 -0
- package/lib/cjs/tcl-LI-LOw_t.js.map +1 -0
- package/lib/cjs/textile-3NvRPUgg.js +444 -0
- package/lib/cjs/textile-3NvRPUgg.js.map +1 -0
- package/lib/cjs/tiddlywiki-PkMzy8_R.js +281 -0
- package/lib/cjs/tiddlywiki-PkMzy8_R.js.map +1 -0
- package/lib/cjs/tiki-Zk_GnEC8.js +292 -0
- package/lib/cjs/tiki-Zk_GnEC8.js.map +1 -0
- package/lib/cjs/todoList-Ze4FLMlx.js +415 -0
- package/lib/cjs/todoList-Ze4FLMlx.js.map +1 -0
- package/lib/cjs/toml-36gJ0YCq.js +78 -0
- package/lib/cjs/toml-36gJ0YCq.js.map +1 -0
- package/lib/cjs/tooltip-plugin--lhebztC.js +191 -0
- package/lib/cjs/tooltip-plugin--lhebztC.js.map +1 -0
- package/lib/cjs/troff-RLZ_o61o.js +67 -0
- package/lib/cjs/troff-RLZ_o61o.js.map +1 -0
- package/lib/cjs/ttcn-cfg-twaoJYvf.js +204 -0
- package/lib/cjs/ttcn-cfg-twaoJYvf.js.map +1 -0
- package/lib/cjs/ttcn-kGwvGb2v.js +260 -0
- package/lib/cjs/ttcn-kGwvGb2v.js.map +1 -0
- package/lib/cjs/turtle-nnevat7b.js +144 -0
- package/lib/cjs/turtle-nnevat7b.js.map +1 -0
- package/lib/cjs/vb-fO_I9s3s.js +252 -0
- package/lib/cjs/vb-fO_I9s3s.js.map +1 -0
- package/lib/cjs/vbscript-HXnn40y4.js +324 -0
- package/lib/cjs/vbscript-HXnn40y4.js.map +1 -0
- package/lib/cjs/velocity-Wn-ZfFzr.js +189 -0
- package/lib/cjs/velocity-Wn-ZfFzr.js.map +1 -0
- package/lib/cjs/verilog-y1ev34z6.js +569 -0
- package/lib/cjs/verilog-y1ev34z6.js.map +1 -0
- package/lib/cjs/vhdl-LF0oeXxc.js +177 -0
- package/lib/cjs/vhdl-LF0oeXxc.js.map +1 -0
- package/lib/cjs/webidl-6kI5KbeC.js +182 -0
- package/lib/cjs/webidl-6kI5KbeC.js.map +1 -0
- package/lib/cjs/xquery-BavrmwsO.js +428 -0
- package/lib/cjs/xquery-BavrmwsO.js.map +1 -0
- package/lib/cjs/yacas-1g_AbTrl.js +185 -0
- package/lib/cjs/yacas-1g_AbTrl.js.map +1 -0
- package/lib/cjs/z80-QYzKAAp7.js +106 -0
- package/lib/cjs/z80-QYzKAAp7.js.map +1 -0
- package/lib/esm/_view-IlZC8FA6.js +25 -0
- package/lib/esm/_view-IlZC8FA6.js.map +1 -0
- package/lib/esm/apl-eHQxyJFn.js +143 -0
- package/lib/esm/apl-eHQxyJFn.js.map +1 -0
- package/lib/esm/asciiarmor-Z-IGYCI4.js +57 -0
- package/lib/esm/asciiarmor-Z-IGYCI4.js.map +1 -0
- package/lib/esm/asn1-gF7x-q1y.js +193 -0
- package/lib/esm/asn1-gF7x-q1y.js.map +1 -0
- package/lib/esm/asterisk-swk20ftp.js +188 -0
- package/lib/esm/asterisk-swk20ftp.js.map +1 -0
- package/lib/esm/brainfuck-IFQdiQoR.js +71 -0
- package/lib/esm/brainfuck-IFQdiQoR.js.map +1 -0
- package/lib/esm/clike-q3hUF2Cx.js +1019 -0
- package/lib/esm/clike-q3hUF2Cx.js.map +1 -0
- package/lib/esm/clojure-I2Krbr2M.js +275 -0
- package/lib/esm/clojure-I2Krbr2M.js.map +1 -0
- package/lib/esm/clsx-RxCLxYpD.js +4 -0
- package/lib/esm/clsx-RxCLxYpD.js.map +1 -0
- package/lib/esm/cmake-ewwXLeuZ.js +82 -0
- package/lib/esm/cmake-ewwXLeuZ.js.map +1 -0
- package/lib/esm/cobol-fpN1nAnR.js +236 -0
- package/lib/esm/cobol-fpN1nAnR.js.map +1 -0
- package/lib/esm/coffeescript--eTFR-bH.js +330 -0
- package/lib/esm/coffeescript--eTFR-bH.js.map +1 -0
- package/lib/esm/commonlisp-XLSwVdLc.js +109 -0
- package/lib/esm/commonlisp-XLSwVdLc.js.map +1 -0
- package/lib/esm/crystal-_r3Aa1_a.js +420 -0
- package/lib/esm/crystal-_r3Aa1_a.js.map +1 -0
- package/lib/esm/css-hgwYGMKZ.js +848 -0
- package/lib/esm/css-hgwYGMKZ.js.map +1 -0
- package/lib/esm/cypher-bbJyAa-4.js +123 -0
- package/lib/esm/cypher-bbJyAa-4.js.map +1 -0
- package/lib/esm/d-5MyulviS.js +206 -0
- package/lib/esm/d-5MyulviS.js.map +1 -0
- package/lib/esm/diff-neOaT_vk.js +31 -0
- package/lib/esm/diff-neOaT_vk.js.map +1 -0
- package/lib/esm/dockerfile-lzx42-zz.js +200 -0
- package/lib/esm/dockerfile-lzx42-zz.js.map +1 -0
- package/lib/esm/dtd-FmzPLZcQ.js +122 -0
- package/lib/esm/dtd-FmzPLZcQ.js.map +1 -0
- package/lib/esm/dylan-1HtRK4GO.js +338 -0
- package/lib/esm/dylan-1HtRK4GO.js.map +1 -0
- package/lib/esm/ebnf-Nz-pnLHy.js +152 -0
- package/lib/esm/ebnf-Nz-pnLHy.js.map +1 -0
- package/lib/esm/ecl-lQsZhQz0.js +191 -0
- package/lib/esm/ecl-lQsZhQz0.js.map +1 -0
- package/lib/esm/eiffel-R_HiEkhx.js +147 -0
- package/lib/esm/eiffel-R_HiEkhx.js.map +1 -0
- package/lib/esm/elm-KYv4VTDg.js +231 -0
- package/lib/esm/elm-KYv4VTDg.js.map +1 -0
- package/lib/esm/erlang-7YaHCBIe.js +582 -0
- package/lib/esm/erlang-7YaHCBIe.js.map +1 -0
- package/lib/esm/factor-opBU9aTK.js +66 -0
- package/lib/esm/factor-opBU9aTK.js.map +1 -0
- package/lib/esm/fcl-jm31FmFz.js +155 -0
- package/lib/esm/fcl-jm31FmFz.js.map +1 -0
- package/lib/esm/floating-ui.dom-CAYjY8Gv.js +1130 -0
- package/lib/esm/floating-ui.dom-CAYjY8Gv.js.map +1 -0
- package/lib/esm/forth-5NKbjnWh.js +165 -0
- package/lib/esm/forth-5NKbjnWh.js.map +1 -0
- package/lib/esm/fortran-dXm_-cb9.js +173 -0
- package/lib/esm/fortran-dXm_-cb9.js.map +1 -0
- package/lib/esm/gas-nsYVnsy-.js +344 -0
- package/lib/esm/gas-nsYVnsy-.js.map +1 -0
- package/lib/esm/gherkin-fzKpjm3M.js +148 -0
- package/lib/esm/gherkin-fzKpjm3M.js.map +1 -0
- package/lib/esm/go-Pn1qh7yl.js +165 -0
- package/lib/esm/go-Pn1qh7yl.js.map +1 -0
- package/lib/esm/groovy-DZY-8keZ.js +231 -0
- package/lib/esm/groovy-DZY-8keZ.js.map +1 -0
- package/lib/esm/haskell-JGh2upDd.js +240 -0
- package/lib/esm/haskell-JGh2upDd.js.map +1 -0
- package/lib/esm/haxe-1hvVK-Fy.js +491 -0
- package/lib/esm/haxe-1hvVK-Fy.js.map +1 -0
- package/lib/esm/helper-wZAtC67x.js +13 -0
- package/lib/esm/helper-wZAtC67x.js.map +1 -0
- package/lib/esm/http-mY1M77wn.js +90 -0
- package/lib/esm/http-mY1M77wn.js.map +1 -0
- package/lib/esm/idl-dy_653wH.js +275 -0
- package/lib/esm/idl-dy_653wH.js.map +1 -0
- package/lib/esm/index-0-j8Icms.js +384 -0
- package/lib/esm/index-0-j8Icms.js.map +1 -0
- package/lib/esm/index-1l-61HI-.js +358 -0
- package/lib/esm/index-1l-61HI-.js.map +1 -0
- package/lib/esm/index-3HeWs5rX.js +440 -0
- package/lib/esm/index-3HeWs5rX.js.map +1 -0
- package/lib/esm/index-3bDzhU6z.js +759 -0
- package/lib/esm/index-3bDzhU6z.js.map +1 -0
- package/lib/esm/index-6GrVnloh.js +1027 -0
- package/lib/esm/index-6GrVnloh.js.map +1 -0
- package/lib/esm/index-8QJbxTYk.js +1145 -0
- package/lib/esm/index-8QJbxTYk.js.map +1 -0
- package/lib/esm/index-9w_hdnvb.js +532 -0
- package/lib/esm/index-9w_hdnvb.js.map +1 -0
- package/lib/esm/index-A83StUe6.js +174 -0
- package/lib/esm/index-A83StUe6.js.map +1 -0
- package/lib/esm/index-AOoFzBaK.js +53 -0
- package/lib/esm/index-AOoFzBaK.js.map +1 -0
- package/lib/esm/index-DS7Z4Ach.js +686 -0
- package/lib/esm/index-DS7Z4Ach.js.map +1 -0
- package/lib/esm/index-Jvxff1vU.js +16 -0
- package/lib/esm/index-Jvxff1vU.js.map +1 -0
- package/lib/esm/index-LAdX6LsO.js +33805 -0
- package/lib/esm/index-LAdX6LsO.js.map +1 -0
- package/lib/esm/index-MB6wQe1U.js +74 -0
- package/lib/esm/index-MB6wQe1U.js.map +1 -0
- package/lib/esm/index-MxgqkRtj.js +125 -0
- package/lib/esm/index-MxgqkRtj.js.map +1 -0
- package/lib/esm/index-NZ5-xr5_.js +351 -0
- package/lib/esm/index-NZ5-xr5_.js.map +1 -0
- package/lib/esm/index-OpUb5xP6.js +1872 -0
- package/lib/esm/index-OpUb5xP6.js.map +1 -0
- package/lib/esm/index-SDPCpsD5.js +461 -0
- package/lib/esm/index-SDPCpsD5.js.map +1 -0
- package/lib/esm/index-VP76m4nW.js +157 -0
- package/lib/esm/index-VP76m4nW.js.map +1 -0
- package/lib/esm/index-Vl0W0S3h.js +259 -0
- package/lib/esm/index-Vl0W0S3h.js.map +1 -0
- package/lib/esm/index-VoX_n1l_.js +1038 -0
- package/lib/esm/index-VoX_n1l_.js.map +1 -0
- package/lib/esm/index-XH7OnwZl.js +527 -0
- package/lib/esm/index-XH7OnwZl.js.map +1 -0
- package/lib/esm/index-Yuj7sNhQ.js +105 -0
- package/lib/esm/index-Yuj7sNhQ.js.map +1 -0
- package/lib/esm/index-_4fWmRbN.js +206 -0
- package/lib/esm/index-_4fWmRbN.js.map +1 -0
- package/lib/esm/index-bexsWrgs.js +153 -0
- package/lib/esm/index-bexsWrgs.js.map +1 -0
- package/lib/esm/index-chrnjY1D.js +470 -0
- package/lib/esm/index-chrnjY1D.js.map +1 -0
- package/lib/esm/index-eqd5wtjX.js +393 -0
- package/lib/esm/index-eqd5wtjX.js.map +1 -0
- package/lib/esm/index-g_3dzLYU.js +200 -0
- package/lib/esm/index-g_3dzLYU.js.map +1 -0
- package/lib/esm/index-grT-Kuf2.js +78 -0
- package/lib/esm/index-grT-Kuf2.js.map +1 -0
- package/lib/esm/index-hF04phbf.js +189 -0
- package/lib/esm/index-hF04phbf.js.map +1 -0
- package/lib/esm/index-i79QMXpJ.js +25654 -0
- package/lib/esm/index-i79QMXpJ.js.map +1 -0
- package/lib/esm/index-rvOBAXap.js +2512 -0
- package/lib/esm/index-rvOBAXap.js.map +1 -0
- package/lib/esm/index-uP9BKsTM.js +446 -0
- package/lib/esm/index-uP9BKsTM.js.map +1 -0
- package/lib/esm/index-ueQQMSgm.js +1351 -0
- package/lib/esm/index-ueQQMSgm.js.map +1 -0
- package/lib/esm/index-x8SyiPMC.js +401 -0
- package/lib/esm/index-x8SyiPMC.js.map +1 -0
- package/lib/esm/index-zrQXXSXm.js +115 -0
- package/lib/esm/index-zrQXXSXm.js.map +1 -0
- package/lib/esm/index.js +13 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/javascript-TMTz-YQH.js +923 -0
- package/lib/esm/javascript-TMTz-YQH.js.map +1 -0
- package/lib/esm/jinja2-sRIdliZK.js +172 -0
- package/lib/esm/jinja2-sRIdliZK.js.map +1 -0
- package/lib/esm/julia-fK0wmpGL.js +370 -0
- package/lib/esm/julia-fK0wmpGL.js.map +1 -0
- package/lib/esm/livescript-FRbAot3D.js +260 -0
- package/lib/esm/livescript-FRbAot3D.js.map +1 -0
- package/lib/esm/lua-t4FHEjvK.js +138 -0
- package/lib/esm/lua-t4FHEjvK.js.map +1 -0
- package/lib/esm/mathematica-sn_KGlYj.js +154 -0
- package/lib/esm/mathematica-sn_KGlYj.js.map +1 -0
- package/lib/esm/mbox-KvVC319E.js +115 -0
- package/lib/esm/mbox-KvVC319E.js.map +1 -0
- package/lib/esm/mirc-PzJ0zKSk.js +177 -0
- package/lib/esm/mirc-PzJ0zKSk.js.map +1 -0
- package/lib/esm/mllike-ZK411xkN.js +347 -0
- package/lib/esm/mllike-ZK411xkN.js.map +1 -0
- package/lib/esm/modelica-ZaHlRCbp.js +193 -0
- package/lib/esm/modelica-ZaHlRCbp.js.map +1 -0
- package/lib/esm/mscgen-Kkq4o4Zm.js +150 -0
- package/lib/esm/mscgen-Kkq4o4Zm.js.map +1 -0
- package/lib/esm/mumps-M8a87-rl.js +130 -0
- package/lib/esm/mumps-M8a87-rl.js.map +1 -0
- package/lib/esm/nginx-2LJIX23E.js +164 -0
- package/lib/esm/nginx-2LJIX23E.js.map +1 -0
- package/lib/esm/nsis-zvfFgMLi.js +81 -0
- package/lib/esm/nsis-zvfFgMLi.js.map +1 -0
- package/lib/esm/ntriples-tVkHy5bk.js +142 -0
- package/lib/esm/ntriples-tVkHy5bk.js.map +1 -0
- package/lib/esm/octave-mE4T5MF5.js +113 -0
- package/lib/esm/octave-mE4T5MF5.js.map +1 -0
- package/lib/esm/oz-q-LCsuVg.js +236 -0
- package/lib/esm/oz-q-LCsuVg.js.map +1 -0
- package/lib/esm/pascal-0IgUAn4C.js +125 -0
- package/lib/esm/pascal-0IgUAn4C.js.map +1 -0
- package/lib/esm/perl-AqxdYGac.js +820 -0
- package/lib/esm/perl-AqxdYGac.js.map +1 -0
- package/lib/esm/pig-ESM-IjQj.js +150 -0
- package/lib/esm/pig-ESM-IjQj.js.map +1 -0
- package/lib/esm/powershell-CLFP0L55.js +382 -0
- package/lib/esm/powershell-CLFP0L55.js.map +1 -0
- package/lib/esm/properties-oWHNzvb9.js +63 -0
- package/lib/esm/properties-oWHNzvb9.js.map +1 -0
- package/lib/esm/protobuf-c7eMmdcc.js +55 -0
- package/lib/esm/protobuf-c7eMmdcc.js.map +1 -0
- package/lib/esm/puppet-FjzvdRJr.js +206 -0
- package/lib/esm/puppet-FjzvdRJr.js.map +1 -0
- package/lib/esm/python-3Pv0tnvt.js +390 -0
- package/lib/esm/python-3Pv0tnvt.js.map +1 -0
- package/lib/esm/q-IImW8da6.js +124 -0
- package/lib/esm/q-IImW8da6.js.map +1 -0
- package/lib/esm/r-CnEkTvR0.js +175 -0
- package/lib/esm/r-CnEkTvR0.js.map +1 -0
- package/lib/esm/rpm-Q55-fEHj.js +90 -0
- package/lib/esm/rpm-Q55-fEHj.js.map +1 -0
- package/lib/esm/ruby-zhaGB3Kh.js +288 -0
- package/lib/esm/ruby-zhaGB3Kh.js.map +1 -0
- package/lib/esm/sas-Ur9jZIOV.js +269 -0
- package/lib/esm/sas-Ur9jZIOV.js.map +1 -0
- package/lib/esm/schema-JWJqD9qa.js +71 -0
- package/lib/esm/schema-JWJqD9qa.js.map +1 -0
- package/lib/esm/scheme-daT5-Rya.js +264 -0
- package/lib/esm/scheme-daT5-Rya.js.map +1 -0
- package/lib/esm/shell-cwFL0AYP.js +146 -0
- package/lib/esm/shell-cwFL0AYP.js.map +1 -0
- package/lib/esm/sieve-MlNXFFUq.js +179 -0
- package/lib/esm/sieve-MlNXFFUq.js.map +1 -0
- package/lib/esm/simple-mode-m1rsX7Gw.js +136 -0
- package/lib/esm/simple-mode-m1rsX7Gw.js.map +1 -0
- package/lib/esm/smalltalk-xrQICp9e.js +154 -0
- package/lib/esm/smalltalk-xrQICp9e.js.map +1 -0
- package/lib/esm/solr-PU3oPgQz.js +81 -0
- package/lib/esm/solr-PU3oPgQz.js.map +1 -0
- package/lib/esm/sparql--u8NRBii.js +171 -0
- package/lib/esm/sparql--u8NRBii.js.map +1 -0
- package/lib/esm/spreadsheet-QCp0LifX.js +99 -0
- package/lib/esm/spreadsheet-QCp0LifX.js.map +1 -0
- package/lib/esm/sql-dsGfl64h.js +482 -0
- package/lib/esm/sql-dsGfl64h.js.map +1 -0
- package/lib/esm/stex-WcLBzvkD.js +247 -0
- package/lib/esm/stex-WcLBzvkD.js.map +1 -0
- package/lib/esm/stylus--A5XAqOX.js +751 -0
- package/lib/esm/stylus--A5XAqOX.js.map +1 -0
- package/lib/esm/swift-qAm73i7G.js +203 -0
- package/lib/esm/swift-qAm73i7G.js.map +1 -0
- package/lib/esm/tcl-Kdc7qxc-.js +126 -0
- package/lib/esm/tcl-Kdc7qxc-.js.map +1 -0
- package/lib/esm/textile--sz8UrIz.js +442 -0
- package/lib/esm/textile--sz8UrIz.js.map +1 -0
- package/lib/esm/tiddlywiki-xNXTeBlQ.js +279 -0
- package/lib/esm/tiddlywiki-xNXTeBlQ.js.map +1 -0
- package/lib/esm/tiki-LCXjrNH3.js +290 -0
- package/lib/esm/tiki-LCXjrNH3.js.map +1 -0
- package/lib/esm/todoList-M-PGJKde.js +378 -0
- package/lib/esm/todoList-M-PGJKde.js.map +1 -0
- package/lib/esm/toml-Ac4tlBMn.js +76 -0
- package/lib/esm/toml-Ac4tlBMn.js.map +1 -0
- package/lib/esm/tooltip-plugin-iw2EQWIG.js +185 -0
- package/lib/esm/tooltip-plugin-iw2EQWIG.js.map +1 -0
- package/lib/esm/troff-LLW1x1Yz.js +65 -0
- package/lib/esm/troff-LLW1x1Yz.js.map +1 -0
- package/lib/esm/ttcn-ZYZ9FS3u.js +258 -0
- package/lib/esm/ttcn-ZYZ9FS3u.js.map +1 -0
- package/lib/esm/ttcn-cfg-qsvf3MfB.js +202 -0
- package/lib/esm/ttcn-cfg-qsvf3MfB.js.map +1 -0
- package/lib/esm/turtle-wq3TqOth.js +142 -0
- package/lib/esm/turtle-wq3TqOth.js.map +1 -0
- package/lib/esm/vb-86M_JuNP.js +250 -0
- package/lib/esm/vb-86M_JuNP.js.map +1 -0
- package/lib/esm/vbscript-GueAeVug.js +321 -0
- package/lib/esm/vbscript-GueAeVug.js.map +1 -0
- package/lib/esm/velocity-7PW9GXO2.js +187 -0
- package/lib/esm/velocity-7PW9GXO2.js.map +1 -0
- package/lib/esm/verilog-PXtXH14C.js +566 -0
- package/lib/esm/verilog-PXtXH14C.js.map +1 -0
- package/lib/esm/vhdl-I8eyK83X.js +175 -0
- package/lib/esm/vhdl-I8eyK83X.js.map +1 -0
- package/lib/esm/webidl-1f8ATJ66.js +180 -0
- package/lib/esm/webidl-1f8ATJ66.js.map +1 -0
- package/lib/esm/xquery-IYp28Wx6.js +426 -0
- package/lib/esm/xquery-IYp28Wx6.js.map +1 -0
- package/lib/esm/yacas-wkENB05f.js +183 -0
- package/lib/esm/yacas-wkENB05f.js.map +1 -0
- package/lib/esm/z80-GaXiLdiV.js +103 -0
- package/lib/esm/z80-GaXiLdiV.js.map +1 -0
- package/lib/theme/_internal/classic-common.css +257 -0
- package/lib/theme/common/block-edit.css +120 -0
- package/lib/theme/common/code-mirror.css +192 -0
- package/lib/theme/common/cursor.css +13 -0
- package/lib/theme/common/image-block.css +364 -0
- package/lib/theme/common/link-tooltip.css +102 -0
- package/lib/theme/common/list-item.css +49 -0
- package/lib/theme/common/placeholder.css +7 -0
- package/lib/theme/common/prosemirror.css +1 -0
- package/lib/theme/common/style.css +10 -0
- package/lib/theme/common/table.css +217 -0
- package/lib/theme/common/toolbar.css +41 -0
- package/lib/theme/crepe/style.css +28 -0
- package/lib/theme/crepe-dark/style.css +28 -0
- package/lib/theme/frame/style.css +28 -0
- package/lib/theme/frame-dark/style.css +28 -0
- package/lib/theme/nord/style.css +28 -0
- package/lib/theme/nord-dark/style.css +28 -0
- package/lib/types/core/crepe.d.ts +21 -0
- package/lib/types/core/crepe.d.ts.map +1 -0
- package/lib/types/core/index.d.ts +2 -0
- package/lib/types/core/index.d.ts.map +1 -0
- package/lib/types/core/slice.d.ts +5 -0
- package/lib/types/core/slice.d.ts.map +1 -0
- package/lib/types/feature/block-edit/handle/component.d.ts +12 -0
- package/lib/types/feature/block-edit/handle/component.d.ts.map +1 -0
- package/lib/types/feature/block-edit/handle/index.d.ts +12 -0
- package/lib/types/feature/block-edit/handle/index.d.ts.map +1 -0
- package/lib/types/feature/block-edit/index.d.ts +44 -0
- package/lib/types/feature/block-edit/index.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/component.d.ts +16 -0
- package/lib/types/feature/block-edit/menu/component.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/config.d.ts +12 -0
- package/lib/types/feature/block-edit/menu/config.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/group-builder.d.ts +29 -0
- package/lib/types/feature/block-edit/menu/group-builder.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/index.d.ts +10 -0
- package/lib/types/feature/block-edit/menu/index.d.ts.map +1 -0
- package/lib/types/feature/block-edit/menu/utils.d.ts +28 -0
- package/lib/types/feature/block-edit/menu/utils.d.ts.map +1 -0
- package/lib/types/feature/code-mirror/index.d.ts +19 -0
- package/lib/types/feature/code-mirror/index.d.ts.map +1 -0
- package/lib/types/feature/cursor/index.d.ts +9 -0
- package/lib/types/feature/cursor/index.d.ts.map +1 -0
- package/lib/types/feature/image-block/index.d.ts +20 -0
- package/lib/types/feature/image-block/index.d.ts.map +1 -0
- package/lib/types/feature/index.d.ts +35 -0
- package/lib/types/feature/index.d.ts.map +1 -0
- package/lib/types/feature/link-tooltip/index.d.ts +13 -0
- package/lib/types/feature/link-tooltip/index.d.ts.map +1 -0
- package/lib/types/feature/list-item/index.d.ts +9 -0
- package/lib/types/feature/list-item/index.d.ts.map +1 -0
- package/lib/types/feature/placeholder/index.d.ts +11 -0
- package/lib/types/feature/placeholder/index.d.ts.map +1 -0
- package/lib/types/feature/shared.d.ts +5 -0
- package/lib/types/feature/shared.d.ts.map +1 -0
- package/lib/types/feature/table/index.d.ts +16 -0
- package/lib/types/feature/table/index.d.ts.map +1 -0
- package/lib/types/feature/toolbar/component.d.ts +15 -0
- package/lib/types/feature/toolbar/component.d.ts.map +1 -0
- package/lib/types/feature/toolbar/index.d.ts +12 -0
- package/lib/types/feature/toolbar/index.d.ts.map +1 -0
- package/lib/types/icons/alignCenter.d.ts +2 -0
- package/lib/types/icons/alignCenter.d.ts.map +1 -0
- package/lib/types/icons/alignLeft.d.ts +2 -0
- package/lib/types/icons/alignLeft.d.ts.map +1 -0
- package/lib/types/icons/alignRight.d.ts +2 -0
- package/lib/types/icons/alignRight.d.ts.map +1 -0
- package/lib/types/icons/bold.d.ts +2 -0
- package/lib/types/icons/bold.d.ts.map +1 -0
- package/lib/types/icons/bullet.d.ts +2 -0
- package/lib/types/icons/bullet.d.ts.map +1 -0
- package/lib/types/icons/bulletList.d.ts +2 -0
- package/lib/types/icons/bulletList.d.ts.map +1 -0
- package/lib/types/icons/caption.d.ts +2 -0
- package/lib/types/icons/caption.d.ts.map +1 -0
- package/lib/types/icons/checkBoxChecked.d.ts +2 -0
- package/lib/types/icons/checkBoxChecked.d.ts.map +1 -0
- package/lib/types/icons/checkBoxUnchecked.d.ts +2 -0
- package/lib/types/icons/checkBoxUnchecked.d.ts.map +1 -0
- package/lib/types/icons/chevronDown.d.ts +2 -0
- package/lib/types/icons/chevronDown.d.ts.map +1 -0
- package/lib/types/icons/clear.d.ts +2 -0
- package/lib/types/icons/clear.d.ts.map +1 -0
- package/lib/types/icons/code.d.ts +2 -0
- package/lib/types/icons/code.d.ts.map +1 -0
- package/lib/types/icons/confirm.d.ts +2 -0
- package/lib/types/icons/confirm.d.ts.map +1 -0
- package/lib/types/icons/divider.d.ts +2 -0
- package/lib/types/icons/divider.d.ts.map +1 -0
- package/lib/types/icons/dragHandle.d.ts +2 -0
- package/lib/types/icons/dragHandle.d.ts.map +1 -0
- package/lib/types/icons/edit.d.ts +2 -0
- package/lib/types/icons/edit.d.ts.map +1 -0
- package/lib/types/icons/h1.d.ts +2 -0
- package/lib/types/icons/h1.d.ts.map +1 -0
- package/lib/types/icons/h2.d.ts +2 -0
- package/lib/types/icons/h2.d.ts.map +1 -0
- package/lib/types/icons/h3.d.ts +2 -0
- package/lib/types/icons/h3.d.ts.map +1 -0
- package/lib/types/icons/h4.d.ts +2 -0
- package/lib/types/icons/h4.d.ts.map +1 -0
- package/lib/types/icons/h5.d.ts +2 -0
- package/lib/types/icons/h5.d.ts.map +1 -0
- package/lib/types/icons/h6.d.ts +2 -0
- package/lib/types/icons/h6.d.ts.map +1 -0
- package/lib/types/icons/image.d.ts +2 -0
- package/lib/types/icons/image.d.ts.map +1 -0
- package/lib/types/icons/index.d.ts +36 -0
- package/lib/types/icons/index.d.ts.map +1 -0
- package/lib/types/icons/italic.d.ts +2 -0
- package/lib/types/icons/italic.d.ts.map +1 -0
- package/lib/types/icons/link.d.ts +2 -0
- package/lib/types/icons/link.d.ts.map +1 -0
- package/lib/types/icons/menu.d.ts +2 -0
- package/lib/types/icons/menu.d.ts.map +1 -0
- package/lib/types/icons/orderedList.d.ts +2 -0
- package/lib/types/icons/orderedList.d.ts.map +1 -0
- package/lib/types/icons/plus.d.ts +2 -0
- package/lib/types/icons/plus.d.ts.map +1 -0
- package/lib/types/icons/quote.d.ts +2 -0
- package/lib/types/icons/quote.d.ts.map +1 -0
- package/lib/types/icons/remove.d.ts +2 -0
- package/lib/types/icons/remove.d.ts.map +1 -0
- package/lib/types/icons/search.d.ts +2 -0
- package/lib/types/icons/search.d.ts.map +1 -0
- package/lib/types/icons/strikethrough.d.ts +2 -0
- package/lib/types/icons/strikethrough.d.ts.map +1 -0
- package/lib/types/icons/table.d.ts +2 -0
- package/lib/types/icons/table.d.ts.map +1 -0
- package/lib/types/icons/text.d.ts +2 -0
- package/lib/types/icons/text.d.ts.map +1 -0
- package/lib/types/icons/todoList.d.ts +2 -0
- package/lib/types/icons/todoList.d.ts.map +1 -0
- package/lib/types/index.d.ts +3 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/utils/index.d.ts +5 -0
- package/lib/types/utils/index.d.ts.map +1 -0
- package/package.json +25 -31
- package/src/core/crepe.ts +17 -17
- package/src/core/index.ts +0 -3
- package/src/core/slice.ts +2 -35
- package/src/feature/block-edit/handle/component.ts +13 -30
- package/src/feature/block-edit/handle/index.ts +39 -33
- package/src/feature/block-edit/index.ts +50 -9
- package/src/feature/block-edit/menu/component.ts +19 -12
- package/src/feature/block-edit/menu/config.ts +203 -275
- package/src/feature/block-edit/menu/group-builder.ts +50 -0
- package/src/feature/block-edit/menu/index.ts +20 -21
- package/src/feature/block-edit/menu/utils.ts +89 -0
- package/src/feature/code-mirror/index.ts +47 -47
- package/src/feature/cursor/index.ts +21 -0
- package/src/feature/image-block/index.ts +34 -45
- package/src/feature/index.ts +28 -7
- package/src/feature/link-tooltip/index.ts +23 -14
- package/src/feature/list-item/index.ts +22 -14
- package/src/feature/placeholder/index.ts +12 -11
- package/src/feature/shared.ts +5 -3
- package/src/feature/table/index.ts +54 -0
- package/src/feature/toolbar/component.ts +29 -12
- package/src/feature/toolbar/index.ts +31 -25
- package/src/icons/alignCenter.ts +7 -0
- package/src/icons/alignLeft.ts +7 -0
- package/src/icons/alignRight.ts +7 -0
- package/src/icons/bold.ts +7 -0
- package/src/icons/bullet.ts +14 -0
- package/src/icons/bulletList.ts +14 -0
- package/src/icons/caption.ts +7 -0
- package/src/icons/checkBoxChecked.ts +14 -0
- package/src/icons/checkBoxUnchecked.ts +14 -0
- package/src/icons/chevronDown.ts +7 -0
- package/src/icons/clear.ts +14 -0
- package/src/icons/code.ts +14 -0
- package/src/icons/confirm.ts +14 -0
- package/src/icons/divider.ts +14 -0
- package/src/icons/dragHandle.ts +7 -0
- package/src/icons/edit.ts +14 -0
- package/src/icons/h1.ts +14 -0
- package/src/icons/h2.ts +14 -0
- package/src/icons/h3.ts +14 -0
- package/src/icons/h4.ts +14 -0
- package/src/icons/h5.ts +14 -0
- package/src/icons/h6.ts +14 -0
- package/src/icons/image.ts +14 -0
- package/src/icons/index.ts +35 -0
- package/src/icons/italic.ts +7 -0
- package/src/icons/link.ts +7 -0
- package/src/icons/menu.ts +14 -0
- package/src/icons/orderedList.ts +14 -0
- package/src/icons/plus.ts +14 -0
- package/src/icons/quote.ts +14 -0
- package/src/icons/remove.ts +7 -0
- package/src/icons/search.ts +7 -0
- package/src/icons/strikethrough.ts +7 -0
- package/src/icons/table.ts +14 -0
- package/src/icons/text.ts +14 -0
- package/src/icons/todoList.ts +7 -0
- package/src/index.ts +0 -3
- package/src/theme/_internal/classic-common.css +220 -0
- package/src/theme/common/block-edit.css +138 -0
- package/src/theme/common/code-mirror.css +189 -0
- package/src/theme/common/cursor.css +15 -0
- package/src/theme/common/image-block.css +381 -0
- package/src/theme/common/link-tooltip.css +112 -0
- package/src/theme/common/list-item.css +43 -0
- package/src/theme/common/prosemirror.css +1 -0
- package/src/theme/common/style.css +10 -0
- package/src/theme/common/table.css +204 -0
- package/src/theme/common/toolbar.css +51 -0
- package/src/theme/crepe/style.css +28 -0
- package/src/theme/crepe-dark/style.css +28 -0
- package/src/theme/frame/style.css +28 -0
- package/src/theme/frame-dark/style.css +28 -0
- package/src/theme/nord/style.css +28 -0
- package/src/theme/nord-dark/style.css +28 -0
- package/src/utils/index.ts +6 -2
- package/src/vite-env.d.ts +0 -1
- package/lib/apl-p0IPP13W.js +0 -76
- package/lib/asciiarmor-lJsBxlJJ.js +0 -34
- package/lib/asn1-Q9v1zIy5.js +0 -102
- package/lib/asterisk-foNkeTjy.js +0 -273
- package/lib/brainfuck-0XqyXpNS.js +0 -35
- package/lib/clike-ak6Z6Yhe.js +0 -639
- package/lib/clojure-iYO8U8Sg.js +0 -810
- package/lib/clsx-7d8NmkQq.js +0 -21
- package/lib/cmake-SVzjkxV_.js +0 -28
- package/lib/cobol-APHEnAOX.js +0 -74
- package/lib/coffeescript-KqQa0SYG.js +0 -182
- package/lib/commonlisp-bwqNqR5V.js +0 -79
- package/lib/core/crepe.d.ts +0 -21
- package/lib/core/crepe.d.ts.map +0 -1
- package/lib/core/index.d.ts +0 -3
- package/lib/core/index.d.ts.map +0 -1
- package/lib/core/slice.d.ts +0 -12
- package/lib/core/slice.d.ts.map +0 -1
- package/lib/crystal-BViWuDpA.js +0 -217
- package/lib/css-KHXHXfXg.js +0 -1572
- package/lib/cypher-XpTt4zQ3.js +0 -69
- package/lib/d-fLig6yqY.js +0 -139
- package/lib/diff-WoKGLpy6.js +0 -18
- package/lib/dockerfile-u6f6Vw2s.js +0 -194
- package/lib/dtd-SIJRUW6K.js +0 -91
- package/lib/dylan-4HCLhpWP.js +0 -238
- package/lib/ebnf-h_0lged5.js +0 -77
- package/lib/ecl-Lf4FF0lf.js +0 -133
- package/lib/eiffel-qlw8KUyf.js +0 -112
- package/lib/elm-QRnB3zXs.js +0 -108
- package/lib/erlang-fyVKb7eK.js +0 -488
- package/lib/factor-BEeN4upY.js +0 -65
- package/lib/fcl-lRek3hEb.js +0 -106
- package/lib/feature/block-edit/handle/component.d.ts +0 -9
- package/lib/feature/block-edit/handle/component.d.ts.map +0 -1
- package/lib/feature/block-edit/handle/index.d.ts +0 -12
- package/lib/feature/block-edit/handle/index.d.ts.map +0 -1
- package/lib/feature/block-edit/index.d.ts +0 -3
- package/lib/feature/block-edit/index.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/component.d.ts +0 -14
- package/lib/feature/block-edit/menu/component.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/config.d.ts +0 -21
- package/lib/feature/block-edit/menu/config.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/icons.d.ts +0 -14
- package/lib/feature/block-edit/menu/icons.d.ts.map +0 -1
- package/lib/feature/block-edit/menu/index.d.ts +0 -9
- package/lib/feature/block-edit/menu/index.d.ts.map +0 -1
- package/lib/feature/code-mirror/index.d.ts +0 -3
- package/lib/feature/code-mirror/index.d.ts.map +0 -1
- package/lib/feature/gap-cursor/index.d.ts +0 -3
- package/lib/feature/gap-cursor/index.d.ts.map +0 -1
- package/lib/feature/image-block/index.d.ts +0 -3
- package/lib/feature/image-block/index.d.ts.map +0 -1
- package/lib/feature/index.d.ts +0 -18
- package/lib/feature/index.d.ts.map +0 -1
- package/lib/feature/link-tooltip/consts.d.ts +0 -5
- package/lib/feature/link-tooltip/consts.d.ts.map +0 -1
- package/lib/feature/link-tooltip/index.d.ts +0 -3
- package/lib/feature/link-tooltip/index.d.ts.map +0 -1
- package/lib/feature/list-item/consts.d.ts +0 -2
- package/lib/feature/list-item/consts.d.ts.map +0 -1
- package/lib/feature/list-item/index.d.ts +0 -3
- package/lib/feature/list-item/index.d.ts.map +0 -1
- package/lib/feature/placeholder/index.d.ts +0 -10
- package/lib/feature/placeholder/index.d.ts.map +0 -1
- package/lib/feature/shared.d.ts +0 -3
- package/lib/feature/shared.d.ts.map +0 -1
- package/lib/feature/toolbar/component.d.ts +0 -13
- package/lib/feature/toolbar/component.d.ts.map +0 -1
- package/lib/feature/toolbar/consts.d.ts +0 -5
- package/lib/feature/toolbar/consts.d.ts.map +0 -1
- package/lib/feature/toolbar/index.d.ts +0 -3
- package/lib/feature/toolbar/index.d.ts.map +0 -1
- package/lib/forth-ua2bRd8T.js +0 -60
- package/lib/fortran-WnF7znuN.js +0 -443
- package/lib/gas-wowve1o7.js +0 -183
- package/lib/gherkin-m7GIChu3.js +0 -34
- package/lib/go-th443Dhb.js +0 -158
- package/lib/groovy-tR4RiZnc.js +0 -161
- package/lib/haskell-jxVBofv5.js +0 -375
- package/lib/haxe-kWPI2tq3.js +0 -390
- package/lib/hooks-82sqkbtE.js +0 -21
- package/lib/http-3GIFWUlG.js +0 -45
- package/lib/icons-HYkfuR-O.js +0 -50
- package/lib/idl-PvpMZg-l.js +0 -947
- package/lib/index-BSv6537G.js +0 -364
- package/lib/index-BoI246Ti.js +0 -507
- package/lib/index-DDSXiQ90.js +0 -552
- package/lib/index-ECCvmC6D.js +0 -1301
- package/lib/index-EI1FcaSv.js +0 -928
- package/lib/index-ESoQGvsE.js +0 -288
- package/lib/index-GOH7H2i9.js +0 -81
- package/lib/index-GjFRg3RJ.js +0 -8
- package/lib/index-GzVCh3P9.js +0 -353
- package/lib/index-KCykNSJx.js +0 -323
- package/lib/index-Ls2I7eOW.js +0 -20986
- package/lib/index-P4-KqpEN.js +0 -275
- package/lib/index-Qcks_HSE.js +0 -984
- package/lib/index-RKThEh9x.js +0 -517
- package/lib/index-UqF8o9eD.js +0 -19665
- package/lib/index-_VrGF4z-.js +0 -47
- package/lib/index-cteyPSwp.js +0 -83
- package/lib/index-f0pbmfJP.js +0 -64
- package/lib/index-gMYRN2wV.js +0 -107
- package/lib/index-jZuF1Iix.js +0 -146
- package/lib/index-kyD7hUif.js +0 -141
- package/lib/index-oszOFbwW.js +0 -1041
- package/lib/index-pC1MPpe2.js +0 -1744
- package/lib/index-q3iu4cef.js +0 -78
- package/lib/index-qMeqmZtK.js +0 -168
- package/lib/index-rs4SJ8Gd.js +0 -253
- package/lib/index-w-CiezW1.js +0 -135
- package/lib/index-x6C6leag.js +0 -99
- package/lib/index-xHADmDT3.js +0 -12
- package/lib/index-xa7wUurf.js +0 -8
- package/lib/index-xjkoF_Bn.js +0 -317
- package/lib/index-yrfirMbY.js +0 -551
- package/lib/index-zNGl_CdN.js +0 -8
- package/lib/index-zc51oyS8.js +0 -121
- package/lib/index.d.ts +0 -4
- package/lib/index.d.ts.map +0 -1
- package/lib/index.es.js +0 -7
- package/lib/javascript-8ZHqHagw.js +0 -758
- package/lib/jinja2-vsOFe0qD.js +0 -154
- package/lib/julia-dlp_pbN1.js +0 -241
- package/lib/livescript-Gf5R-LT6.js +0 -273
- package/lib/lua-c5Y_JsBp.js +0 -221
- package/lib/mathematica-iiGTGmUs.js +0 -35
- package/lib/mbox-ZJh86H8B.js +0 -78
- package/lib/meta-tAGyVRPE.js +0 -511
- package/lib/mirc-i0qkCa0y.js +0 -73
- package/lib/mllike-Dy551fZW.js +0 -275
- package/lib/modelica-n6tGqUT9.js +0 -94
- package/lib/mscgen-aKSbB7D9.js +0 -104
- package/lib/mumps-lNiKA6sp.js +0 -25
- package/lib/nginx--YmuCfDj.js +0 -93
- package/lib/nsis-zhS8iA09.js +0 -62
- package/lib/ntriples-E3jQl3MC.js +0 -79
- package/lib/octave-EQvkGIeG.js +0 -144
- package/lib/oz-W2cpqFf6.js +0 -152
- package/lib/pascal-lCh6ouNZ.js +0 -79
- package/lib/perl-PxEQBX0B.js +0 -915
- package/lib/pig-Y_bNcrzS.js +0 -56
- package/lib/powershell-GaQP-TZr.js +0 -249
- package/lib/properties-mbRyn54L.js +0 -26
- package/lib/prosemirror-noTDkx-k.js +0 -4
- package/lib/protobuf-8CJideyJ.js +0 -49
- package/lib/puppet-ABBaChNZ.js +0 -45
- package/lib/python-sKdHg3Ka.js +0 -321
- package/lib/q-_1yG40Nm.js +0 -89
- package/lib/r-Ziz56bHT.js +0 -108
- package/lib/rpm-ORjGOHaQ.js +0 -57
- package/lib/ruby-jlbYq0dT.js +0 -233
- package/lib/sas-2n7xeUuO.js +0 -107
- package/lib/schema-ywm7RaKF.js +0 -62
- package/lib/scheme-XCs-NPeU.js +0 -126
- package/lib/shell-0_1Um7Dq.js +0 -184
- package/lib/sieve-7uyJD1x1.js +0 -73
- package/lib/simple-mode--HIzBxba.js +0 -95
- package/lib/smalltalk-PEFzrlQ-.js +0 -48
- package/lib/solr-BLBaHahN.js +0 -41
- package/lib/sparql-4F9ZWf1b.js +0 -204
- package/lib/spreadsheet-SGSo6blj.js +0 -49
- package/lib/sql-tebLBzN0.js +0 -291
- package/lib/stex-SFJcFGOO.js +0 -130
- package/lib/stylus-rwwWYWFm.js +0 -256
- package/lib/swift-eorJ0tCv.js +0 -238
- package/lib/tcl-IwXMB8U4.js +0 -82
- package/lib/textile-ok2VyjwC.js +0 -299
- package/lib/theme/classic/index.d.ts +0 -3
- package/lib/theme/classic/index.d.ts.map +0 -1
- package/lib/theme/classic-dark/index.d.ts +0 -3
- package/lib/theme/classic-dark/index.d.ts.map +0 -1
- package/lib/theme/headless/index.d.ts +0 -3
- package/lib/theme/headless/index.d.ts.map +0 -1
- package/lib/theme/index.d.ts +0 -8
- package/lib/theme/index.d.ts.map +0 -1
- package/lib/theme/shared.d.ts +0 -3
- package/lib/theme/shared.d.ts.map +0 -1
- package/lib/tiddlywiki-DLhz8_pc.js +0 -156
- package/lib/tiki-DFAqFElY.js +0 -183
- package/lib/tippy.esm-4ny8MQOF.js +0 -1813
- package/lib/toml-ryxpTZEV.js +0 -49
- package/lib/tooltip-plugin-NpyG8C5u.js +0 -122
- package/lib/troff-ZzZyvNct.js +0 -36
- package/lib/ttcn-6gvkqqpW.js +0 -136
- package/lib/ttcn-cfg-oSu-Dq5C.js +0 -98
- package/lib/turtle-10ofr5au.js +0 -87
- package/lib/utils/index.d.ts +0 -4
- package/lib/utils/index.d.ts.map +0 -1
- package/lib/vb-a6n6fzrD.js +0 -74
- package/lib/vbscript-dgvo8jPt.js +0 -324
- package/lib/velocity-CBncCrwO.js +0 -97
- package/lib/verilog-KlcACt6C.js +0 -271
- package/lib/vhdl-NMd7Gf35.js +0 -117
- package/lib/webidl-z1UE5DN_.js +0 -160
- package/lib/xquery-hDt5jWTp.js +0 -431
- package/lib/yacas-ftgh_qwr.js +0 -74
- package/lib/z80-dA1PqWe1.js +0 -62
- package/src/feature/block-edit/menu/icons.ts +0 -171
- package/src/feature/block-edit/style.css +0 -126
- package/src/feature/code-mirror/style.css +0 -159
- package/src/feature/gap-cursor/index.ts +0 -31
- package/src/feature/image-block/style.css +0 -215
- package/src/feature/link-tooltip/consts.ts +0 -47
- package/src/feature/link-tooltip/style.css +0 -107
- package/src/feature/list-item/consts.ts +0 -15
- package/src/feature/list-item/style.css +0 -23
- package/src/feature/toolbar/consts.ts +0 -26
- package/src/feature/toolbar/style.css +0 -37
- package/src/theme/classic/index.ts +0 -12
- package/src/theme/classic/style.css +0 -192
- package/src/theme/classic-dark/index.ts +0 -12
- package/src/theme/classic-dark/style.css +0 -197
- package/src/theme/headless/index.ts +0 -9
- package/src/theme/index.ts +0 -26
- package/src/theme/shared.ts +0 -4
- /package/src/{feature/placeholder/style.css → theme/common/placeholder.css} +0 -0
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function mkCSS(parserConfig) {
|
|
4
|
+
parserConfig = {...defaults, ...parserConfig};
|
|
5
|
+
var inline = parserConfig.inline;
|
|
6
|
+
|
|
7
|
+
var tokenHooks = parserConfig.tokenHooks,
|
|
8
|
+
documentTypes = parserConfig.documentTypes || {},
|
|
9
|
+
mediaTypes = parserConfig.mediaTypes || {},
|
|
10
|
+
mediaFeatures = parserConfig.mediaFeatures || {},
|
|
11
|
+
mediaValueKeywords = parserConfig.mediaValueKeywords || {},
|
|
12
|
+
propertyKeywords = parserConfig.propertyKeywords || {},
|
|
13
|
+
nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
|
|
14
|
+
fontProperties = parserConfig.fontProperties || {},
|
|
15
|
+
counterDescriptors = parserConfig.counterDescriptors || {},
|
|
16
|
+
colorKeywords = parserConfig.colorKeywords || {},
|
|
17
|
+
valueKeywords = parserConfig.valueKeywords || {},
|
|
18
|
+
allowNested = parserConfig.allowNested,
|
|
19
|
+
lineComment = parserConfig.lineComment,
|
|
20
|
+
supportsAtComponent = parserConfig.supportsAtComponent === true,
|
|
21
|
+
highlightNonStandardPropertyKeywords = parserConfig.highlightNonStandardPropertyKeywords !== false;
|
|
22
|
+
|
|
23
|
+
var type, override;
|
|
24
|
+
function ret(style, tp) { type = tp; return style; }
|
|
25
|
+
|
|
26
|
+
// Tokenizers
|
|
27
|
+
|
|
28
|
+
function tokenBase(stream, state) {
|
|
29
|
+
var ch = stream.next();
|
|
30
|
+
if (tokenHooks[ch]) {
|
|
31
|
+
var result = tokenHooks[ch](stream, state);
|
|
32
|
+
if (result !== false) return result;
|
|
33
|
+
}
|
|
34
|
+
if (ch == "@") {
|
|
35
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
36
|
+
return ret("def", stream.current());
|
|
37
|
+
} else if (ch == "=" || (ch == "~" || ch == "|") && stream.eat("=")) {
|
|
38
|
+
return ret(null, "compare");
|
|
39
|
+
} else if (ch == "\"" || ch == "'") {
|
|
40
|
+
state.tokenize = tokenString(ch);
|
|
41
|
+
return state.tokenize(stream, state);
|
|
42
|
+
} else if (ch == "#") {
|
|
43
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
44
|
+
return ret("atom", "hash");
|
|
45
|
+
} else if (ch == "!") {
|
|
46
|
+
stream.match(/^\s*\w*/);
|
|
47
|
+
return ret("keyword", "important");
|
|
48
|
+
} else if (/\d/.test(ch) || ch == "." && stream.eat(/\d/)) {
|
|
49
|
+
stream.eatWhile(/[\w.%]/);
|
|
50
|
+
return ret("number", "unit");
|
|
51
|
+
} else if (ch === "-") {
|
|
52
|
+
if (/[\d.]/.test(stream.peek())) {
|
|
53
|
+
stream.eatWhile(/[\w.%]/);
|
|
54
|
+
return ret("number", "unit");
|
|
55
|
+
} else if (stream.match(/^-[\w\\\-]*/)) {
|
|
56
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
57
|
+
if (stream.match(/^\s*:/, false))
|
|
58
|
+
return ret("def", "variable-definition");
|
|
59
|
+
return ret("variableName", "variable");
|
|
60
|
+
} else if (stream.match(/^\w+-/)) {
|
|
61
|
+
return ret("meta", "meta");
|
|
62
|
+
}
|
|
63
|
+
} else if (/[,+>*\/]/.test(ch)) {
|
|
64
|
+
return ret(null, "select-op");
|
|
65
|
+
} else if (ch == "." && stream.match(/^-?[_a-z][_a-z0-9-]*/i)) {
|
|
66
|
+
return ret("qualifier", "qualifier");
|
|
67
|
+
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
|
|
68
|
+
return ret(null, ch);
|
|
69
|
+
} else if (stream.match(/^[\w-.]+(?=\()/)) {
|
|
70
|
+
if (/^(url(-prefix)?|domain|regexp)$/i.test(stream.current())) {
|
|
71
|
+
state.tokenize = tokenParenthesized;
|
|
72
|
+
}
|
|
73
|
+
return ret("variableName.function", "variable");
|
|
74
|
+
} else if (/[\w\\\-]/.test(ch)) {
|
|
75
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
76
|
+
return ret("property", "word");
|
|
77
|
+
} else {
|
|
78
|
+
return ret(null, null);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function tokenString(quote) {
|
|
83
|
+
return function(stream, state) {
|
|
84
|
+
var escaped = false, ch;
|
|
85
|
+
while ((ch = stream.next()) != null) {
|
|
86
|
+
if (ch == quote && !escaped) {
|
|
87
|
+
if (quote == ")") stream.backUp(1);
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
escaped = !escaped && ch == "\\";
|
|
91
|
+
}
|
|
92
|
+
if (ch == quote || !escaped && quote != ")") state.tokenize = null;
|
|
93
|
+
return ret("string", "string");
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function tokenParenthesized(stream, state) {
|
|
98
|
+
stream.next(); // Must be '('
|
|
99
|
+
if (!stream.match(/^\s*[\"\')]/, false))
|
|
100
|
+
state.tokenize = tokenString(")");
|
|
101
|
+
else
|
|
102
|
+
state.tokenize = null;
|
|
103
|
+
return ret(null, "(");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Context management
|
|
107
|
+
|
|
108
|
+
function Context(type, indent, prev) {
|
|
109
|
+
this.type = type;
|
|
110
|
+
this.indent = indent;
|
|
111
|
+
this.prev = prev;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function pushContext(state, stream, type, indent) {
|
|
115
|
+
state.context = new Context(type, stream.indentation() + (indent === false ? 0 : stream.indentUnit), state.context);
|
|
116
|
+
return type;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function popContext(state) {
|
|
120
|
+
if (state.context.prev)
|
|
121
|
+
state.context = state.context.prev;
|
|
122
|
+
return state.context.type;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function pass(type, stream, state) {
|
|
126
|
+
return states[state.context.type](type, stream, state);
|
|
127
|
+
}
|
|
128
|
+
function popAndPass(type, stream, state, n) {
|
|
129
|
+
for (var i = n || 1; i > 0; i--)
|
|
130
|
+
state.context = state.context.prev;
|
|
131
|
+
return pass(type, stream, state);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Parser
|
|
135
|
+
|
|
136
|
+
function wordAsValue(stream) {
|
|
137
|
+
var word = stream.current().toLowerCase();
|
|
138
|
+
if (valueKeywords.hasOwnProperty(word))
|
|
139
|
+
override = "atom";
|
|
140
|
+
else if (colorKeywords.hasOwnProperty(word))
|
|
141
|
+
override = "keyword";
|
|
142
|
+
else
|
|
143
|
+
override = "variable";
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
var states = {};
|
|
147
|
+
|
|
148
|
+
states.top = function(type, stream, state) {
|
|
149
|
+
if (type == "{") {
|
|
150
|
+
return pushContext(state, stream, "block");
|
|
151
|
+
} else if (type == "}" && state.context.prev) {
|
|
152
|
+
return popContext(state);
|
|
153
|
+
} else if (supportsAtComponent && /@component/i.test(type)) {
|
|
154
|
+
return pushContext(state, stream, "atComponentBlock");
|
|
155
|
+
} else if (/^@(-moz-)?document$/i.test(type)) {
|
|
156
|
+
return pushContext(state, stream, "documentTypes");
|
|
157
|
+
} else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) {
|
|
158
|
+
return pushContext(state, stream, "atBlock");
|
|
159
|
+
} else if (/^@(font-face|counter-style)/i.test(type)) {
|
|
160
|
+
state.stateArg = type;
|
|
161
|
+
return "restricted_atBlock_before";
|
|
162
|
+
} else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) {
|
|
163
|
+
return "keyframes";
|
|
164
|
+
} else if (type && type.charAt(0) == "@") {
|
|
165
|
+
return pushContext(state, stream, "at");
|
|
166
|
+
} else if (type == "hash") {
|
|
167
|
+
override = "builtin";
|
|
168
|
+
} else if (type == "word") {
|
|
169
|
+
override = "tag";
|
|
170
|
+
} else if (type == "variable-definition") {
|
|
171
|
+
return "maybeprop";
|
|
172
|
+
} else if (type == "interpolation") {
|
|
173
|
+
return pushContext(state, stream, "interpolation");
|
|
174
|
+
} else if (type == ":") {
|
|
175
|
+
return "pseudo";
|
|
176
|
+
} else if (allowNested && type == "(") {
|
|
177
|
+
return pushContext(state, stream, "parens");
|
|
178
|
+
}
|
|
179
|
+
return state.context.type;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
states.block = function(type, stream, state) {
|
|
183
|
+
if (type == "word") {
|
|
184
|
+
var word = stream.current().toLowerCase();
|
|
185
|
+
if (propertyKeywords.hasOwnProperty(word)) {
|
|
186
|
+
override = "property";
|
|
187
|
+
return "maybeprop";
|
|
188
|
+
} else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
|
|
189
|
+
override = highlightNonStandardPropertyKeywords ? "string.special" : "property";
|
|
190
|
+
return "maybeprop";
|
|
191
|
+
} else if (allowNested) {
|
|
192
|
+
override = stream.match(/^\s*:(?:\s|$)/, false) ? "property" : "tag";
|
|
193
|
+
return "block";
|
|
194
|
+
} else {
|
|
195
|
+
override = "error";
|
|
196
|
+
return "maybeprop";
|
|
197
|
+
}
|
|
198
|
+
} else if (type == "meta") {
|
|
199
|
+
return "block";
|
|
200
|
+
} else if (!allowNested && (type == "hash" || type == "qualifier")) {
|
|
201
|
+
override = "error";
|
|
202
|
+
return "block";
|
|
203
|
+
} else {
|
|
204
|
+
return states.top(type, stream, state);
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
states.maybeprop = function(type, stream, state) {
|
|
209
|
+
if (type == ":") return pushContext(state, stream, "prop");
|
|
210
|
+
return pass(type, stream, state);
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
states.prop = function(type, stream, state) {
|
|
214
|
+
if (type == ";") return popContext(state);
|
|
215
|
+
if (type == "{" && allowNested) return pushContext(state, stream, "propBlock");
|
|
216
|
+
if (type == "}" || type == "{") return popAndPass(type, stream, state);
|
|
217
|
+
if (type == "(") return pushContext(state, stream, "parens");
|
|
218
|
+
|
|
219
|
+
if (type == "hash" && !/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(stream.current())) {
|
|
220
|
+
override = "error";
|
|
221
|
+
} else if (type == "word") {
|
|
222
|
+
wordAsValue(stream);
|
|
223
|
+
} else if (type == "interpolation") {
|
|
224
|
+
return pushContext(state, stream, "interpolation");
|
|
225
|
+
}
|
|
226
|
+
return "prop";
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
states.propBlock = function(type, _stream, state) {
|
|
230
|
+
if (type == "}") return popContext(state);
|
|
231
|
+
if (type == "word") { override = "property"; return "maybeprop"; }
|
|
232
|
+
return state.context.type;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
states.parens = function(type, stream, state) {
|
|
236
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state);
|
|
237
|
+
if (type == ")") return popContext(state);
|
|
238
|
+
if (type == "(") return pushContext(state, stream, "parens");
|
|
239
|
+
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
240
|
+
if (type == "word") wordAsValue(stream);
|
|
241
|
+
return "parens";
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
states.pseudo = function(type, stream, state) {
|
|
245
|
+
if (type == "meta") return "pseudo";
|
|
246
|
+
|
|
247
|
+
if (type == "word") {
|
|
248
|
+
override = "variableName.constant";
|
|
249
|
+
return state.context.type;
|
|
250
|
+
}
|
|
251
|
+
return pass(type, stream, state);
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
states.documentTypes = function(type, stream, state) {
|
|
255
|
+
if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
|
|
256
|
+
override = "tag";
|
|
257
|
+
return state.context.type;
|
|
258
|
+
} else {
|
|
259
|
+
return states.atBlock(type, stream, state);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
states.atBlock = function(type, stream, state) {
|
|
264
|
+
if (type == "(") return pushContext(state, stream, "atBlock_parens");
|
|
265
|
+
if (type == "}" || type == ";") return popAndPass(type, stream, state);
|
|
266
|
+
if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");
|
|
267
|
+
|
|
268
|
+
if (type == "interpolation") return pushContext(state, stream, "interpolation");
|
|
269
|
+
|
|
270
|
+
if (type == "word") {
|
|
271
|
+
var word = stream.current().toLowerCase();
|
|
272
|
+
if (word == "only" || word == "not" || word == "and" || word == "or")
|
|
273
|
+
override = "keyword";
|
|
274
|
+
else if (mediaTypes.hasOwnProperty(word))
|
|
275
|
+
override = "attribute";
|
|
276
|
+
else if (mediaFeatures.hasOwnProperty(word))
|
|
277
|
+
override = "property";
|
|
278
|
+
else if (mediaValueKeywords.hasOwnProperty(word))
|
|
279
|
+
override = "keyword";
|
|
280
|
+
else if (propertyKeywords.hasOwnProperty(word))
|
|
281
|
+
override = "property";
|
|
282
|
+
else if (nonStandardPropertyKeywords.hasOwnProperty(word))
|
|
283
|
+
override = highlightNonStandardPropertyKeywords ? "string.special" : "property";
|
|
284
|
+
else if (valueKeywords.hasOwnProperty(word))
|
|
285
|
+
override = "atom";
|
|
286
|
+
else if (colorKeywords.hasOwnProperty(word))
|
|
287
|
+
override = "keyword";
|
|
288
|
+
else
|
|
289
|
+
override = "error";
|
|
290
|
+
}
|
|
291
|
+
return state.context.type;
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
states.atComponentBlock = function(type, stream, state) {
|
|
295
|
+
if (type == "}")
|
|
296
|
+
return popAndPass(type, stream, state);
|
|
297
|
+
if (type == "{")
|
|
298
|
+
return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
|
|
299
|
+
if (type == "word")
|
|
300
|
+
override = "error";
|
|
301
|
+
return state.context.type;
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
states.atBlock_parens = function(type, stream, state) {
|
|
305
|
+
if (type == ")") return popContext(state);
|
|
306
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);
|
|
307
|
+
return states.atBlock(type, stream, state);
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
states.restricted_atBlock_before = function(type, stream, state) {
|
|
311
|
+
if (type == "{")
|
|
312
|
+
return pushContext(state, stream, "restricted_atBlock");
|
|
313
|
+
if (type == "word" && state.stateArg == "@counter-style") {
|
|
314
|
+
override = "variable";
|
|
315
|
+
return "restricted_atBlock_before";
|
|
316
|
+
}
|
|
317
|
+
return pass(type, stream, state);
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
states.restricted_atBlock = function(type, stream, state) {
|
|
321
|
+
if (type == "}") {
|
|
322
|
+
state.stateArg = null;
|
|
323
|
+
return popContext(state);
|
|
324
|
+
}
|
|
325
|
+
if (type == "word") {
|
|
326
|
+
if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
|
|
327
|
+
(state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))
|
|
328
|
+
override = "error";
|
|
329
|
+
else
|
|
330
|
+
override = "property";
|
|
331
|
+
return "maybeprop";
|
|
332
|
+
}
|
|
333
|
+
return "restricted_atBlock";
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
states.keyframes = function(type, stream, state) {
|
|
337
|
+
if (type == "word") { override = "variable"; return "keyframes"; }
|
|
338
|
+
if (type == "{") return pushContext(state, stream, "top");
|
|
339
|
+
return pass(type, stream, state);
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
states.at = function(type, stream, state) {
|
|
343
|
+
if (type == ";") return popContext(state);
|
|
344
|
+
if (type == "{" || type == "}") return popAndPass(type, stream, state);
|
|
345
|
+
if (type == "word") override = "tag";
|
|
346
|
+
else if (type == "hash") override = "builtin";
|
|
347
|
+
return "at";
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
states.interpolation = function(type, stream, state) {
|
|
351
|
+
if (type == "}") return popContext(state);
|
|
352
|
+
if (type == "{" || type == ";") return popAndPass(type, stream, state);
|
|
353
|
+
if (type == "word") override = "variable";
|
|
354
|
+
else if (type != "variable" && type != "(" && type != ")") override = "error";
|
|
355
|
+
return "interpolation";
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
return {
|
|
359
|
+
name: parserConfig.name,
|
|
360
|
+
startState: function() {
|
|
361
|
+
return {tokenize: null,
|
|
362
|
+
state: inline ? "block" : "top",
|
|
363
|
+
stateArg: null,
|
|
364
|
+
context: new Context(inline ? "block" : "top", 0, null)};
|
|
365
|
+
},
|
|
366
|
+
|
|
367
|
+
token: function(stream, state) {
|
|
368
|
+
if (!state.tokenize && stream.eatSpace()) return null;
|
|
369
|
+
var style = (state.tokenize || tokenBase)(stream, state);
|
|
370
|
+
if (style && typeof style == "object") {
|
|
371
|
+
type = style[1];
|
|
372
|
+
style = style[0];
|
|
373
|
+
}
|
|
374
|
+
override = style;
|
|
375
|
+
if (type != "comment")
|
|
376
|
+
state.state = states[state.state](type, stream, state);
|
|
377
|
+
return override;
|
|
378
|
+
},
|
|
379
|
+
|
|
380
|
+
indent: function(state, textAfter, iCx) {
|
|
381
|
+
var cx = state.context, ch = textAfter && textAfter.charAt(0);
|
|
382
|
+
var indent = cx.indent;
|
|
383
|
+
if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;
|
|
384
|
+
if (cx.prev) {
|
|
385
|
+
if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
|
|
386
|
+
cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
|
|
387
|
+
// Resume indentation from parent context.
|
|
388
|
+
cx = cx.prev;
|
|
389
|
+
indent = cx.indent;
|
|
390
|
+
} else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
|
|
391
|
+
ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
|
|
392
|
+
// Dedent relative to current context.
|
|
393
|
+
indent = Math.max(0, cx.indent - iCx.unit);
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
return indent;
|
|
397
|
+
},
|
|
398
|
+
|
|
399
|
+
languageData: {
|
|
400
|
+
indentOnInput: /^\s*\}$/,
|
|
401
|
+
commentTokens: {line: lineComment, block: {open: "/*", close: "*/"}},
|
|
402
|
+
autocomplete: allWords
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
function keySet(array) {
|
|
407
|
+
var keys = {};
|
|
408
|
+
for (var i = 0; i < array.length; ++i) {
|
|
409
|
+
keys[array[i].toLowerCase()] = true;
|
|
410
|
+
}
|
|
411
|
+
return keys;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
var documentTypes_ = [
|
|
415
|
+
"domain", "regexp", "url", "url-prefix"
|
|
416
|
+
], documentTypes = keySet(documentTypes_);
|
|
417
|
+
|
|
418
|
+
var mediaTypes_ = [
|
|
419
|
+
"all", "aural", "braille", "handheld", "print", "projection", "screen",
|
|
420
|
+
"tty", "tv", "embossed"
|
|
421
|
+
], mediaTypes = keySet(mediaTypes_);
|
|
422
|
+
|
|
423
|
+
var mediaFeatures_ = [
|
|
424
|
+
"width", "min-width", "max-width", "height", "min-height", "max-height",
|
|
425
|
+
"device-width", "min-device-width", "max-device-width", "device-height",
|
|
426
|
+
"min-device-height", "max-device-height", "aspect-ratio",
|
|
427
|
+
"min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
|
|
428
|
+
"min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
|
|
429
|
+
"max-color", "color-index", "min-color-index", "max-color-index",
|
|
430
|
+
"monochrome", "min-monochrome", "max-monochrome", "resolution",
|
|
431
|
+
"min-resolution", "max-resolution", "scan", "grid", "orientation",
|
|
432
|
+
"device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
|
|
433
|
+
"pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme",
|
|
434
|
+
"dynamic-range", "video-dynamic-range"
|
|
435
|
+
], mediaFeatures = keySet(mediaFeatures_);
|
|
436
|
+
|
|
437
|
+
var mediaValueKeywords_ = [
|
|
438
|
+
"landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
|
|
439
|
+
"interlace", "progressive",
|
|
440
|
+
"dark", "light",
|
|
441
|
+
"standard", "high"
|
|
442
|
+
], mediaValueKeywords = keySet(mediaValueKeywords_);
|
|
443
|
+
|
|
444
|
+
var propertyKeywords_ = [
|
|
445
|
+
"align-content", "align-items", "align-self", "alignment-adjust",
|
|
446
|
+
"alignment-baseline", "all", "anchor-point", "animation", "animation-delay",
|
|
447
|
+
"animation-direction", "animation-duration", "animation-fill-mode",
|
|
448
|
+
"animation-iteration-count", "animation-name", "animation-play-state",
|
|
449
|
+
"animation-timing-function", "appearance", "azimuth", "backdrop-filter",
|
|
450
|
+
"backface-visibility", "background", "background-attachment",
|
|
451
|
+
"background-blend-mode", "background-clip", "background-color",
|
|
452
|
+
"background-image", "background-origin", "background-position",
|
|
453
|
+
"background-position-x", "background-position-y", "background-repeat",
|
|
454
|
+
"background-size", "baseline-shift", "binding", "bleed", "block-size",
|
|
455
|
+
"bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target",
|
|
456
|
+
"border", "border-bottom", "border-bottom-color", "border-bottom-left-radius",
|
|
457
|
+
"border-bottom-right-radius", "border-bottom-style", "border-bottom-width",
|
|
458
|
+
"border-collapse", "border-color", "border-image", "border-image-outset",
|
|
459
|
+
"border-image-repeat", "border-image-slice", "border-image-source",
|
|
460
|
+
"border-image-width", "border-left", "border-left-color", "border-left-style",
|
|
461
|
+
"border-left-width", "border-radius", "border-right", "border-right-color",
|
|
462
|
+
"border-right-style", "border-right-width", "border-spacing", "border-style",
|
|
463
|
+
"border-top", "border-top-color", "border-top-left-radius",
|
|
464
|
+
"border-top-right-radius", "border-top-style", "border-top-width",
|
|
465
|
+
"border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing",
|
|
466
|
+
"break-after", "break-before", "break-inside", "caption-side", "caret-color",
|
|
467
|
+
"clear", "clip", "color", "color-profile", "column-count", "column-fill",
|
|
468
|
+
"column-gap", "column-rule", "column-rule-color", "column-rule-style",
|
|
469
|
+
"column-rule-width", "column-span", "column-width", "columns", "contain",
|
|
470
|
+
"content", "counter-increment", "counter-reset", "crop", "cue", "cue-after",
|
|
471
|
+
"cue-before", "cursor", "direction", "display", "dominant-baseline",
|
|
472
|
+
"drop-initial-after-adjust", "drop-initial-after-align",
|
|
473
|
+
"drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size",
|
|
474
|
+
"drop-initial-value", "elevation", "empty-cells", "fit", "fit-content", "fit-position",
|
|
475
|
+
"flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow",
|
|
476
|
+
"flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into",
|
|
477
|
+
"font", "font-family", "font-feature-settings", "font-kerning",
|
|
478
|
+
"font-language-override", "font-optical-sizing", "font-size",
|
|
479
|
+
"font-size-adjust", "font-stretch", "font-style", "font-synthesis",
|
|
480
|
+
"font-variant", "font-variant-alternates", "font-variant-caps",
|
|
481
|
+
"font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric",
|
|
482
|
+
"font-variant-position", "font-variation-settings", "font-weight", "gap",
|
|
483
|
+
"grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-rows",
|
|
484
|
+
"grid-column", "grid-column-end", "grid-column-gap", "grid-column-start",
|
|
485
|
+
"grid-gap", "grid-row", "grid-row-end", "grid-row-gap", "grid-row-start",
|
|
486
|
+
"grid-template", "grid-template-areas", "grid-template-columns",
|
|
487
|
+
"grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon",
|
|
488
|
+
"image-orientation", "image-rendering", "image-resolution", "inline-box-align",
|
|
489
|
+
"inset", "inset-block", "inset-block-end", "inset-block-start", "inset-inline",
|
|
490
|
+
"inset-inline-end", "inset-inline-start", "isolation", "justify-content",
|
|
491
|
+
"justify-items", "justify-self", "left", "letter-spacing", "line-break",
|
|
492
|
+
"line-height", "line-height-step", "line-stacking", "line-stacking-ruby",
|
|
493
|
+
"line-stacking-shift", "line-stacking-strategy", "list-style",
|
|
494
|
+
"list-style-image", "list-style-position", "list-style-type", "margin",
|
|
495
|
+
"margin-bottom", "margin-left", "margin-right", "margin-top", "marks",
|
|
496
|
+
"marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed",
|
|
497
|
+
"marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode",
|
|
498
|
+
"mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type",
|
|
499
|
+
"max-block-size", "max-height", "max-inline-size",
|
|
500
|
+
"max-width", "min-block-size", "min-height", "min-inline-size", "min-width",
|
|
501
|
+
"mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right",
|
|
502
|
+
"nav-up", "object-fit", "object-position", "offset", "offset-anchor",
|
|
503
|
+
"offset-distance", "offset-path", "offset-position", "offset-rotate",
|
|
504
|
+
"opacity", "order", "orphans", "outline", "outline-color", "outline-offset",
|
|
505
|
+
"outline-style", "outline-width", "overflow", "overflow-style",
|
|
506
|
+
"overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom",
|
|
507
|
+
"padding-left", "padding-right", "padding-top", "page", "page-break-after",
|
|
508
|
+
"page-break-before", "page-break-inside", "page-policy", "pause",
|
|
509
|
+
"pause-after", "pause-before", "perspective", "perspective-origin", "pitch",
|
|
510
|
+
"pitch-range", "place-content", "place-items", "place-self", "play-during",
|
|
511
|
+
"position", "presentation-level", "punctuation-trim", "quotes",
|
|
512
|
+
"region-break-after", "region-break-before", "region-break-inside",
|
|
513
|
+
"region-fragment", "rendering-intent", "resize", "rest", "rest-after",
|
|
514
|
+
"rest-before", "richness", "right", "rotate", "rotation", "rotation-point",
|
|
515
|
+
"row-gap", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span",
|
|
516
|
+
"scale", "scroll-behavior", "scroll-margin", "scroll-margin-block",
|
|
517
|
+
"scroll-margin-block-end", "scroll-margin-block-start", "scroll-margin-bottom",
|
|
518
|
+
"scroll-margin-inline", "scroll-margin-inline-end",
|
|
519
|
+
"scroll-margin-inline-start", "scroll-margin-left", "scroll-margin-right",
|
|
520
|
+
"scroll-margin-top", "scroll-padding", "scroll-padding-block",
|
|
521
|
+
"scroll-padding-block-end", "scroll-padding-block-start",
|
|
522
|
+
"scroll-padding-bottom", "scroll-padding-inline", "scroll-padding-inline-end",
|
|
523
|
+
"scroll-padding-inline-start", "scroll-padding-left", "scroll-padding-right",
|
|
524
|
+
"scroll-padding-top", "scroll-snap-align", "scroll-snap-type",
|
|
525
|
+
"shape-image-threshold", "shape-inside", "shape-margin", "shape-outside",
|
|
526
|
+
"size", "speak", "speak-as", "speak-header", "speak-numeral",
|
|
527
|
+
"speak-punctuation", "speech-rate", "stress", "string-set", "tab-size",
|
|
528
|
+
"table-layout", "target", "target-name", "target-new", "target-position",
|
|
529
|
+
"text-align", "text-align-last", "text-combine-upright", "text-decoration",
|
|
530
|
+
"text-decoration-color", "text-decoration-line", "text-decoration-skip",
|
|
531
|
+
"text-decoration-skip-ink", "text-decoration-style", "text-emphasis",
|
|
532
|
+
"text-emphasis-color", "text-emphasis-position", "text-emphasis-style",
|
|
533
|
+
"text-height", "text-indent", "text-justify", "text-orientation",
|
|
534
|
+
"text-outline", "text-overflow", "text-rendering", "text-shadow",
|
|
535
|
+
"text-size-adjust", "text-space-collapse", "text-transform",
|
|
536
|
+
"text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin",
|
|
537
|
+
"transform-style", "transition", "transition-delay", "transition-duration",
|
|
538
|
+
"transition-property", "transition-timing-function", "translate",
|
|
539
|
+
"unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance",
|
|
540
|
+
"voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate",
|
|
541
|
+
"voice-stress", "voice-volume", "volume", "white-space", "widows", "width",
|
|
542
|
+
"will-change", "word-break", "word-spacing", "word-wrap", "writing-mode", "z-index",
|
|
543
|
+
// SVG-specific
|
|
544
|
+
"clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",
|
|
545
|
+
"flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
|
|
546
|
+
"color-interpolation", "color-interpolation-filters",
|
|
547
|
+
"color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
|
|
548
|
+
"marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke",
|
|
549
|
+
"stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
|
|
550
|
+
"stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
|
|
551
|
+
"baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
|
|
552
|
+
"glyph-orientation-vertical", "text-anchor", "writing-mode",
|
|
553
|
+
], propertyKeywords = keySet(propertyKeywords_);
|
|
554
|
+
|
|
555
|
+
var nonStandardPropertyKeywords_ = [
|
|
556
|
+
"accent-color", "aspect-ratio", "border-block", "border-block-color", "border-block-end",
|
|
557
|
+
"border-block-end-color", "border-block-end-style", "border-block-end-width",
|
|
558
|
+
"border-block-start", "border-block-start-color", "border-block-start-style",
|
|
559
|
+
"border-block-start-width", "border-block-style", "border-block-width",
|
|
560
|
+
"border-inline", "border-inline-color", "border-inline-end",
|
|
561
|
+
"border-inline-end-color", "border-inline-end-style",
|
|
562
|
+
"border-inline-end-width", "border-inline-start", "border-inline-start-color",
|
|
563
|
+
"border-inline-start-style", "border-inline-start-width",
|
|
564
|
+
"border-inline-style", "border-inline-width", "content-visibility", "margin-block",
|
|
565
|
+
"margin-block-end", "margin-block-start", "margin-inline", "margin-inline-end",
|
|
566
|
+
"margin-inline-start", "overflow-anchor", "overscroll-behavior", "padding-block", "padding-block-end",
|
|
567
|
+
"padding-block-start", "padding-inline", "padding-inline-end",
|
|
568
|
+
"padding-inline-start", "scroll-snap-stop", "scrollbar-3d-light-color",
|
|
569
|
+
"scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color",
|
|
570
|
+
"scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color",
|
|
571
|
+
"scrollbar-track-color", "searchfield-cancel-button", "searchfield-decoration",
|
|
572
|
+
"searchfield-results-button", "searchfield-results-decoration", "shape-inside", "zoom"
|
|
573
|
+
], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);
|
|
574
|
+
|
|
575
|
+
var fontProperties_ = [
|
|
576
|
+
"font-display", "font-family", "src", "unicode-range", "font-variant",
|
|
577
|
+
"font-feature-settings", "font-stretch", "font-weight", "font-style"
|
|
578
|
+
], fontProperties = keySet(fontProperties_);
|
|
579
|
+
|
|
580
|
+
var counterDescriptors_ = [
|
|
581
|
+
"additive-symbols", "fallback", "negative", "pad", "prefix", "range",
|
|
582
|
+
"speak-as", "suffix", "symbols", "system"
|
|
583
|
+
], counterDescriptors = keySet(counterDescriptors_);
|
|
584
|
+
|
|
585
|
+
var colorKeywords_ = [
|
|
586
|
+
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",
|
|
587
|
+
"bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown",
|
|
588
|
+
"burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue",
|
|
589
|
+
"cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod",
|
|
590
|
+
"darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen",
|
|
591
|
+
"darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen",
|
|
592
|
+
"darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet",
|
|
593
|
+
"deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick",
|
|
594
|
+
"floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite",
|
|
595
|
+
"gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew",
|
|
596
|
+
"hotpink", "indianred", "indigo", "ivory", "khaki", "lavender",
|
|
597
|
+
"lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral",
|
|
598
|
+
"lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink",
|
|
599
|
+
"lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey",
|
|
600
|
+
"lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta",
|
|
601
|
+
"maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple",
|
|
602
|
+
"mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise",
|
|
603
|
+
"mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin",
|
|
604
|
+
"navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered",
|
|
605
|
+
"orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred",
|
|
606
|
+
"papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue",
|
|
607
|
+
"purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown",
|
|
608
|
+
"salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue",
|
|
609
|
+
"slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan",
|
|
610
|
+
"teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
|
|
611
|
+
"whitesmoke", "yellow", "yellowgreen"
|
|
612
|
+
], colorKeywords = keySet(colorKeywords_);
|
|
613
|
+
|
|
614
|
+
var valueKeywords_ = [
|
|
615
|
+
"above", "absolute", "activeborder", "additive", "activecaption", "afar",
|
|
616
|
+
"after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",
|
|
617
|
+
"always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
|
|
618
|
+
"arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",
|
|
619
|
+
"avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "binary",
|
|
620
|
+
"bengali", "blink", "block", "block-axis", "blur", "bold", "bolder", "border", "border-box",
|
|
621
|
+
"both", "bottom", "break", "break-all", "break-word", "brightness", "bullets", "button",
|
|
622
|
+
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",
|
|
623
|
+
"capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
|
|
624
|
+
"cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
|
|
625
|
+
"cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
|
|
626
|
+
"col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
|
|
627
|
+
"compact", "condensed", "conic-gradient", "contain", "content", "contents",
|
|
628
|
+
"content-box", "context-menu", "continuous", "contrast", "copy", "counter", "counters", "cover", "crop",
|
|
629
|
+
"cross", "crosshair", "cubic-bezier", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
|
|
630
|
+
"decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
|
|
631
|
+
"destination-in", "destination-out", "destination-over", "devanagari", "difference",
|
|
632
|
+
"disc", "discard", "disclosure-closed", "disclosure-open", "document",
|
|
633
|
+
"dot-dash", "dot-dot-dash",
|
|
634
|
+
"dotted", "double", "down", "drop-shadow", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
|
|
635
|
+
"element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
|
|
636
|
+
"ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
|
|
637
|
+
"ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
|
|
638
|
+
"ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
|
|
639
|
+
"ethiopic-halehame-gez", "ethiopic-halehame-om-et",
|
|
640
|
+
"ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
|
|
641
|
+
"ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
|
|
642
|
+
"ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
|
|
643
|
+
"extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
|
|
644
|
+
"forwards", "from", "geometricPrecision", "georgian", "grayscale", "graytext", "grid", "groove",
|
|
645
|
+
"gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",
|
|
646
|
+
"help", "hidden", "hide", "higher", "highlight", "highlighttext",
|
|
647
|
+
"hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "hue-rotate", "icon", "ignore",
|
|
648
|
+
"inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
|
|
649
|
+
"infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
|
|
650
|
+
"inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
|
|
651
|
+
"italic", "japanese-formal", "japanese-informal", "justify", "kannada",
|
|
652
|
+
"katakana", "katakana-iroha", "keep-all", "khmer",
|
|
653
|
+
"korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
|
|
654
|
+
"landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
|
|
655
|
+
"line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",
|
|
656
|
+
"local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
|
|
657
|
+
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
|
|
658
|
+
"lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "manipulation", "match", "matrix", "matrix3d",
|
|
659
|
+
"media-play-button", "media-slider", "media-sliderthumb",
|
|
660
|
+
"media-volume-slider", "media-volume-sliderthumb", "medium",
|
|
661
|
+
"menu", "menulist", "menulist-button",
|
|
662
|
+
"menutext", "message-box", "middle", "min-intrinsic",
|
|
663
|
+
"mix", "mongolian", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "myanmar", "n-resize",
|
|
664
|
+
"narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
|
|
665
|
+
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
|
|
666
|
+
"ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote",
|
|
667
|
+
"optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
|
|
668
|
+
"outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
|
|
669
|
+
"painted", "page", "paused", "persian", "perspective", "pinch-zoom", "plus-darker", "plus-lighter",
|
|
670
|
+
"pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
|
|
671
|
+
"progress", "push-button", "radial-gradient", "radio", "read-only",
|
|
672
|
+
"read-write", "read-write-plaintext-only", "rectangle", "region",
|
|
673
|
+
"relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient",
|
|
674
|
+
"repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse",
|
|
675
|
+
"rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
|
|
676
|
+
"rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
|
|
677
|
+
"s-resize", "sans-serif", "saturate", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
|
|
678
|
+
"scroll", "scrollbar", "scroll-position", "se-resize", "searchfield",
|
|
679
|
+
"searchfield-cancel-button", "searchfield-decoration",
|
|
680
|
+
"searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end",
|
|
681
|
+
"semi-condensed", "semi-expanded", "separate", "sepia", "serif", "show", "sidama",
|
|
682
|
+
"simp-chinese-formal", "simp-chinese-informal", "single",
|
|
683
|
+
"skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
|
|
684
|
+
"slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
|
|
685
|
+
"small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
|
|
686
|
+
"source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square",
|
|
687
|
+
"square-button", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub",
|
|
688
|
+
"subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table",
|
|
689
|
+
"table-caption", "table-cell", "table-column", "table-column-group",
|
|
690
|
+
"table-footer-group", "table-header-group", "table-row", "table-row-group",
|
|
691
|
+
"tamil",
|
|
692
|
+
"telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
|
|
693
|
+
"thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
|
|
694
|
+
"threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
|
|
695
|
+
"tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
|
|
696
|
+
"trad-chinese-formal", "trad-chinese-informal", "transform",
|
|
697
|
+
"translate", "translate3d", "translateX", "translateY", "translateZ",
|
|
698
|
+
"transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up",
|
|
699
|
+
"upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
|
|
700
|
+
"upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
|
|
701
|
+
"var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted",
|
|
702
|
+
"visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
|
|
703
|
+
"window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",
|
|
704
|
+
"xx-large", "xx-small"
|
|
705
|
+
], valueKeywords = keySet(valueKeywords_);
|
|
706
|
+
|
|
707
|
+
var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
|
|
708
|
+
.concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
|
|
709
|
+
.concat(valueKeywords_);
|
|
710
|
+
|
|
711
|
+
const keywords = {properties: propertyKeywords_, colors: colorKeywords_,
|
|
712
|
+
fonts: fontProperties_, values: valueKeywords_, all: allWords};
|
|
713
|
+
|
|
714
|
+
const defaults = {
|
|
715
|
+
documentTypes: documentTypes,
|
|
716
|
+
mediaTypes: mediaTypes,
|
|
717
|
+
mediaFeatures: mediaFeatures,
|
|
718
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
719
|
+
propertyKeywords: propertyKeywords,
|
|
720
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
721
|
+
fontProperties: fontProperties,
|
|
722
|
+
counterDescriptors: counterDescriptors,
|
|
723
|
+
colorKeywords: colorKeywords,
|
|
724
|
+
valueKeywords: valueKeywords,
|
|
725
|
+
tokenHooks: {
|
|
726
|
+
"/": function(stream, state) {
|
|
727
|
+
if (!stream.eat("*")) return false;
|
|
728
|
+
state.tokenize = tokenCComment;
|
|
729
|
+
return tokenCComment(stream, state);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
const css = mkCSS({name: "css"});
|
|
735
|
+
|
|
736
|
+
function tokenCComment(stream, state) {
|
|
737
|
+
var maybeEnd = false, ch;
|
|
738
|
+
while ((ch = stream.next()) != null) {
|
|
739
|
+
if (maybeEnd && ch == "/") {
|
|
740
|
+
state.tokenize = null;
|
|
741
|
+
break;
|
|
742
|
+
}
|
|
743
|
+
maybeEnd = (ch == "*");
|
|
744
|
+
}
|
|
745
|
+
return ["comment", "comment"];
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
const sCSS = mkCSS({
|
|
749
|
+
name: "scss",
|
|
750
|
+
mediaTypes: mediaTypes,
|
|
751
|
+
mediaFeatures: mediaFeatures,
|
|
752
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
753
|
+
propertyKeywords: propertyKeywords,
|
|
754
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
755
|
+
colorKeywords: colorKeywords,
|
|
756
|
+
valueKeywords: valueKeywords,
|
|
757
|
+
fontProperties: fontProperties,
|
|
758
|
+
allowNested: true,
|
|
759
|
+
lineComment: "//",
|
|
760
|
+
tokenHooks: {
|
|
761
|
+
"/": function(stream, state) {
|
|
762
|
+
if (stream.eat("/")) {
|
|
763
|
+
stream.skipToEnd();
|
|
764
|
+
return ["comment", "comment"];
|
|
765
|
+
} else if (stream.eat("*")) {
|
|
766
|
+
state.tokenize = tokenCComment;
|
|
767
|
+
return tokenCComment(stream, state);
|
|
768
|
+
} else {
|
|
769
|
+
return ["operator", "operator"];
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
":": function(stream) {
|
|
773
|
+
if (stream.match(/^\s*\{/, false))
|
|
774
|
+
return [null, null]
|
|
775
|
+
return false;
|
|
776
|
+
},
|
|
777
|
+
"$": function(stream) {
|
|
778
|
+
stream.match(/^[\w-]+/);
|
|
779
|
+
if (stream.match(/^\s*:/, false))
|
|
780
|
+
return ["def", "variable-definition"];
|
|
781
|
+
return ["variableName.special", "variable"];
|
|
782
|
+
},
|
|
783
|
+
"#": function(stream) {
|
|
784
|
+
if (!stream.eat("{")) return false;
|
|
785
|
+
return [null, "interpolation"];
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
|
|
790
|
+
const less = mkCSS({
|
|
791
|
+
name: "less",
|
|
792
|
+
mediaTypes: mediaTypes,
|
|
793
|
+
mediaFeatures: mediaFeatures,
|
|
794
|
+
mediaValueKeywords: mediaValueKeywords,
|
|
795
|
+
propertyKeywords: propertyKeywords,
|
|
796
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
797
|
+
colorKeywords: colorKeywords,
|
|
798
|
+
valueKeywords: valueKeywords,
|
|
799
|
+
fontProperties: fontProperties,
|
|
800
|
+
allowNested: true,
|
|
801
|
+
lineComment: "//",
|
|
802
|
+
tokenHooks: {
|
|
803
|
+
"/": function(stream, state) {
|
|
804
|
+
if (stream.eat("/")) {
|
|
805
|
+
stream.skipToEnd();
|
|
806
|
+
return ["comment", "comment"];
|
|
807
|
+
} else if (stream.eat("*")) {
|
|
808
|
+
state.tokenize = tokenCComment;
|
|
809
|
+
return tokenCComment(stream, state);
|
|
810
|
+
} else {
|
|
811
|
+
return ["operator", "operator"];
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"@": function(stream) {
|
|
815
|
+
if (stream.eat("{")) return [null, "interpolation"];
|
|
816
|
+
if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false;
|
|
817
|
+
stream.eatWhile(/[\w\\\-]/);
|
|
818
|
+
if (stream.match(/^\s*:/, false))
|
|
819
|
+
return ["def", "variable-definition"];
|
|
820
|
+
return ["variableName", "variable"];
|
|
821
|
+
},
|
|
822
|
+
"&": function() {
|
|
823
|
+
return ["atom", "atom"];
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
const gss = mkCSS({
|
|
829
|
+
name: "gss",
|
|
830
|
+
documentTypes: documentTypes,
|
|
831
|
+
mediaTypes: mediaTypes,
|
|
832
|
+
mediaFeatures: mediaFeatures,
|
|
833
|
+
propertyKeywords: propertyKeywords,
|
|
834
|
+
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
|
|
835
|
+
fontProperties: fontProperties,
|
|
836
|
+
counterDescriptors: counterDescriptors,
|
|
837
|
+
colorKeywords: colorKeywords,
|
|
838
|
+
valueKeywords: valueKeywords,
|
|
839
|
+
supportsAtComponent: true,
|
|
840
|
+
tokenHooks: {
|
|
841
|
+
"/": function(stream, state) {
|
|
842
|
+
if (!stream.eat("*")) return false;
|
|
843
|
+
state.tokenize = tokenCComment;
|
|
844
|
+
return tokenCComment(stream, state);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
});
|
|
848
|
+
|
|
849
|
+
exports.css = css;
|
|
850
|
+
exports.gss = gss;
|
|
851
|
+
exports.keywords = keywords;
|
|
852
|
+
exports.less = less;
|
|
853
|
+
exports.mkCSS = mkCSS;
|
|
854
|
+
exports.sCSS = sCSS;
|
|
855
|
+
//# sourceMappingURL=css-WH69cXzo.js.map
|