@openspecui/web 0.9.0 → 0.9.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.
- package/dist-ssg/client/.vite/ssr-manifest.json +1753 -0
- package/dist-ssg/client/assets/abap-BdImnpbu.js +1 -0
- package/dist-ssg/client/assets/actionscript-3-CfeIJUat.js +1 -0
- package/dist-ssg/client/assets/ada-bCR0ucgS.js +1 -0
- package/dist-ssg/client/assets/andromeeda-C-Jbm3Hp.js +1 -0
- package/dist-ssg/client/assets/angular-html-CU67Zn6k.js +1 -0
- package/dist-ssg/client/assets/angular-ts-BwZT4LLn.js +1 -0
- package/dist-ssg/client/assets/apache-Pmp26Uib.js +1 -0
- package/dist-ssg/client/assets/apex-DDbsPZ6N.js +1 -0
- package/dist-ssg/client/assets/apl-B4CMkyY2.js +1 -0
- package/dist-ssg/client/assets/apl-dKokRX4l.js +1 -0
- package/dist-ssg/client/assets/applescript-Co6uUVPk.js +1 -0
- package/dist-ssg/client/assets/ara-BRHolxvo.js +1 -0
- package/dist-ssg/client/assets/asciiarmor-Df11BRmG.js +1 -0
- package/dist-ssg/client/assets/asciidoc-Dv7Oe6Be.js +1 -0
- package/dist-ssg/client/assets/asm-D_Q5rh1f.js +1 -0
- package/dist-ssg/client/assets/asn1-EdZsLKOL.js +1 -0
- package/dist-ssg/client/assets/asterisk-B-8jnY81.js +1 -0
- package/dist-ssg/client/assets/astro-CbQHKStN.js +1 -0
- package/dist-ssg/client/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist-ssg/client/assets/awk-DMzUqQB5.js +1 -0
- package/dist-ssg/client/assets/ayu-dark-Cv9koXgw.js +1 -0
- package/dist-ssg/client/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist-ssg/client/assets/bat-BkioyH1T.js +1 -0
- package/dist-ssg/client/assets/beancount-k_qm7-4y.js +1 -0
- package/dist-ssg/client/assets/berry-uYugtg8r.js +1 -0
- package/dist-ssg/client/assets/bibtex-CHM0blh-.js +1 -0
- package/dist-ssg/client/assets/bicep-Bmn6On1c.js +1 -0
- package/dist-ssg/client/assets/blade-DVc8C-J4.js +1 -0
- package/dist-ssg/client/assets/brainfuck-C4LP7Hcl.js +1 -0
- package/dist-ssg/client/assets/bsl-BO_Y6i37.js +1 -0
- package/dist-ssg/client/assets/c-BIGW1oBm.js +1 -0
- package/dist-ssg/client/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist-ssg/client/assets/cairo-KRGpt6FW.js +1 -0
- package/dist-ssg/client/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- package/dist-ssg/client/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/dist-ssg/client/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/dist-ssg/client/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/dist-ssg/client/assets/clarity-D53aC0YG.js +1 -0
- package/dist-ssg/client/assets/clike-B9uivgTg.js +1 -0
- package/dist-ssg/client/assets/clojure-BMjYHr_A.js +1 -0
- package/dist-ssg/client/assets/clojure-P80f7IUj.js +1 -0
- package/dist-ssg/client/assets/cmake-BQqOBYOt.js +1 -0
- package/dist-ssg/client/assets/cmake-D1j8_8rp.js +1 -0
- package/dist-ssg/client/assets/cobol-CWcv1MsR.js +1 -0
- package/dist-ssg/client/assets/cobol-nwyudZeR.js +1 -0
- package/dist-ssg/client/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist-ssg/client/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist-ssg/client/assets/coffee-Ch7k5sss.js +1 -0
- package/dist-ssg/client/assets/coffeescript-S37ZYGWr.js +1 -0
- package/dist-ssg/client/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist-ssg/client/assets/commonlisp-DBKNyK5s.js +1 -0
- package/dist-ssg/client/assets/coq-DkFqJrB1.js +1 -0
- package/dist-ssg/client/assets/cpp-CofmeUqb.js +1 -0
- package/dist-ssg/client/assets/crystal-SjHAIU92.js +1 -0
- package/dist-ssg/client/assets/crystal-tKQVLTB8.js +1 -0
- package/dist-ssg/client/assets/csharp-K5feNrxe.js +1 -0
- package/dist-ssg/client/assets/css-BnMrqG3P.js +1 -0
- package/dist-ssg/client/assets/css-DPfMkruS.js +1 -0
- package/dist-ssg/client/assets/csv-fuZLfV_i.js +1 -0
- package/dist-ssg/client/assets/cue-D82EKSYY.js +1 -0
- package/dist-ssg/client/assets/cypher-COkxafJQ.js +1 -0
- package/dist-ssg/client/assets/cypher-C_CwsFkJ.js +1 -0
- package/dist-ssg/client/assets/d-85-TOEBH.js +1 -0
- package/dist-ssg/client/assets/d-pRatUO7H.js +1 -0
- package/dist-ssg/client/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist-ssg/client/assets/dart-CF10PKvl.js +1 -0
- package/dist-ssg/client/assets/dax-CEL-wOlO.js +1 -0
- package/dist-ssg/client/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist-ssg/client/assets/diff-D97Zzqfu.js +1 -0
- package/dist-ssg/client/assets/diff-DbItnlRl.js +1 -0
- package/dist-ssg/client/assets/docker-BcOcwvcX.js +1 -0
- package/dist-ssg/client/assets/dockerfile-BKs6k2Af.js +1 -0
- package/dist-ssg/client/assets/dotenv-Da5cRb03.js +1 -0
- package/dist-ssg/client/assets/dracula-BzJJZx-M.js +1 -0
- package/dist-ssg/client/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist-ssg/client/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist-ssg/client/assets/dtd-DF_7sFjM.js +1 -0
- package/dist-ssg/client/assets/dylan-DwRh75JA.js +1 -0
- package/dist-ssg/client/assets/ebnf-CDyGwa7X.js +1 -0
- package/dist-ssg/client/assets/ecl-Cabwm37j.js +1 -0
- package/dist-ssg/client/assets/edge-BkV0erSs.js +1 -0
- package/dist-ssg/client/assets/eiffel-CnydiIhH.js +1 -0
- package/dist-ssg/client/assets/elixir-CDX3lj18.js +1 -0
- package/dist-ssg/client/assets/elm-DbKCFpqz.js +1 -0
- package/dist-ssg/client/assets/elm-vLlmbW-K.js +1 -0
- package/dist-ssg/client/assets/emacs-lisp-C9XAeP06.js +1 -0
- package/dist-ssg/client/assets/erb-BOJIQeun.js +1 -0
- package/dist-ssg/client/assets/erlang-BNw1qcRV.js +1 -0
- package/dist-ssg/client/assets/erlang-DsQrWhSR.js +1 -0
- package/dist-ssg/client/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist-ssg/client/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist-ssg/client/assets/factor-kuTfRLto.js +1 -0
- package/dist-ssg/client/assets/fcl-Kvtd6kyn.js +1 -0
- package/dist-ssg/client/assets/fennel-BYunw83y.js +1 -0
- package/dist-ssg/client/assets/fish-BvzEVeQv.js +1 -0
- package/dist-ssg/client/assets/fluent-C4IJs8-o.js +1 -0
- package/dist-ssg/client/assets/forth-Ffai-XNe.js +1 -0
- package/dist-ssg/client/assets/fortran-DYz_wnZ1.js +1 -0
- package/dist-ssg/client/assets/fortran-fixed-form-BZjJHVRy.js +1 -0
- package/dist-ssg/client/assets/fortran-free-form-D22FLkUw.js +1 -0
- package/dist-ssg/client/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist-ssg/client/assets/gas-Bneqetm1.js +1 -0
- package/dist-ssg/client/assets/gdresource-B7Tvp0Sc.js +1 -0
- package/dist-ssg/client/assets/gdscript-DTMYz4Jt.js +1 -0
- package/dist-ssg/client/assets/gdshader-DkwncUOv.js +1 -0
- package/dist-ssg/client/assets/genie-D0YGMca9.js +1 -0
- package/dist-ssg/client/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist-ssg/client/assets/gherkin-heZmZLOM.js +1 -0
- package/dist-ssg/client/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist-ssg/client/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist-ssg/client/assets/github-dark-DHJKELXO.js +1 -0
- package/dist-ssg/client/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist-ssg/client/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist-ssg/client/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist-ssg/client/assets/github-light-DAi9KRSo.js +1 -0
- package/dist-ssg/client/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist-ssg/client/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist-ssg/client/assets/gleam-BspZqrRM.js +1 -0
- package/dist-ssg/client/assets/glimmer-js-Rg0-pVw9.js +1 -0
- package/dist-ssg/client/assets/glimmer-ts-U6CK756n.js +1 -0
- package/dist-ssg/client/assets/glsl-DplSGwfg.js +1 -0
- package/dist-ssg/client/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist-ssg/client/assets/go-Dn2_MT6a.js +1 -0
- package/dist-ssg/client/assets/graphql-ChdNCCLP.js +1 -0
- package/dist-ssg/client/assets/groovy-D9Dt4D0W.js +1 -0
- package/dist-ssg/client/assets/groovy-gcz8RCvz.js +1 -0
- package/dist-ssg/client/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist-ssg/client/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist-ssg/client/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist-ssg/client/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist-ssg/client/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist-ssg/client/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist-ssg/client/assets/hack-CaT9iCJl.js +1 -0
- package/dist-ssg/client/assets/haml-B8DHNrY2.js +1 -0
- package/dist-ssg/client/assets/handlebars-BL8al0AC.js +1 -0
- package/dist-ssg/client/assets/haskell-Cw1EW3IL.js +1 -0
- package/dist-ssg/client/assets/haskell-Df6bDoY_.js +1 -0
- package/dist-ssg/client/assets/haxe-CzTSHFRz.js +1 -0
- package/dist-ssg/client/assets/haxe-H-WmDvRZ.js +1 -0
- package/dist-ssg/client/assets/hcl-BWvSN4gD.js +1 -0
- package/dist-ssg/client/assets/hjson-D5-asLiD.js +1 -0
- package/dist-ssg/client/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist-ssg/client/assets/houston-DnULxvSX.js +1 -0
- package/dist-ssg/client/assets/html-GMplVEZG.js +1 -0
- package/dist-ssg/client/assets/html-derivative-BFtXZ54Q.js +1 -0
- package/dist-ssg/client/assets/http-DBlCnlav.js +1 -0
- package/dist-ssg/client/assets/http-jrhK8wxY.js +1 -0
- package/dist-ssg/client/assets/hurl-irOxFIW8.js +1 -0
- package/dist-ssg/client/assets/hxml-Bvhsp5Yf.js +1 -0
- package/dist-ssg/client/assets/hy-DFXneXwc.js +1 -0
- package/dist-ssg/client/assets/idl-BEugSyMb.js +1 -0
- package/dist-ssg/client/assets/imba-DGztddWO.js +1 -0
- package/dist-ssg/client/assets/index-8c6bEJ99.js +1 -0
- package/dist-ssg/client/assets/index-AbWe21oh.js +2 -0
- package/dist-ssg/client/assets/index-ArhptQw0.js +1 -0
- package/dist-ssg/client/assets/index-B1hpa--1.js +3 -0
- package/dist-ssg/client/assets/index-Bafja8o4.js +1 -0
- package/dist-ssg/client/assets/index-Bp00uZNc.js +1 -0
- package/dist-ssg/client/assets/index-BsTieXqQ.js +1 -0
- package/dist-ssg/client/assets/index-BvGAWAqS.js +1 -0
- package/dist-ssg/client/assets/index-CCfVkFzN.js +1 -0
- package/dist-ssg/client/assets/index-D-Urq2hl.css +1 -0
- package/dist-ssg/client/assets/index-D3mXuuih.js +1 -0
- package/dist-ssg/client/assets/index-DFOLYN6W.js +1 -0
- package/dist-ssg/client/assets/index-DpxkOmNJ.js +7 -0
- package/dist-ssg/client/assets/index-YZ-iXB95.js +309 -0
- package/dist-ssg/client/assets/index-eA_XNQ_L.js +1 -0
- package/dist-ssg/client/assets/index-ftYom_wU.js +1 -0
- package/dist-ssg/client/assets/index-gvPT4BlL.js +1 -0
- package/dist-ssg/client/assets/ini-BEwlwnbL.js +1 -0
- package/dist-ssg/client/assets/java-CylS5w8V.js +1 -0
- package/dist-ssg/client/assets/javascript-iXu5QeM3.js +1 -0
- package/dist-ssg/client/assets/javascript-wDzz0qaB.js +1 -0
- package/dist-ssg/client/assets/jinja-4LBKfQ-Z.js +1 -0
- package/dist-ssg/client/assets/jison-wvAkD_A8.js +1 -0
- package/dist-ssg/client/assets/json-Cp-IABpG.js +1 -0
- package/dist-ssg/client/assets/json5-C9tS-k6U.js +1 -0
- package/dist-ssg/client/assets/jsonc-Des-eS-w.js +1 -0
- package/dist-ssg/client/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist-ssg/client/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist-ssg/client/assets/jssm-C2t-YnRu.js +1 -0
- package/dist-ssg/client/assets/jsx-g9-lgVsj.js +1 -0
- package/dist-ssg/client/assets/julia-C8NyazO9.js +1 -0
- package/dist-ssg/client/assets/julia-DuME0IfC.js +1 -0
- package/dist-ssg/client/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist-ssg/client/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist-ssg/client/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist-ssg/client/assets/kdl-DV7GczEv.js +1 -0
- package/dist-ssg/client/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist-ssg/client/assets/kusto-BvAqAH-y.js +1 -0
- package/dist-ssg/client/assets/laserwave-DUszq2jm.js +1 -0
- package/dist-ssg/client/assets/latex-BdAV_C_H.js +1 -0
- package/dist-ssg/client/assets/lean-Bc6EcWN3.js +1 -0
- package/dist-ssg/client/assets/less-B1dDrJ26.js +1 -0
- package/dist-ssg/client/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist-ssg/client/assets/liquid-DYVedYrR.js +1 -0
- package/dist-ssg/client/assets/livescript-BwQOo05w.js +1 -0
- package/dist-ssg/client/assets/llvm-BtvRca6l.js +1 -0
- package/dist-ssg/client/assets/log-2UxHyX5q.js +1 -0
- package/dist-ssg/client/assets/logo-BtOb2qkB.js +1 -0
- package/dist-ssg/client/assets/lua-BbnMAYS6.js +1 -0
- package/dist-ssg/client/assets/lua-BgMRiT3U.js +1 -0
- package/dist-ssg/client/assets/luau-CXu1NL6O.js +1 -0
- package/dist-ssg/client/assets/make-CHLpvVh8.js +1 -0
- package/dist-ssg/client/assets/markdown-Cvjx9yec.js +1 -0
- package/dist-ssg/client/assets/marko-CPi9NSCl.js +1 -0
- package/dist-ssg/client/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist-ssg/client/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist-ssg/client/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist-ssg/client/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist-ssg/client/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist-ssg/client/assets/mathematica-DTrFuWx2.js +1 -0
- package/dist-ssg/client/assets/matlab-D7o27uSR.js +1 -0
- package/dist-ssg/client/assets/mbox-CNhZ1qSd.js +1 -0
- package/dist-ssg/client/assets/mdc-DUICxH0z.js +1 -0
- package/dist-ssg/client/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist-ssg/client/assets/mermaid-DKYwYmdq.js +1 -0
- package/dist-ssg/client/assets/min-dark-CafNBF8u.js +1 -0
- package/dist-ssg/client/assets/min-light-CTRr51gU.js +1 -0
- package/dist-ssg/client/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist-ssg/client/assets/mirc-CjQqDB4T.js +1 -0
- package/dist-ssg/client/assets/mllike-CXdrOF99.js +1 -0
- package/dist-ssg/client/assets/modelica-Dc1JOy9r.js +1 -0
- package/dist-ssg/client/assets/mojo-1DNp92w6.js +1 -0
- package/dist-ssg/client/assets/monokai-D4h5O-jR.js +1 -0
- package/dist-ssg/client/assets/move-Bu9oaDYs.js +1 -0
- package/dist-ssg/client/assets/mscgen-BA5vi2Kp.js +1 -0
- package/dist-ssg/client/assets/mumps-BT43cFF4.js +1 -0
- package/dist-ssg/client/assets/narrat-DRg8JJMk.js +1 -0
- package/dist-ssg/client/assets/nextflow-BrzmwbiE.js +1 -0
- package/dist-ssg/client/assets/nginx-DdIZxoE0.js +1 -0
- package/dist-ssg/client/assets/nginx-DknmC5AR.js +1 -0
- package/dist-ssg/client/assets/night-owl-C39BiMTA.js +1 -0
- package/dist-ssg/client/assets/nim-CVrawwO9.js +1 -0
- package/dist-ssg/client/assets/nix-c8nO5XWb.js +1 -0
- package/dist-ssg/client/assets/nord-Ddv68eIx.js +1 -0
- package/dist-ssg/client/assets/nsis-LdVXkNf5.js +1 -0
- package/dist-ssg/client/assets/ntriples-BfvgReVJ.js +1 -0
- package/dist-ssg/client/assets/nushell-C-sUppwS.js +1 -0
- package/dist-ssg/client/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist-ssg/client/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist-ssg/client/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist-ssg/client/assets/octave-Ck1zUtKM.js +1 -0
- package/dist-ssg/client/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- package/dist-ssg/client/assets/one-light-PoHY5YXO.js +1 -0
- package/dist-ssg/client/assets/openscad-C4EeE6gA.js +1 -0
- package/dist-ssg/client/assets/oz-BzwKVEFT.js +1 -0
- package/dist-ssg/client/assets/pascal--L3eBynH.js +1 -0
- package/dist-ssg/client/assets/pascal-D93ZcfNL.js +1 -0
- package/dist-ssg/client/assets/perl-C0TMdlhV.js +1 -0
- package/dist-ssg/client/assets/perl-CdXCOZ3F.js +1 -0
- package/dist-ssg/client/assets/php-CDn_0X-4.js +1 -0
- package/dist-ssg/client/assets/pig-CevX1Tat.js +1 -0
- package/dist-ssg/client/assets/pkl-u5AG7uiY.js +1 -0
- package/dist-ssg/client/assets/plastic-3e1v2bzS.js +1 -0
- package/dist-ssg/client/assets/plsql-ChMvpjG-.js +1 -0
- package/dist-ssg/client/assets/po-BTJTHyun.js +1 -0
- package/dist-ssg/client/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist-ssg/client/assets/polar-C0HS_06l.js +1 -0
- package/dist-ssg/client/assets/postcss-CXtECtnM.js +1 -0
- package/dist-ssg/client/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist-ssg/client/assets/powershell-CFHJl5sT.js +1 -0
- package/dist-ssg/client/assets/powershell-Dpen1YoG.js +1 -0
- package/dist-ssg/client/assets/prisma-Dd19v3D-.js +1 -0
- package/dist-ssg/client/assets/prolog-CbFg5uaA.js +1 -0
- package/dist-ssg/client/assets/properties-C78fOPTZ.js +1 -0
- package/dist-ssg/client/assets/proto-DyJlTyXw.js +1 -0
- package/dist-ssg/client/assets/protobuf-ChK-085T.js +1 -0
- package/dist-ssg/client/assets/pug-CGlum2m_.js +1 -0
- package/dist-ssg/client/assets/pug-DeIclll2.js +1 -0
- package/dist-ssg/client/assets/puppet-BMWR74SV.js +1 -0
- package/dist-ssg/client/assets/puppet-DMA9R1ak.js +1 -0
- package/dist-ssg/client/assets/purescript-CklMAg4u.js +1 -0
- package/dist-ssg/client/assets/python-B6aJPvgy.js +1 -0
- package/dist-ssg/client/assets/python-BuPzkPfP.js +1 -0
- package/dist-ssg/client/assets/q-pXgVlZs6.js +1 -0
- package/dist-ssg/client/assets/qml-3beO22l8.js +1 -0
- package/dist-ssg/client/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist-ssg/client/assets/qss-IeuSbFQv.js +1 -0
- package/dist-ssg/client/assets/r-B6wPVr8A.js +1 -0
- package/dist-ssg/client/assets/r-DiinP2Uv.js +1 -0
- package/dist-ssg/client/assets/racket-BqYA7rlc.js +1 -0
- package/dist-ssg/client/assets/raku-DXvB9xmW.js +1 -0
- package/dist-ssg/client/assets/razor-CE9lU5zL.js +1 -0
- package/dist-ssg/client/assets/red-bN70gL4F.js +1 -0
- package/dist-ssg/client/assets/reg-C-SQnVFl.js +1 -0
- package/dist-ssg/client/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist-ssg/client/assets/rel-C3B-1QV4.js +1 -0
- package/dist-ssg/client/assets/riscv-BM1_JUlF.js +1 -0
- package/dist-ssg/client/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/dist-ssg/client/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- package/dist-ssg/client/assets/rose-pine-qdsjHGoJ.js +1 -0
- package/dist-ssg/client/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist-ssg/client/assets/rpm-CTu-6PCP.js +1 -0
- package/dist-ssg/client/assets/rst-B0xPkSld.js +1 -0
- package/dist-ssg/client/assets/ruby-B2Rjki9n.js +1 -0
- package/dist-ssg/client/assets/ruby-BvKwtOVI.js +1 -0
- package/dist-ssg/client/assets/rust-B1yitclQ.js +1 -0
- package/dist-ssg/client/assets/sas-B4kiWyti.js +1 -0
- package/dist-ssg/client/assets/sas-cz2c8ADy.js +1 -0
- package/dist-ssg/client/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist-ssg/client/assets/scala-C151Ov-r.js +1 -0
- package/dist-ssg/client/assets/scheme-C41bIUwD.js +1 -0
- package/dist-ssg/client/assets/scheme-C98Dy4si.js +1 -0
- package/dist-ssg/client/assets/scss-OYdSNvt2.js +1 -0
- package/dist-ssg/client/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist-ssg/client/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist-ssg/client/assets/shell-CjFT_Tl9.js +1 -0
- package/dist-ssg/client/assets/shellscript-Yzrsuije.js +1 -0
- package/dist-ssg/client/assets/shellsession-BADoaaVG.js +1 -0
- package/dist-ssg/client/assets/sieve-C3Gn_uJK.js +1 -0
- package/dist-ssg/client/assets/simple-mode-GW_nhZxv.js +1 -0
- package/dist-ssg/client/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist-ssg/client/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist-ssg/client/assets/smalltalk-BERRCDM3.js +1 -0
- package/dist-ssg/client/assets/smalltalk-CnHTOXQT.js +1 -0
- package/dist-ssg/client/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist-ssg/client/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist-ssg/client/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist-ssg/client/assets/solidity-rGO070M0.js +1 -0
- package/dist-ssg/client/assets/solr-DehyRSwq.js +1 -0
- package/dist-ssg/client/assets/soy-Brmx7dQM.js +1 -0
- package/dist-ssg/client/assets/sparql-DkYu6x3z.js +1 -0
- package/dist-ssg/client/assets/sparql-rVzFXLq3.js +1 -0
- package/dist-ssg/client/assets/splunk-BtCnVYZw.js +1 -0
- package/dist-ssg/client/assets/spreadsheet-BCZA_wO0.js +1 -0
- package/dist-ssg/client/assets/sql-BLtJtn59.js +1 -0
- package/dist-ssg/client/assets/sql-D0XecflT.js +1 -0
- package/dist-ssg/client/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist-ssg/client/assets/stata-BH5u7GGu.js +1 -0
- package/dist-ssg/client/assets/stex-C3f8Ysf7.js +1 -0
- package/dist-ssg/client/assets/stylus-B533Al4x.js +1 -0
- package/dist-ssg/client/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist-ssg/client/assets/svelte-3Dk4HxPD.js +1 -0
- package/dist-ssg/client/assets/swift-BzpIVaGY.js +1 -0
- package/dist-ssg/client/assets/swift-Dg5xB15N.js +1 -0
- package/dist-ssg/client/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist-ssg/client/assets/system-verilog-CnnmHF94.js +1 -0
- package/dist-ssg/client/assets/systemd-4A_iFExJ.js +1 -0
- package/dist-ssg/client/assets/talonscript-CkByrt1z.js +1 -0
- package/dist-ssg/client/assets/tasl-QIJgUcNo.js +1 -0
- package/dist-ssg/client/assets/tcl-DVfN8rqt.js +1 -0
- package/dist-ssg/client/assets/tcl-dwOrl1Do.js +1 -0
- package/dist-ssg/client/assets/templ-W15q3VgB.js +1 -0
- package/dist-ssg/client/assets/terraform-BETggiCN.js +1 -0
- package/dist-ssg/client/assets/tex-CxkMU7Pf.js +1 -0
- package/dist-ssg/client/assets/textile-CnDTJFAw.js +1 -0
- package/dist-ssg/client/assets/tiddlywiki-DO-Gjzrf.js +1 -0
- package/dist-ssg/client/assets/tiki-DGYXhP31.js +1 -0
- package/dist-ssg/client/assets/tokyo-night-hegEt444.js +1 -0
- package/dist-ssg/client/assets/toml-Bm5Em-hy.js +1 -0
- package/dist-ssg/client/assets/toml-vGWfd6FD.js +1 -0
- package/dist-ssg/client/assets/troff-wAsdV37c.js +1 -0
- package/dist-ssg/client/assets/ts-tags-zn1MmPIZ.js +1 -0
- package/dist-ssg/client/assets/tsv-B_m7g4N7.js +1 -0
- package/dist-ssg/client/assets/tsx-COt5Ahok.js +1 -0
- package/dist-ssg/client/assets/ttcn-CfJYG6tj.js +1 -0
- package/dist-ssg/client/assets/ttcn-cfg-B9xdYoR4.js +1 -0
- package/dist-ssg/client/assets/turtle-B1tBg_DP.js +1 -0
- package/dist-ssg/client/assets/turtle-BsS91CYL.js +1 -0
- package/dist-ssg/client/assets/twig-CO9l9SDP.js +1 -0
- package/dist-ssg/client/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist-ssg/client/assets/typespec-BGHnOYBU.js +1 -0
- package/dist-ssg/client/assets/typst-DHCkPAjA.js +1 -0
- package/dist-ssg/client/assets/v-BcVCzyr7.js +1 -0
- package/dist-ssg/client/assets/vala-CsfeWuGM.js +1 -0
- package/dist-ssg/client/assets/vb-CmGdzxic.js +1 -0
- package/dist-ssg/client/assets/vb-D17OF-Vu.js +1 -0
- package/dist-ssg/client/assets/vbscript-BuJXcnF6.js +1 -0
- package/dist-ssg/client/assets/velocity-D8B20fx6.js +1 -0
- package/dist-ssg/client/assets/verilog-BQ8w6xss.js +1 -0
- package/dist-ssg/client/assets/verilog-C6RDOZhf.js +1 -0
- package/dist-ssg/client/assets/vesper-DU1UobuO.js +1 -0
- package/dist-ssg/client/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist-ssg/client/assets/vhdl-lSbBsy5d.js +1 -0
- package/dist-ssg/client/assets/viml-CJc9bBzg.js +1 -0
- package/dist-ssg/client/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist-ssg/client/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist-ssg/client/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist-ssg/client/assets/vue-DnHKYNfI.js +1 -0
- package/dist-ssg/client/assets/vue-html-CChd_i61.js +1 -0
- package/dist-ssg/client/assets/vue-vine-8moa0y9V.js +1 -0
- package/dist-ssg/client/assets/vyper-CDx5xZoG.js +1 -0
- package/dist-ssg/client/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist-ssg/client/assets/wasm-MzD3tlZU.js +1 -0
- package/dist-ssg/client/assets/webidl-ZXfAyPTL.js +1 -0
- package/dist-ssg/client/assets/wenyan-BV7otONQ.js +1 -0
- package/dist-ssg/client/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist-ssg/client/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist-ssg/client/assets/wit-5i3qLPDT.js +1 -0
- package/dist-ssg/client/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist-ssg/client/assets/xml-sdJ4AIDG.js +1 -0
- package/dist-ssg/client/assets/xquery-DzFWVndE.js +1 -0
- package/dist-ssg/client/assets/xsl-CtQFsRM5.js +1 -0
- package/dist-ssg/client/assets/yacas-BJ4BC0dw.js +1 -0
- package/dist-ssg/client/assets/yaml-Buea-lGh.js +1 -0
- package/dist-ssg/client/assets/z80-Hz9HOZM7.js +1 -0
- package/dist-ssg/client/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist-ssg/client/assets/zig-VOosw3JB.js +1 -0
- package/{index.html → dist-ssg/client/index.html} +2 -1
- package/dist-ssg/client/logo.svg +8 -0
- package/dist-ssg/client/openspec_pixel_dark.svg +89 -0
- package/dist-ssg/client/openspec_pixel_light.svg +89 -0
- package/dist-ssg/logo.svg +8 -0
- package/dist-ssg/openspec_pixel_dark.svg +89 -0
- package/dist-ssg/openspec_pixel_light.svg +89 -0
- package/dist-ssg/server/assets/abap-B7h4dtBh.js +7 -0
- package/dist-ssg/server/assets/actionscript-3-Bmm7RA3Y.js +7 -0
- package/dist-ssg/server/assets/ada-BZS802Se.js +7 -0
- package/dist-ssg/server/assets/andromeeda-CgKVBpjv.js +4 -0
- package/dist-ssg/server/assets/angular-html-BYG42TJr.js +42 -0
- package/dist-ssg/server/assets/angular-ts-BftcHvZ6.js +29 -0
- package/dist-ssg/server/assets/apache-D4roVlsU.js +7 -0
- package/dist-ssg/server/assets/apex-BnUNw4au.js +7 -0
- package/dist-ssg/server/assets/apl-CGZawg-A.js +18 -0
- package/dist-ssg/server/assets/apl-fqmucPXA.js +140 -0
- package/dist-ssg/server/assets/applescript-C43Knf0G.js +7 -0
- package/dist-ssg/server/assets/ara-DRBH84ND.js +7 -0
- package/dist-ssg/server/assets/asciiarmor-DucZyvP0.js +56 -0
- package/dist-ssg/server/assets/asciidoc-DAaa-hb3.js +7 -0
- package/dist-ssg/server/assets/asm-3tg4MVib.js +7 -0
- package/dist-ssg/server/assets/asn1-BnOEsgAm.js +144 -0
- package/dist-ssg/server/assets/asterisk-QAlztEwS.js +345 -0
- package/dist-ssg/server/assets/astro-BxdWOZvM.js +19 -0
- package/dist-ssg/server/assets/aurora-x-wJ4-eM2h.js +4 -0
- package/dist-ssg/server/assets/awk-ChreaG-G.js +7 -0
- package/dist-ssg/server/assets/ayu-dark-BEKp3oqs.js +4 -0
- package/dist-ssg/server/assets/ballerina-B0yt0TYU.js +7 -0
- package/dist-ssg/server/assets/bat-BzNgQIA7.js +7 -0
- package/dist-ssg/server/assets/beancount-aZWrE5WV.js +7 -0
- package/dist-ssg/server/assets/berry--Qc8OslH.js +7 -0
- package/dist-ssg/server/assets/bibtex-BLeFwAes.js +7 -0
- package/dist-ssg/server/assets/bicep-DbBeGdXQ.js +7 -0
- package/dist-ssg/server/assets/blade-nek5kqJ4.js +22 -0
- package/dist-ssg/server/assets/brainfuck-DZVCuF_t.js +53 -0
- package/dist-ssg/server/assets/bsl-DwPS0BId.js +9 -0
- package/dist-ssg/server/assets/c-C4VtT7JA.js +7 -0
- package/dist-ssg/server/assets/cadence-S_NtR5Dy.js +7 -0
- package/dist-ssg/server/assets/cairo-BtYx2aM5.js +9 -0
- package/dist-ssg/server/assets/catppuccin-frappe-C21OPQfC.js +4 -0
- package/dist-ssg/server/assets/catppuccin-latte-0ZtXlsrX.js +4 -0
- package/dist-ssg/server/assets/catppuccin-macchiato-BD_FR4sl.js +4 -0
- package/dist-ssg/server/assets/catppuccin-mocha-C653csR5.js +4 -0
- package/dist-ssg/server/assets/clarity-D2ViJC0i.js +7 -0
- package/dist-ssg/server/assets/clike-CTYGlS6x.js +799 -0
- package/dist-ssg/server/assets/clojure-BhXMqnxz.js +849 -0
- package/dist-ssg/server/assets/clojure-C_G4_w5x.js +7 -0
- package/dist-ssg/server/assets/cmake-BGaNd9E7.js +71 -0
- package/dist-ssg/server/assets/cmake-CDfQILeU.js +7 -0
- package/dist-ssg/server/assets/cobol-4yqQntpt.js +120 -0
- package/dist-ssg/server/assets/cobol-B8r1pfPr.js +13 -0
- package/dist-ssg/server/assets/codeowners-awy7PWCD.js +7 -0
- package/dist-ssg/server/assets/codeql-lfK8ppuq.js +7 -0
- package/dist-ssg/server/assets/coffee-XLjtuEYs.js +9 -0
- package/dist-ssg/server/assets/coffeescript-D2dXvhEc.js +308 -0
- package/dist-ssg/server/assets/common-lisp-DAq1kaby.js +7 -0
- package/dist-ssg/server/assets/commonlisp-CF_VNHQR.js +130 -0
- package/dist-ssg/server/assets/coq-l_JvzFJl.js +7 -0
- package/dist-ssg/server/assets/cpp-zh2ePAE_.js +22 -0
- package/dist-ssg/server/assets/crystal-BqBRy7Ec.js +19 -0
- package/dist-ssg/server/assets/crystal-DyuLTqLs.js +398 -0
- package/dist-ssg/server/assets/csharp-CrZ-_XjJ.js +7 -0
- package/dist-ssg/server/assets/css-BtVcDqlU.js +7 -0
- package/dist-ssg/server/assets/css-DkSyTW67.js +1772 -0
- package/dist-ssg/server/assets/csv-Ba84L8e5.js +7 -0
- package/dist-ssg/server/assets/cue-BFSVLV6N.js +7 -0
- package/dist-ssg/server/assets/cypher-DbUmWIxC.js +7 -0
- package/dist-ssg/server/assets/cypher-Dlu_3r4V.js +121 -0
- package/dist-ssg/server/assets/d-9qSZPw74.js +7 -0
- package/dist-ssg/server/assets/d-UURgV0Ux.js +179 -0
- package/dist-ssg/server/assets/dark-plus-DmZ1Dzd4.js +4 -0
- package/dist-ssg/server/assets/dart-CCSsOg9l.js +7 -0
- package/dist-ssg/server/assets/dax-CvsmLV-B.js +7 -0
- package/dist-ssg/server/assets/desktop-_xiGZ9X1.js +7 -0
- package/dist-ssg/server/assets/diff-BEdzuHlE.js +7 -0
- package/dist-ssg/server/assets/diff-B_Bi2Crb.js +25 -0
- package/dist-ssg/server/assets/docker-CUaLOm2I.js +7 -0
- package/dist-ssg/server/assets/dockerfile-Bvk733Ga.js +201 -0
- package/dist-ssg/server/assets/dotenv-Bb4iNxXK.js +7 -0
- package/dist-ssg/server/assets/dracula-B8-AVrwI.js +4 -0
- package/dist-ssg/server/assets/dracula-soft-BHeefow7.js +4 -0
- package/dist-ssg/server/assets/dream-maker-CNLQpoF-.js +7 -0
- package/dist-ssg/server/assets/dtd-Dy74G54E.js +114 -0
- package/dist-ssg/server/assets/dylan-TSb-Nfix.js +314 -0
- package/dist-ssg/server/assets/ebnf-4fKAGW3a.js +140 -0
- package/dist-ssg/server/assets/ecl-B59qGGVg.js +178 -0
- package/dist-ssg/server/assets/edge-CnHxQ_FD.js +15 -0
- package/dist-ssg/server/assets/eiffel-Dze7nlu3.js +134 -0
- package/dist-ssg/server/assets/elixir-B_LIBv5J.js +11 -0
- package/dist-ssg/server/assets/elm-BlO7pcFp.js +10 -0
- package/dist-ssg/server/assets/elm-DG7jkhNZ.js +176 -0
- package/dist-ssg/server/assets/emacs-lisp-4gdXY_g3.js +7 -0
- package/dist-ssg/server/assets/erb-DFirUQBO.js +28 -0
- package/dist-ssg/server/assets/erlang-BO6gOnGA.js +674 -0
- package/dist-ssg/server/assets/erlang-Ch5kuXHm.js +9 -0
- package/dist-ssg/server/assets/everforest-dark-Cg1xdODP.js +4 -0
- package/dist-ssg/server/assets/everforest-light-BmTD3bxe.js +4 -0
- package/dist-ssg/server/assets/factor-CMxFHDqz.js +65 -0
- package/dist-ssg/server/assets/fcl-CDDUNjTj.js +141 -0
- package/dist-ssg/server/assets/fennel-BTELNkeT.js +7 -0
- package/dist-ssg/server/assets/fish-kGF2-4SL.js +7 -0
- package/dist-ssg/server/assets/fluent-YyC28MRr.js +7 -0
- package/dist-ssg/server/assets/forth-B9D2JCeE.js +116 -0
- package/dist-ssg/server/assets/fortran-CAG2BFbe.js +467 -0
- package/dist-ssg/server/assets/fortran-fixed-form-Bxy1maHl.js +9 -0
- package/dist-ssg/server/assets/fortran-free-form-BP-7byrL.js +7 -0
- package/dist-ssg/server/assets/fsharp-5vtGqRR9.js +9 -0
- package/dist-ssg/server/assets/gas-0Aw8zDr5.js +293 -0
- package/dist-ssg/server/assets/gdresource-OOOnA4o9.js +11 -0
- package/dist-ssg/server/assets/gdscript-CY0eqio2.js +7 -0
- package/dist-ssg/server/assets/gdshader-BEzE4j_3.js +7 -0
- package/dist-ssg/server/assets/genie-BvhtM5Ga.js +7 -0
- package/dist-ssg/server/assets/gherkin-DhZlEZiy.js +115 -0
- package/dist-ssg/server/assets/gherkin-xCNF9gh8.js +7 -0
- package/dist-ssg/server/assets/git-commit-PP9xCApN.js +9 -0
- package/dist-ssg/server/assets/git-rebase-D-XQSvDj.js +9 -0
- package/dist-ssg/server/assets/github-dark-O22yVQaY.js +4 -0
- package/dist-ssg/server/assets/github-dark-default-DB2Hkvqn.js +4 -0
- package/dist-ssg/server/assets/github-dark-dimmed-CMZ_OfqC.js +4 -0
- package/dist-ssg/server/assets/github-dark-high-contrast-DmxWVmCU.js +4 -0
- package/dist-ssg/server/assets/github-light-BTbR9xVK.js +4 -0
- package/dist-ssg/server/assets/github-light-default-DWEonwFe.js +4 -0
- package/dist-ssg/server/assets/github-light-high-contrast-WJ_cPDts.js +4 -0
- package/dist-ssg/server/assets/gleam-LmNxrMsN.js +7 -0
- package/dist-ssg/server/assets/glimmer-js-h2QNNiD7.js +15 -0
- package/dist-ssg/server/assets/glimmer-ts-Bk3uX6Ae.js +15 -0
- package/dist-ssg/server/assets/glsl-CGsiYPcu.js +9 -0
- package/dist-ssg/server/assets/gnuplot-tV8vezdE.js +7 -0
- package/dist-ssg/server/assets/go-CBmVHZBz.js +7 -0
- package/dist-ssg/server/assets/graphql-CwmtR1ib.js +15 -0
- package/dist-ssg/server/assets/groovy-Bn4MhXgW.js +7 -0
- package/dist-ssg/server/assets/groovy-CpwJiBl7.js +223 -0
- package/dist-ssg/server/assets/gruvbox-dark-hard-DVsRsETr.js +4 -0
- package/dist-ssg/server/assets/gruvbox-dark-medium-B5JBrQdg.js +4 -0
- package/dist-ssg/server/assets/gruvbox-dark-soft-Db-YOqRx.js +4 -0
- package/dist-ssg/server/assets/gruvbox-light-hard-CXzJt7DI.js +4 -0
- package/dist-ssg/server/assets/gruvbox-light-medium-B89RAI1Y.js +4 -0
- package/dist-ssg/server/assets/gruvbox-light-soft-Cs0hTZYv.js +4 -0
- package/dist-ssg/server/assets/hack-BTX3ICIE.js +13 -0
- package/dist-ssg/server/assets/haml-DrIklt7F.js +11 -0
- package/dist-ssg/server/assets/handlebars-yWFGGD2R.js +15 -0
- package/dist-ssg/server/assets/haskell-CzPS7wjM.js +7 -0
- package/dist-ssg/server/assets/haskell-ySd-OUo8.js +459 -0
- package/dist-ssg/server/assets/haxe-7MlzfeYV.js +514 -0
- package/dist-ssg/server/assets/haxe-BpobLYM9.js +7 -0
- package/dist-ssg/server/assets/hcl-axoq0Ycu.js +7 -0
- package/dist-ssg/server/assets/hjson-I7LcauIB.js +7 -0
- package/dist-ssg/server/assets/hlsl-TRzjajlb.js +7 -0
- package/dist-ssg/server/assets/houston-CF_ws8Cq.js +4 -0
- package/dist-ssg/server/assets/html-GC16tDh9.js +11 -0
- package/dist-ssg/server/assets/html-derivative-HU9p64q4.js +11 -0
- package/dist-ssg/server/assets/http-BqypyemW.js +79 -0
- package/dist-ssg/server/assets/http-DjsOm9E4.js +20 -0
- package/dist-ssg/server/assets/hurl-Am2cDU4f.js +18 -0
- package/dist-ssg/server/assets/hxml-Jle7oGdm.js +9 -0
- package/dist-ssg/server/assets/hy-B1k9U6S8.js +7 -0
- package/dist-ssg/server/assets/idl-4HIGJlDI.js +985 -0
- package/dist-ssg/server/assets/imba-C4923lSV.js +7 -0
- package/dist-ssg/server/assets/index-BUANIFyF.js +120 -0
- package/dist-ssg/server/assets/index-Brcpp_nj.js +163 -0
- package/dist-ssg/server/assets/index-Bzw5T-vd.js +391 -0
- package/dist-ssg/server/assets/index-CAP0cmVO.js +307 -0
- package/dist-ssg/server/assets/index-CFKaffPZ.js +335 -0
- package/dist-ssg/server/assets/index-Cmnd0jiw.js +332 -0
- package/dist-ssg/server/assets/index-CnRKREoz.js +156 -0
- package/dist-ssg/server/assets/index-D0JVKGRJ.js +103 -0
- package/dist-ssg/server/assets/index-D6n8WPGB.js +85 -0
- package/dist-ssg/server/assets/index-DCGDP0cs.js +710 -0
- package/dist-ssg/server/assets/index-DYmgiM6_.js +67 -0
- package/dist-ssg/server/assets/index-Dk9q2o0C.js +294 -0
- package/dist-ssg/server/assets/index-DsfT46da.js +184 -0
- package/dist-ssg/server/assets/index-mJoWrrNO.js +318 -0
- package/dist-ssg/server/assets/index-oPcprgZH.js +695 -0
- package/dist-ssg/server/assets/ini-B84Ha1bx.js +7 -0
- package/dist-ssg/server/assets/java-BfXh-0uJ.js +7 -0
- package/dist-ssg/server/assets/javascript-BsAkV7mL.js +7 -0
- package/dist-ssg/server/assets/javascript-Bt8B7yTi.js +992 -0
- package/dist-ssg/server/assets/jinja-FkIlHBgj.js +16 -0
- package/dist-ssg/server/assets/jison-BkdOIOd4.js +9 -0
- package/dist-ssg/server/assets/json-TjWBGEk1.js +7 -0
- package/dist-ssg/server/assets/json5-DCGCKrmX.js +7 -0
- package/dist-ssg/server/assets/jsonc-DLVLp8id.js +7 -0
- package/dist-ssg/server/assets/jsonl-B-R_pDGg.js +7 -0
- package/dist-ssg/server/assets/jsonnet-Cs8BnnC6.js +7 -0
- package/dist-ssg/server/assets/jssm-DDuANZ2u.js +7 -0
- package/dist-ssg/server/assets/jsx-BPmvoin2.js +7 -0
- package/dist-ssg/server/assets/julia-Bs6JJhYG.js +407 -0
- package/dist-ssg/server/assets/julia-DGaHOJBr.js +20 -0
- package/dist-ssg/server/assets/kanagawa-dragon-DU8n2NNT.js +4 -0
- package/dist-ssg/server/assets/kanagawa-lotus-Byd0CDet.js +4 -0
- package/dist-ssg/server/assets/kanagawa-wave-DExoagcR.js +4 -0
- package/dist-ssg/server/assets/kdl-DzNQTDs7.js +7 -0
- package/dist-ssg/server/assets/kotlin-BM2ZNTMh.js +7 -0
- package/dist-ssg/server/assets/kusto-B4EUC36_.js +7 -0
- package/dist-ssg/server/assets/laserwave-DF03wMlf.js +4 -0
- package/dist-ssg/server/assets/latex-Bwmtvbza.js +10 -0
- package/dist-ssg/server/assets/lean-Bf2_d3Ev.js +7 -0
- package/dist-ssg/server/assets/less-BAzLMJNR.js +7 -0
- package/dist-ssg/server/assets/light-plus-DS08Xg5J.js +4 -0
- package/dist-ssg/server/assets/liquid-QmJ_LYTW.js +15 -0
- package/dist-ssg/server/assets/livescript-DmzgM3Yt.js +296 -0
- package/dist-ssg/server/assets/llvm-Cga37tC_.js +7 -0
- package/dist-ssg/server/assets/log-BF22rfM9.js +7 -0
- package/dist-ssg/server/assets/logo-D9l7oEJ8.js +7 -0
- package/dist-ssg/server/assets/lua-8cJgIlqe.js +256 -0
- package/dist-ssg/server/assets/lua-CH3ttzl_.js +9 -0
- package/dist-ssg/server/assets/luau-_D04OcXG.js +7 -0
- package/dist-ssg/server/assets/make-DLtqaK4D.js +7 -0
- package/dist-ssg/server/assets/markdown-F_EULe_G.js +7 -0
- package/dist-ssg/server/assets/marko-C1WJhz_U.js +15 -0
- package/dist-ssg/server/assets/material-theme-B8B2U48Q.js +4 -0
- package/dist-ssg/server/assets/material-theme-darker-BV0iY_T3.js +4 -0
- package/dist-ssg/server/assets/material-theme-lighter-DrzybSTF.js +4 -0
- package/dist-ssg/server/assets/material-theme-ocean-BRPLVReX.js +4 -0
- package/dist-ssg/server/assets/material-theme-palenight-DSJwsR_D.js +4 -0
- package/dist-ssg/server/assets/mathematica-DNLOL9PQ.js +110 -0
- package/dist-ssg/server/assets/matlab-7XHduepk.js +7 -0
- package/dist-ssg/server/assets/mbox-Ga7d4MMN.js +117 -0
- package/dist-ssg/server/assets/mdc-BQMA9IL9.js +16 -0
- package/dist-ssg/server/assets/mdx-D5wExp-O.js +7 -0
- package/dist-ssg/server/assets/mermaid-CUjtoYEe.js +7 -0
- package/dist-ssg/server/assets/min-dark-BNaN9fWk.js +4 -0
- package/dist-ssg/server/assets/min-light-CMrjentn.js +4 -0
- package/dist-ssg/server/assets/mipsasm-BQyyUrpa.js +7 -0
- package/dist-ssg/server/assets/mirc-Dma3B8rS.js +107 -0
- package/dist-ssg/server/assets/mllike-DHn7xckP.js +334 -0
- package/dist-ssg/server/assets/modelica-0d55jYY0.js +147 -0
- package/dist-ssg/server/assets/mojo-CrbF881p.js +7 -0
- package/dist-ssg/server/assets/monokai-DelygWXa.js +4 -0
- package/dist-ssg/server/assets/move-BBdQ0jYu.js +7 -0
- package/dist-ssg/server/assets/mscgen-DdqZYINH.js +135 -0
- package/dist-ssg/server/assets/mumps-Btr8VblO.js +93 -0
- package/dist-ssg/server/assets/narrat-CLjGcbCy.js +7 -0
- package/dist-ssg/server/assets/nextflow-B-RDCzl7.js +7 -0
- package/dist-ssg/server/assets/nginx-Cy76K59E.js +10 -0
- package/dist-ssg/server/assets/nginx-DTDtBDVN.js +141 -0
- package/dist-ssg/server/assets/night-owl-DSS199ra.js +4 -0
- package/dist-ssg/server/assets/nim-B3PAIZ4D.js +22 -0
- package/dist-ssg/server/assets/nix-3CMjsYTI.js +12 -0
- package/dist-ssg/server/assets/nord-CvDbBq5M.js +4 -0
- package/dist-ssg/server/assets/nsis-3zG7tgur.js +62 -0
- package/dist-ssg/server/assets/ntriples-CvgOYMpL.js +153 -0
- package/dist-ssg/server/assets/nushell-CwevsFPL.js +7 -0
- package/dist-ssg/server/assets/objective-c-BRoNQF42.js +7 -0
- package/dist-ssg/server/assets/objective-cpp-DEoN9Fe5.js +7 -0
- package/dist-ssg/server/assets/ocaml-B1kfGk9Y.js +7 -0
- package/dist-ssg/server/assets/octave-DYBj3-tl.js +200 -0
- package/dist-ssg/server/assets/one-dark-pro-CsMf0BoJ.js +4 -0
- package/dist-ssg/server/assets/one-light-BwwAsfsj.js +4 -0
- package/dist-ssg/server/assets/openscad-C_m7ehZF.js +7 -0
- package/dist-ssg/server/assets/oz-R_e8WMIi.js +231 -0
- package/dist-ssg/server/assets/pascal-CU8Kjkr_.js +7 -0
- package/dist-ssg/server/assets/pascal-GD8iposT.js +105 -0
- package/dist-ssg/server/assets/perl-DL9mHpoi.js +1105 -0
- package/dist-ssg/server/assets/perl-HITCDkgu.js +18 -0
- package/dist-ssg/server/assets/php-C78NvqRq.js +20 -0
- package/dist-ssg/server/assets/pig-C_4T4YIV.js +101 -0
- package/dist-ssg/server/assets/pkl-BsByaYax.js +7 -0
- package/dist-ssg/server/assets/plastic-BjwMpBc0.js +4 -0
- package/dist-ssg/server/assets/plsql-B3Na24V4.js +7 -0
- package/dist-ssg/server/assets/po-BajfNjc5.js +7 -0
- package/dist-ssg/server/assets/poimandres-ChWyhPrn.js +4 -0
- package/dist-ssg/server/assets/polar-BB-dlxnO.js +7 -0
- package/dist-ssg/server/assets/postcss-kj1IbjVd.js +7 -0
- package/dist-ssg/server/assets/powerquery-B-e1fO-k.js +7 -0
- package/dist-ssg/server/assets/powershell-B0suO7Vd.js +328 -0
- package/dist-ssg/server/assets/powershell-BcMVbGpk.js +7 -0
- package/dist-ssg/server/assets/prisma-bmxcSDxq.js +7 -0
- package/dist-ssg/server/assets/prolog-BT9GCzqD.js +7 -0
- package/dist-ssg/server/assets/properties-BR-vP1aU.js +58 -0
- package/dist-ssg/server/assets/proto-BIXM0k1a.js +7 -0
- package/dist-ssg/server/assets/protobuf-BxgpyhoW.js +77 -0
- package/dist-ssg/server/assets/pug-BwQB43qN.js +13 -0
- package/dist-ssg/server/assets/pug-vHnWR0UE.js +405 -0
- package/dist-ssg/server/assets/puppet-Bdao66PW.js +137 -0
- package/dist-ssg/server/assets/puppet-N15G4Usj.js +7 -0
- package/dist-ssg/server/assets/purescript-DrwsEYNH.js +7 -0
- package/dist-ssg/server/assets/python-BFGRmuZ9.js +426 -0
- package/dist-ssg/server/assets/python-CrdIx4PZ.js +7 -0
- package/dist-ssg/server/assets/q-CrbCVq4a.js +131 -0
- package/dist-ssg/server/assets/qml-jtL8okyu.js +9 -0
- package/dist-ssg/server/assets/qmldir-DuMSk0Oz.js +7 -0
- package/dist-ssg/server/assets/qss-BFrB6p4y.js +7 -0
- package/dist-ssg/server/assets/r-V7nswm59.js +170 -0
- package/dist-ssg/server/assets/r-oprfD2-9.js +7 -0
- package/dist-ssg/server/assets/racket-DbA06HL7.js +7 -0
- package/dist-ssg/server/assets/raku-6v-Y17bs.js +7 -0
- package/dist-ssg/server/assets/razor-CSqsH3jy.js +13 -0
- package/dist-ssg/server/assets/red-DByOl5N0.js +4 -0
- package/dist-ssg/server/assets/reg-CULnG2WX.js +7 -0
- package/dist-ssg/server/assets/regexp-BxWeO75u.js +7 -0
- package/dist-ssg/server/assets/rel-CHRwzjd4.js +7 -0
- package/dist-ssg/server/assets/riscv-BNQ9cVpw.js +7 -0
- package/dist-ssg/server/assets/rose-pine-B-kZ4Z9q.js +4 -0
- package/dist-ssg/server/assets/rose-pine-dawn-efeVGdSI.js +4 -0
- package/dist-ssg/server/assets/rose-pine-moon-DmodZNzl.js +4 -0
- package/dist-ssg/server/assets/rosmsg-Bfahr6vb.js +7 -0
- package/dist-ssg/server/assets/rpm-C-DLY-If.js +109 -0
- package/dist-ssg/server/assets/rst-K4s1NOnQ.js +37 -0
- package/dist-ssg/server/assets/ruby-JDKLJNK0.js +330 -0
- package/dist-ssg/server/assets/ruby-YHMcSmTg.js +37 -0
- package/dist-ssg/server/assets/rust-CMNYZh5a.js +7 -0
- package/dist-ssg/server/assets/sas-BLBgC3TA.js +9 -0
- package/dist-ssg/server/assets/sas-D2UG-yhZ.js +207 -0
- package/dist-ssg/server/assets/sass-BheygBdF.js +7 -0
- package/dist-ssg/server/assets/scala-B-_7vFVn.js +7 -0
- package/dist-ssg/server/assets/scheme-BKzrkGJD.js +222 -0
- package/dist-ssg/server/assets/scheme-BSHdPinv.js +7 -0
- package/dist-ssg/server/assets/scss-Dq-LbI_c.js +9 -0
- package/dist-ssg/server/assets/sdbl-BBUhycGU.js +7 -0
- package/dist-ssg/server/assets/shaderlab-C07uO3dL.js +9 -0
- package/dist-ssg/server/assets/shell-BlsXDxCn.js +222 -0
- package/dist-ssg/server/assets/shellscript-CQ8MXh-D.js +7 -0
- package/dist-ssg/server/assets/shellsession-CkeTp4M1.js +9 -0
- package/dist-ssg/server/assets/sieve-CjwBwOY5.js +135 -0
- package/dist-ssg/server/assets/simple-mode-DMneyfDu.js +130 -0
- package/dist-ssg/server/assets/slack-dark-BEe10hxO.js +4 -0
- package/dist-ssg/server/assets/slack-ochin-BKmu9pBc.js +4 -0
- package/dist-ssg/server/assets/smalltalk-BOIGQuhN.js +121 -0
- package/dist-ssg/server/assets/smalltalk-qxcGy4fT.js +7 -0
- package/dist-ssg/server/assets/snazzy-light-Dcvd-ZyI.js +4 -0
- package/dist-ssg/server/assets/solarized-dark-BBl5y5sR.js +4 -0
- package/dist-ssg/server/assets/solarized-light-DW9b_AY8.js +4 -0
- package/dist-ssg/server/assets/solidity-CSTQ0FCC.js +7 -0
- package/dist-ssg/server/assets/solr-CwD7U71z.js +69 -0
- package/dist-ssg/server/assets/soy-BHaHgMUy.js +11 -0
- package/dist-ssg/server/assets/sparql-DYskk2vE.js +249 -0
- package/dist-ssg/server/assets/sparql-DswowMAp.js +9 -0
- package/dist-ssg/server/assets/splunk-DcGJXIDa.js +7 -0
- package/dist-ssg/server/assets/spreadsheet-Bgtt3oLP.js +87 -0
- package/dist-ssg/server/assets/sql-Cei9CMfk.js +342 -0
- package/dist-ssg/server/assets/sql-DzUuSofg.js +7 -0
- package/dist-ssg/server/assets/ssh-config-Bk_I5wDR.js +7 -0
- package/dist-ssg/server/assets/stata-Dl7wDdBE.js +9 -0
- package/dist-ssg/server/assets/stex-C1nZSzAw.js +230 -0
- package/dist-ssg/server/assets/stylus-BkS-boTH.js +565 -0
- package/dist-ssg/server/assets/stylus-DXFa_2Jl.js +7 -0
- package/dist-ssg/server/assets/svelte-CtgWtM5D.js +15 -0
- package/dist-ssg/server/assets/swift-DnZ2euNj.js +7 -0
- package/dist-ssg/server/assets/swift-FRZi1uvB.js +291 -0
- package/dist-ssg/server/assets/synthwave-84-CoUef9sh.js +4 -0
- package/dist-ssg/server/assets/system-verilog-BcESSvRn.js +7 -0
- package/dist-ssg/server/assets/systemd-DJPFjU02.js +7 -0
- package/dist-ssg/server/assets/talonscript-CEEMXJTH.js +7 -0
- package/dist-ssg/server/assets/tasl-DfOr2qHi.js +7 -0
- package/dist-ssg/server/assets/tcl-CTsc4-t7.js +7 -0
- package/dist-ssg/server/assets/tcl-CUcaCdmq.js +114 -0
- package/dist-ssg/server/assets/templ-Bcvz6rvd.js +13 -0
- package/dist-ssg/server/assets/terraform-CeztUfUr.js +7 -0
- package/dist-ssg/server/assets/tex-BXc5yIIs.js +9 -0
- package/dist-ssg/server/assets/textile-BnFpjsrl.js +414 -0
- package/dist-ssg/server/assets/tiddlywiki-CjprD-Qp.js +218 -0
- package/dist-ssg/server/assets/tiki-DK9DOeWn.js +268 -0
- package/dist-ssg/server/assets/tokyo-night-DjtLpAEY.js +4 -0
- package/dist-ssg/server/assets/toml-BOuWGMcf.js +76 -0
- package/dist-ssg/server/assets/toml-vHPzWDj6.js +7 -0
- package/dist-ssg/server/assets/troff-E1bJ0PPL.js +61 -0
- package/dist-ssg/server/assets/ts-tags-cG2hZuda.js +54 -0
- package/dist-ssg/server/assets/tsv-ChRVFvMy.js +7 -0
- package/dist-ssg/server/assets/tsx-CmGGo4Hm.js +7 -0
- package/dist-ssg/server/assets/ttcn-cfg-Dc39-fIP.js +133 -0
- package/dist-ssg/server/assets/ttcn-tKd4HLu4.js +192 -0
- package/dist-ssg/server/assets/turtle-BnC7StHY.js +7 -0
- package/dist-ssg/server/assets/turtle-Dq7-1WAf.js +124 -0
- package/dist-ssg/server/assets/twig-BaSP80Ej.js +36 -0
- package/dist-ssg/server/assets/typescript-CP6ECzON.js +7 -0
- package/dist-ssg/server/assets/typespec-CkDVVIcK.js +7 -0
- package/dist-ssg/server/assets/typst-XYLFxYau.js +7 -0
- package/dist-ssg/server/assets/v-BSYXvR4g.js +7 -0
- package/dist-ssg/server/assets/vala-qJa5rry9.js +7 -0
- package/dist-ssg/server/assets/vb-Bzg9rspf.js +7 -0
- package/dist-ssg/server/assets/vb-Dp90gtsv.js +196 -0
- package/dist-ssg/server/assets/vbscript-Bfn8O8I7.js +478 -0
- package/dist-ssg/server/assets/velocity-BwIZK1TH.js +149 -0
- package/dist-ssg/server/assets/verilog-CCb_iTfF.js +7 -0
- package/dist-ssg/server/assets/verilog-CnT9bMk0.js +429 -0
- package/dist-ssg/server/assets/vesper-4Q1cEwPL.js +4 -0
- package/dist-ssg/server/assets/vhdl-DCkMIyT9.js +158 -0
- package/dist-ssg/server/assets/vhdl-DMqk4T2s.js +7 -0
- package/dist-ssg/server/assets/viml--FINbfoq.js +7 -0
- package/dist-ssg/server/assets/vitesse-black-BqNLki8b.js +4 -0
- package/dist-ssg/server/assets/vitesse-dark-jJ32WhwH.js +4 -0
- package/dist-ssg/server/assets/vitesse-light-476zM4e6.js +4 -0
- package/dist-ssg/server/assets/vue-D1f9Cket.js +40 -0
- package/dist-ssg/server/assets/vue-html-D4K-hJts.js +16 -0
- package/dist-ssg/server/assets/vue-vine-t-vhWXcp.js +25 -0
- package/dist-ssg/server/assets/vyper-DP4whl13.js +7 -0
- package/dist-ssg/server/assets/wasm-BBh6f151.js +7 -0
- package/dist-ssg/server/assets/wasm-DDgzZJey.js +10 -0
- package/dist-ssg/server/assets/webidl-BTLTThCm.js +204 -0
- package/dist-ssg/server/assets/wenyan-BdqozpMZ.js +7 -0
- package/dist-ssg/server/assets/wgsl-Vo-hHVWH.js +7 -0
- package/dist-ssg/server/assets/wikitext-BDjE6pmL.js +7 -0
- package/dist-ssg/server/assets/wit-C_nQzOkY.js +7 -0
- package/dist-ssg/server/assets/wolfram-CRmjUoI4.js +7 -0
- package/dist-ssg/server/assets/xml-BMzZeaqs.js +9 -0
- package/dist-ssg/server/assets/xquery-BrBUuxMR.js +525 -0
- package/dist-ssg/server/assets/xsl-CnwVr_6q.js +10 -0
- package/dist-ssg/server/assets/yacas-b5lAVEIl.js +130 -0
- package/dist-ssg/server/assets/yaml-B_vW5iTY.js +7 -0
- package/dist-ssg/server/assets/z80-ClgwfNdB.js +92 -0
- package/dist-ssg/server/assets/zenscript-DFINJL6j.js +7 -0
- package/dist-ssg/server/assets/zig-CS4FMAZp.js +7 -0
- package/dist-ssg/server/entry-server.js +98858 -0
- package/dist-ssg/server/logo.svg +8 -0
- package/dist-ssg/server/openspec_pixel_dark.svg +89 -0
- package/dist-ssg/server/openspec_pixel_light.svg +89 -0
- package/dist-ssg/ssg-cli.mjs +121 -0
- package/package.json +23 -25
- package/src/App.tsx +0 -124
- package/src/components/StaticModeBanner.tsx +0 -46
- package/src/components/change-overview.tsx +0 -156
- package/src/components/cli-terminal.tsx +0 -93
- package/src/components/code-editor.tsx +0 -232
- package/src/components/copyable-path.tsx +0 -44
- package/src/components/dialog.tsx +0 -193
- package/src/components/folder-editor-viewer.tsx +0 -411
- package/src/components/global-archive-modal.tsx +0 -205
- package/src/components/layout/desktop-sidebar.tsx +0 -48
- package/src/components/layout/index.ts +0 -6
- package/src/components/layout/mobile-header.tsx +0 -91
- package/src/components/layout/mobile-tabbar.tsx +0 -20
- package/src/components/layout/nav-items.ts +0 -33
- package/src/components/layout/root-layout.tsx +0 -67
- package/src/components/layout/status-bar.tsx +0 -69
- package/src/components/markdown-content.tsx +0 -104
- package/src/components/markdown-viewer.tsx +0 -415
- package/src/components/path-marquee.tsx +0 -104
- package/src/components/tabs.tsx +0 -151
- package/src/components/tasks-view.test.tsx +0 -45
- package/src/components/tasks-view.tsx +0 -209
- package/src/components/toc-context.tsx +0 -177
- package/src/components/toc.tsx +0 -290
- package/src/entry-client.tsx +0 -47
- package/src/index.css +0 -481
- package/src/lib/api-config.ts +0 -72
- package/src/lib/archive-modal-context.tsx +0 -45
- package/src/lib/codemirror-markdown-preview.ts +0 -494
- package/src/lib/format-time.ts +0 -51
- package/src/lib/shiki-highlighter.ts +0 -47
- package/src/lib/static-data-provider.ts +0 -386
- package/src/lib/static-mode.ts +0 -158
- package/src/lib/trpc.ts +0 -107
- package/src/lib/use-cli-runner.tsx +0 -433
- package/src/lib/use-dark-mode.ts +0 -28
- package/src/lib/use-server-status.ts +0 -208
- package/src/lib/use-subscription.ts +0 -375
- package/src/lib/use-tabs-status-by-query.ts +0 -78
- package/src/main.tsx +0 -9
- package/src/routes/archive-list.tsx +0 -65
- package/src/routes/archive-view.tsx +0 -116
- package/src/routes/change-list.tsx +0 -63
- package/src/routes/change-view.tsx +0 -188
- package/src/routes/dashboard.tsx +0 -204
- package/src/routes/project.tsx +0 -272
- package/src/routes/settings.tsx +0 -816
- package/src/routes/spec-list.tsx +0 -49
- package/src/routes/spec-view.tsx +0 -164
- package/src/ssg/entry-server.tsx +0 -111
- package/src/ssg/index.ts +0 -6
- package/src/ssg/prerender.ts +0 -111
- package/src/ssg/static-data-context.tsx +0 -49
- package/src/ssg/types.ts +0 -5
- package/src/test/setup.ts +0 -1
- package/src/vite-env.d.ts +0 -6
- package/tsconfig.json +0 -18
- package/vite.config.ts +0 -58
|
@@ -0,0 +1,992 @@
|
|
|
1
|
+
function mkJavaScript(parserConfig) {
|
|
2
|
+
var statementIndent = parserConfig.statementIndent;
|
|
3
|
+
var jsonldMode = parserConfig.jsonld;
|
|
4
|
+
var jsonMode = parserConfig.json || jsonldMode;
|
|
5
|
+
var isTS = parserConfig.typescript;
|
|
6
|
+
var wordRE = parserConfig.wordCharacters || /[\w$\xa1-\uffff]/;
|
|
7
|
+
var keywords = (function() {
|
|
8
|
+
function kw(type2) {
|
|
9
|
+
return { type: type2, style: "keyword" };
|
|
10
|
+
}
|
|
11
|
+
var A = kw("keyword a"), B = kw("keyword b"), C = kw("keyword c"), D = kw("keyword d");
|
|
12
|
+
var operator = kw("operator"), atom = { type: "atom", style: "atom" };
|
|
13
|
+
return {
|
|
14
|
+
"if": kw("if"),
|
|
15
|
+
"while": A,
|
|
16
|
+
"with": A,
|
|
17
|
+
"else": B,
|
|
18
|
+
"do": B,
|
|
19
|
+
"try": B,
|
|
20
|
+
"finally": B,
|
|
21
|
+
"return": D,
|
|
22
|
+
"break": D,
|
|
23
|
+
"continue": D,
|
|
24
|
+
"new": kw("new"),
|
|
25
|
+
"delete": C,
|
|
26
|
+
"void": C,
|
|
27
|
+
"throw": C,
|
|
28
|
+
"debugger": kw("debugger"),
|
|
29
|
+
"var": kw("var"),
|
|
30
|
+
"const": kw("var"),
|
|
31
|
+
"let": kw("var"),
|
|
32
|
+
"function": kw("function"),
|
|
33
|
+
"catch": kw("catch"),
|
|
34
|
+
"for": kw("for"),
|
|
35
|
+
"switch": kw("switch"),
|
|
36
|
+
"case": kw("case"),
|
|
37
|
+
"default": kw("default"),
|
|
38
|
+
"in": operator,
|
|
39
|
+
"typeof": operator,
|
|
40
|
+
"instanceof": operator,
|
|
41
|
+
"true": atom,
|
|
42
|
+
"false": atom,
|
|
43
|
+
"null": atom,
|
|
44
|
+
"undefined": atom,
|
|
45
|
+
"NaN": atom,
|
|
46
|
+
"Infinity": atom,
|
|
47
|
+
"this": kw("this"),
|
|
48
|
+
"class": kw("class"),
|
|
49
|
+
"super": kw("atom"),
|
|
50
|
+
"yield": C,
|
|
51
|
+
"export": kw("export"),
|
|
52
|
+
"import": kw("import"),
|
|
53
|
+
"extends": C,
|
|
54
|
+
"await": C
|
|
55
|
+
};
|
|
56
|
+
})();
|
|
57
|
+
var isOperatorChar = /[+\-*&%=<>!?|~^@]/;
|
|
58
|
+
var isJsonldKeyword = /^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;
|
|
59
|
+
function readRegexp(stream) {
|
|
60
|
+
var escaped = false, next, inSet = false;
|
|
61
|
+
while ((next = stream.next()) != null) {
|
|
62
|
+
if (!escaped) {
|
|
63
|
+
if (next == "/" && !inSet) return;
|
|
64
|
+
if (next == "[") inSet = true;
|
|
65
|
+
else if (inSet && next == "]") inSet = false;
|
|
66
|
+
}
|
|
67
|
+
escaped = !escaped && next == "\\";
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
var type, content;
|
|
71
|
+
function ret(tp, style, cont2) {
|
|
72
|
+
type = tp;
|
|
73
|
+
content = cont2;
|
|
74
|
+
return style;
|
|
75
|
+
}
|
|
76
|
+
function tokenBase(stream, state) {
|
|
77
|
+
var ch = stream.next();
|
|
78
|
+
if (ch == '"' || ch == "'") {
|
|
79
|
+
state.tokenize = tokenString(ch);
|
|
80
|
+
return state.tokenize(stream, state);
|
|
81
|
+
} else if (ch == "." && stream.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)) {
|
|
82
|
+
return ret("number", "number");
|
|
83
|
+
} else if (ch == "." && stream.match("..")) {
|
|
84
|
+
return ret("spread", "meta");
|
|
85
|
+
} else if (/[\[\]{}\(\),;\:\.]/.test(ch)) {
|
|
86
|
+
return ret(ch);
|
|
87
|
+
} else if (ch == "=" && stream.eat(">")) {
|
|
88
|
+
return ret("=>", "operator");
|
|
89
|
+
} else if (ch == "0" && stream.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)) {
|
|
90
|
+
return ret("number", "number");
|
|
91
|
+
} else if (/\d/.test(ch)) {
|
|
92
|
+
stream.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);
|
|
93
|
+
return ret("number", "number");
|
|
94
|
+
} else if (ch == "/") {
|
|
95
|
+
if (stream.eat("*")) {
|
|
96
|
+
state.tokenize = tokenComment;
|
|
97
|
+
return tokenComment(stream, state);
|
|
98
|
+
} else if (stream.eat("/")) {
|
|
99
|
+
stream.skipToEnd();
|
|
100
|
+
return ret("comment", "comment");
|
|
101
|
+
} else if (expressionAllowed(stream, state, 1)) {
|
|
102
|
+
readRegexp(stream);
|
|
103
|
+
stream.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);
|
|
104
|
+
return ret("regexp", "string.special");
|
|
105
|
+
} else {
|
|
106
|
+
stream.eat("=");
|
|
107
|
+
return ret("operator", "operator", stream.current());
|
|
108
|
+
}
|
|
109
|
+
} else if (ch == "`") {
|
|
110
|
+
state.tokenize = tokenQuasi;
|
|
111
|
+
return tokenQuasi(stream, state);
|
|
112
|
+
} else if (ch == "#" && stream.peek() == "!") {
|
|
113
|
+
stream.skipToEnd();
|
|
114
|
+
return ret("meta", "meta");
|
|
115
|
+
} else if (ch == "#" && stream.eatWhile(wordRE)) {
|
|
116
|
+
return ret("variable", "property");
|
|
117
|
+
} else if (ch == "<" && stream.match("!--") || ch == "-" && stream.match("->") && !/\S/.test(stream.string.slice(0, stream.start))) {
|
|
118
|
+
stream.skipToEnd();
|
|
119
|
+
return ret("comment", "comment");
|
|
120
|
+
} else if (isOperatorChar.test(ch)) {
|
|
121
|
+
if (ch != ">" || !state.lexical || state.lexical.type != ">") {
|
|
122
|
+
if (stream.eat("=")) {
|
|
123
|
+
if (ch == "!" || ch == "=") stream.eat("=");
|
|
124
|
+
} else if (/[<>*+\-|&?]/.test(ch)) {
|
|
125
|
+
stream.eat(ch);
|
|
126
|
+
if (ch == ">") stream.eat(ch);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
if (ch == "?" && stream.eat(".")) return ret(".");
|
|
130
|
+
return ret("operator", "operator", stream.current());
|
|
131
|
+
} else if (wordRE.test(ch)) {
|
|
132
|
+
stream.eatWhile(wordRE);
|
|
133
|
+
var word = stream.current();
|
|
134
|
+
if (state.lastType != ".") {
|
|
135
|
+
if (keywords.propertyIsEnumerable(word)) {
|
|
136
|
+
var kw = keywords[word];
|
|
137
|
+
return ret(kw.type, kw.style, word);
|
|
138
|
+
}
|
|
139
|
+
if (word == "async" && stream.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/, false))
|
|
140
|
+
return ret("async", "keyword", word);
|
|
141
|
+
}
|
|
142
|
+
return ret("variable", "variable", word);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function tokenString(quote) {
|
|
146
|
+
return function(stream, state) {
|
|
147
|
+
var escaped = false, next;
|
|
148
|
+
if (jsonldMode && stream.peek() == "@" && stream.match(isJsonldKeyword)) {
|
|
149
|
+
state.tokenize = tokenBase;
|
|
150
|
+
return ret("jsonld-keyword", "meta");
|
|
151
|
+
}
|
|
152
|
+
while ((next = stream.next()) != null) {
|
|
153
|
+
if (next == quote && !escaped) break;
|
|
154
|
+
escaped = !escaped && next == "\\";
|
|
155
|
+
}
|
|
156
|
+
if (!escaped) state.tokenize = tokenBase;
|
|
157
|
+
return ret("string", "string");
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
function tokenComment(stream, state) {
|
|
161
|
+
var maybeEnd = false, ch;
|
|
162
|
+
while (ch = stream.next()) {
|
|
163
|
+
if (ch == "/" && maybeEnd) {
|
|
164
|
+
state.tokenize = tokenBase;
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
maybeEnd = ch == "*";
|
|
168
|
+
}
|
|
169
|
+
return ret("comment", "comment");
|
|
170
|
+
}
|
|
171
|
+
function tokenQuasi(stream, state) {
|
|
172
|
+
var escaped = false, next;
|
|
173
|
+
while ((next = stream.next()) != null) {
|
|
174
|
+
if (!escaped && (next == "`" || next == "$" && stream.eat("{"))) {
|
|
175
|
+
state.tokenize = tokenBase;
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
escaped = !escaped && next == "\\";
|
|
179
|
+
}
|
|
180
|
+
return ret("quasi", "string.special", stream.current());
|
|
181
|
+
}
|
|
182
|
+
var brackets = "([{}])";
|
|
183
|
+
function findFatArrow(stream, state) {
|
|
184
|
+
if (state.fatArrowAt) state.fatArrowAt = null;
|
|
185
|
+
var arrow = stream.string.indexOf("=>", stream.start);
|
|
186
|
+
if (arrow < 0) return;
|
|
187
|
+
if (isTS) {
|
|
188
|
+
var m = /:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(stream.string.slice(stream.start, arrow));
|
|
189
|
+
if (m) arrow = m.index;
|
|
190
|
+
}
|
|
191
|
+
var depth = 0, sawSomething = false;
|
|
192
|
+
for (var pos = arrow - 1; pos >= 0; --pos) {
|
|
193
|
+
var ch = stream.string.charAt(pos);
|
|
194
|
+
var bracket = brackets.indexOf(ch);
|
|
195
|
+
if (bracket >= 0 && bracket < 3) {
|
|
196
|
+
if (!depth) {
|
|
197
|
+
++pos;
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
if (--depth == 0) {
|
|
201
|
+
if (ch == "(") sawSomething = true;
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
} else if (bracket >= 3 && bracket < 6) {
|
|
205
|
+
++depth;
|
|
206
|
+
} else if (wordRE.test(ch)) {
|
|
207
|
+
sawSomething = true;
|
|
208
|
+
} else if (/["'\/`]/.test(ch)) {
|
|
209
|
+
for (; ; --pos) {
|
|
210
|
+
if (pos == 0) return;
|
|
211
|
+
var next = stream.string.charAt(pos - 1);
|
|
212
|
+
if (next == ch && stream.string.charAt(pos - 2) != "\\") {
|
|
213
|
+
pos--;
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
} else if (sawSomething && !depth) {
|
|
218
|
+
++pos;
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if (sawSomething && !depth) state.fatArrowAt = pos;
|
|
223
|
+
}
|
|
224
|
+
var atomicTypes = {
|
|
225
|
+
"atom": true,
|
|
226
|
+
"number": true,
|
|
227
|
+
"variable": true,
|
|
228
|
+
"string": true,
|
|
229
|
+
"regexp": true,
|
|
230
|
+
"this": true,
|
|
231
|
+
"import": true,
|
|
232
|
+
"jsonld-keyword": true
|
|
233
|
+
};
|
|
234
|
+
function JSLexical(indented, column, type2, align, prev, info) {
|
|
235
|
+
this.indented = indented;
|
|
236
|
+
this.column = column;
|
|
237
|
+
this.type = type2;
|
|
238
|
+
this.prev = prev;
|
|
239
|
+
this.info = info;
|
|
240
|
+
if (align != null) this.align = align;
|
|
241
|
+
}
|
|
242
|
+
function inScope(state, varname) {
|
|
243
|
+
for (var v = state.localVars; v; v = v.next)
|
|
244
|
+
if (v.name == varname) return true;
|
|
245
|
+
for (var cx2 = state.context; cx2; cx2 = cx2.prev) {
|
|
246
|
+
for (var v = cx2.vars; v; v = v.next)
|
|
247
|
+
if (v.name == varname) return true;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
function parseJS(state, style, type2, content2, stream) {
|
|
251
|
+
var cc = state.cc;
|
|
252
|
+
cx.state = state;
|
|
253
|
+
cx.stream = stream;
|
|
254
|
+
cx.marked = null;
|
|
255
|
+
cx.cc = cc;
|
|
256
|
+
cx.style = style;
|
|
257
|
+
if (!state.lexical.hasOwnProperty("align"))
|
|
258
|
+
state.lexical.align = true;
|
|
259
|
+
while (true) {
|
|
260
|
+
var combinator = cc.length ? cc.pop() : jsonMode ? expression : statement;
|
|
261
|
+
if (combinator(type2, content2)) {
|
|
262
|
+
while (cc.length && cc[cc.length - 1].lex)
|
|
263
|
+
cc.pop()();
|
|
264
|
+
if (cx.marked) return cx.marked;
|
|
265
|
+
if (type2 == "variable" && inScope(state, content2)) return "variableName.local";
|
|
266
|
+
return style;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
var cx = { state: null, marked: null, cc: null };
|
|
271
|
+
function pass() {
|
|
272
|
+
for (var i = arguments.length - 1; i >= 0; i--) cx.cc.push(arguments[i]);
|
|
273
|
+
}
|
|
274
|
+
function cont() {
|
|
275
|
+
pass.apply(null, arguments);
|
|
276
|
+
return true;
|
|
277
|
+
}
|
|
278
|
+
function inList(name, list) {
|
|
279
|
+
for (var v = list; v; v = v.next) if (v.name == name) return true;
|
|
280
|
+
return false;
|
|
281
|
+
}
|
|
282
|
+
function register(varname) {
|
|
283
|
+
var state = cx.state;
|
|
284
|
+
cx.marked = "def";
|
|
285
|
+
if (state.context) {
|
|
286
|
+
if (state.lexical.info == "var" && state.context && state.context.block) {
|
|
287
|
+
var newContext = registerVarScoped(varname, state.context);
|
|
288
|
+
if (newContext != null) {
|
|
289
|
+
state.context = newContext;
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
} else if (!inList(varname, state.localVars)) {
|
|
293
|
+
state.localVars = new Var(varname, state.localVars);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (parserConfig.globalVars && !inList(varname, state.globalVars))
|
|
298
|
+
state.globalVars = new Var(varname, state.globalVars);
|
|
299
|
+
}
|
|
300
|
+
function registerVarScoped(varname, context) {
|
|
301
|
+
if (!context) {
|
|
302
|
+
return null;
|
|
303
|
+
} else if (context.block) {
|
|
304
|
+
var inner = registerVarScoped(varname, context.prev);
|
|
305
|
+
if (!inner) return null;
|
|
306
|
+
if (inner == context.prev) return context;
|
|
307
|
+
return new Context(inner, context.vars, true);
|
|
308
|
+
} else if (inList(varname, context.vars)) {
|
|
309
|
+
return context;
|
|
310
|
+
} else {
|
|
311
|
+
return new Context(context.prev, new Var(varname, context.vars), false);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
function isModifier(name) {
|
|
315
|
+
return name == "public" || name == "private" || name == "protected" || name == "abstract" || name == "readonly";
|
|
316
|
+
}
|
|
317
|
+
function Context(prev, vars, block2) {
|
|
318
|
+
this.prev = prev;
|
|
319
|
+
this.vars = vars;
|
|
320
|
+
this.block = block2;
|
|
321
|
+
}
|
|
322
|
+
function Var(name, next) {
|
|
323
|
+
this.name = name;
|
|
324
|
+
this.next = next;
|
|
325
|
+
}
|
|
326
|
+
var defaultVars = new Var("this", new Var("arguments", null));
|
|
327
|
+
function pushcontext() {
|
|
328
|
+
cx.state.context = new Context(cx.state.context, cx.state.localVars, false);
|
|
329
|
+
cx.state.localVars = defaultVars;
|
|
330
|
+
}
|
|
331
|
+
function pushblockcontext() {
|
|
332
|
+
cx.state.context = new Context(cx.state.context, cx.state.localVars, true);
|
|
333
|
+
cx.state.localVars = null;
|
|
334
|
+
}
|
|
335
|
+
pushcontext.lex = pushblockcontext.lex = true;
|
|
336
|
+
function popcontext() {
|
|
337
|
+
cx.state.localVars = cx.state.context.vars;
|
|
338
|
+
cx.state.context = cx.state.context.prev;
|
|
339
|
+
}
|
|
340
|
+
popcontext.lex = true;
|
|
341
|
+
function pushlex(type2, info) {
|
|
342
|
+
var result = function() {
|
|
343
|
+
var state = cx.state, indent = state.indented;
|
|
344
|
+
if (state.lexical.type == "stat") indent = state.lexical.indented;
|
|
345
|
+
else for (var outer = state.lexical; outer && outer.type == ")" && outer.align; outer = outer.prev)
|
|
346
|
+
indent = outer.indented;
|
|
347
|
+
state.lexical = new JSLexical(indent, cx.stream.column(), type2, null, state.lexical, info);
|
|
348
|
+
};
|
|
349
|
+
result.lex = true;
|
|
350
|
+
return result;
|
|
351
|
+
}
|
|
352
|
+
function poplex() {
|
|
353
|
+
var state = cx.state;
|
|
354
|
+
if (state.lexical.prev) {
|
|
355
|
+
if (state.lexical.type == ")")
|
|
356
|
+
state.indented = state.lexical.indented;
|
|
357
|
+
state.lexical = state.lexical.prev;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
poplex.lex = true;
|
|
361
|
+
function expect(wanted) {
|
|
362
|
+
function exp(type2) {
|
|
363
|
+
if (type2 == wanted) return cont();
|
|
364
|
+
else if (wanted == ";" || type2 == "}" || type2 == ")" || type2 == "]") return pass();
|
|
365
|
+
else return cont(exp);
|
|
366
|
+
}
|
|
367
|
+
return exp;
|
|
368
|
+
}
|
|
369
|
+
function statement(type2, value) {
|
|
370
|
+
if (type2 == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex);
|
|
371
|
+
if (type2 == "keyword a") return cont(pushlex("form"), parenExpr, statement, poplex);
|
|
372
|
+
if (type2 == "keyword b") return cont(pushlex("form"), statement, poplex);
|
|
373
|
+
if (type2 == "keyword d") return cx.stream.match(/^\s*$/, false) ? cont() : cont(pushlex("stat"), maybeexpression, expect(";"), poplex);
|
|
374
|
+
if (type2 == "debugger") return cont(expect(";"));
|
|
375
|
+
if (type2 == "{") return cont(pushlex("}"), pushblockcontext, block, poplex, popcontext);
|
|
376
|
+
if (type2 == ";") return cont();
|
|
377
|
+
if (type2 == "if") {
|
|
378
|
+
if (cx.state.lexical.info == "else" && cx.state.cc[cx.state.cc.length - 1] == poplex)
|
|
379
|
+
cx.state.cc.pop()();
|
|
380
|
+
return cont(pushlex("form"), parenExpr, statement, poplex, maybeelse);
|
|
381
|
+
}
|
|
382
|
+
if (type2 == "function") return cont(functiondef);
|
|
383
|
+
if (type2 == "for") return cont(pushlex("form"), pushblockcontext, forspec, statement, popcontext, poplex);
|
|
384
|
+
if (type2 == "class" || isTS && value == "interface") {
|
|
385
|
+
cx.marked = "keyword";
|
|
386
|
+
return cont(pushlex("form", type2 == "class" ? type2 : value), className, poplex);
|
|
387
|
+
}
|
|
388
|
+
if (type2 == "variable") {
|
|
389
|
+
if (isTS && value == "declare") {
|
|
390
|
+
cx.marked = "keyword";
|
|
391
|
+
return cont(statement);
|
|
392
|
+
} else if (isTS && (value == "module" || value == "enum" || value == "type") && cx.stream.match(/^\s*\w/, false)) {
|
|
393
|
+
cx.marked = "keyword";
|
|
394
|
+
if (value == "enum") return cont(enumdef);
|
|
395
|
+
else if (value == "type") return cont(typename, expect("operator"), typeexpr, expect(";"));
|
|
396
|
+
else return cont(pushlex("form"), pattern, expect("{"), pushlex("}"), block, poplex, poplex);
|
|
397
|
+
} else if (isTS && value == "namespace") {
|
|
398
|
+
cx.marked = "keyword";
|
|
399
|
+
return cont(pushlex("form"), expression, statement, poplex);
|
|
400
|
+
} else if (isTS && value == "abstract") {
|
|
401
|
+
cx.marked = "keyword";
|
|
402
|
+
return cont(statement);
|
|
403
|
+
} else {
|
|
404
|
+
return cont(pushlex("stat"), maybelabel);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
if (type2 == "switch") return cont(
|
|
408
|
+
pushlex("form"),
|
|
409
|
+
parenExpr,
|
|
410
|
+
expect("{"),
|
|
411
|
+
pushlex("}", "switch"),
|
|
412
|
+
pushblockcontext,
|
|
413
|
+
block,
|
|
414
|
+
poplex,
|
|
415
|
+
poplex,
|
|
416
|
+
popcontext
|
|
417
|
+
);
|
|
418
|
+
if (type2 == "case") return cont(expression, expect(":"));
|
|
419
|
+
if (type2 == "default") return cont(expect(":"));
|
|
420
|
+
if (type2 == "catch") return cont(pushlex("form"), pushcontext, maybeCatchBinding, statement, poplex, popcontext);
|
|
421
|
+
if (type2 == "export") return cont(pushlex("stat"), afterExport, poplex);
|
|
422
|
+
if (type2 == "import") return cont(pushlex("stat"), afterImport, poplex);
|
|
423
|
+
if (type2 == "async") return cont(statement);
|
|
424
|
+
if (value == "@") return cont(expression, statement);
|
|
425
|
+
return pass(pushlex("stat"), expression, expect(";"), poplex);
|
|
426
|
+
}
|
|
427
|
+
function maybeCatchBinding(type2) {
|
|
428
|
+
if (type2 == "(") return cont(funarg, expect(")"));
|
|
429
|
+
}
|
|
430
|
+
function expression(type2, value) {
|
|
431
|
+
return expressionInner(type2, value, false);
|
|
432
|
+
}
|
|
433
|
+
function expressionNoComma(type2, value) {
|
|
434
|
+
return expressionInner(type2, value, true);
|
|
435
|
+
}
|
|
436
|
+
function parenExpr(type2) {
|
|
437
|
+
if (type2 != "(") return pass();
|
|
438
|
+
return cont(pushlex(")"), maybeexpression, expect(")"), poplex);
|
|
439
|
+
}
|
|
440
|
+
function expressionInner(type2, value, noComma) {
|
|
441
|
+
if (cx.state.fatArrowAt == cx.stream.start) {
|
|
442
|
+
var body = noComma ? arrowBodyNoComma : arrowBody;
|
|
443
|
+
if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, expect("=>"), body, popcontext);
|
|
444
|
+
else if (type2 == "variable") return pass(pushcontext, pattern, expect("=>"), body, popcontext);
|
|
445
|
+
}
|
|
446
|
+
var maybeop = noComma ? maybeoperatorNoComma : maybeoperatorComma;
|
|
447
|
+
if (atomicTypes.hasOwnProperty(type2)) return cont(maybeop);
|
|
448
|
+
if (type2 == "function") return cont(functiondef, maybeop);
|
|
449
|
+
if (type2 == "class" || isTS && value == "interface") {
|
|
450
|
+
cx.marked = "keyword";
|
|
451
|
+
return cont(pushlex("form"), classExpression, poplex);
|
|
452
|
+
}
|
|
453
|
+
if (type2 == "keyword c" || type2 == "async") return cont(noComma ? expressionNoComma : expression);
|
|
454
|
+
if (type2 == "(") return cont(pushlex(")"), maybeexpression, expect(")"), poplex, maybeop);
|
|
455
|
+
if (type2 == "operator" || type2 == "spread") return cont(noComma ? expressionNoComma : expression);
|
|
456
|
+
if (type2 == "[") return cont(pushlex("]"), arrayLiteral, poplex, maybeop);
|
|
457
|
+
if (type2 == "{") return contCommasep(objprop, "}", null, maybeop);
|
|
458
|
+
if (type2 == "quasi") return pass(quasi, maybeop);
|
|
459
|
+
if (type2 == "new") return cont(maybeTarget(noComma));
|
|
460
|
+
return cont();
|
|
461
|
+
}
|
|
462
|
+
function maybeexpression(type2) {
|
|
463
|
+
if (type2.match(/[;\}\)\],]/)) return pass();
|
|
464
|
+
return pass(expression);
|
|
465
|
+
}
|
|
466
|
+
function maybeoperatorComma(type2, value) {
|
|
467
|
+
if (type2 == ",") return cont(maybeexpression);
|
|
468
|
+
return maybeoperatorNoComma(type2, value, false);
|
|
469
|
+
}
|
|
470
|
+
function maybeoperatorNoComma(type2, value, noComma) {
|
|
471
|
+
var me = noComma == false ? maybeoperatorComma : maybeoperatorNoComma;
|
|
472
|
+
var expr = noComma == false ? expression : expressionNoComma;
|
|
473
|
+
if (type2 == "=>") return cont(pushcontext, noComma ? arrowBodyNoComma : arrowBody, popcontext);
|
|
474
|
+
if (type2 == "operator") {
|
|
475
|
+
if (/\+\+|--/.test(value) || isTS && value == "!") return cont(me);
|
|
476
|
+
if (isTS && value == "<" && cx.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/, false))
|
|
477
|
+
return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, me);
|
|
478
|
+
if (value == "?") return cont(expression, expect(":"), expr);
|
|
479
|
+
return cont(expr);
|
|
480
|
+
}
|
|
481
|
+
if (type2 == "quasi") {
|
|
482
|
+
return pass(quasi, me);
|
|
483
|
+
}
|
|
484
|
+
if (type2 == ";") return;
|
|
485
|
+
if (type2 == "(") return contCommasep(expressionNoComma, ")", "call", me);
|
|
486
|
+
if (type2 == ".") return cont(property, me);
|
|
487
|
+
if (type2 == "[") return cont(pushlex("]"), maybeexpression, expect("]"), poplex, me);
|
|
488
|
+
if (isTS && value == "as") {
|
|
489
|
+
cx.marked = "keyword";
|
|
490
|
+
return cont(typeexpr, me);
|
|
491
|
+
}
|
|
492
|
+
if (type2 == "regexp") {
|
|
493
|
+
cx.state.lastType = cx.marked = "operator";
|
|
494
|
+
cx.stream.backUp(cx.stream.pos - cx.stream.start - 1);
|
|
495
|
+
return cont(expr);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
function quasi(type2, value) {
|
|
499
|
+
if (type2 != "quasi") return pass();
|
|
500
|
+
if (value.slice(value.length - 2) != "${") return cont(quasi);
|
|
501
|
+
return cont(maybeexpression, continueQuasi);
|
|
502
|
+
}
|
|
503
|
+
function continueQuasi(type2) {
|
|
504
|
+
if (type2 == "}") {
|
|
505
|
+
cx.marked = "string.special";
|
|
506
|
+
cx.state.tokenize = tokenQuasi;
|
|
507
|
+
return cont(quasi);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
function arrowBody(type2) {
|
|
511
|
+
findFatArrow(cx.stream, cx.state);
|
|
512
|
+
return pass(type2 == "{" ? statement : expression);
|
|
513
|
+
}
|
|
514
|
+
function arrowBodyNoComma(type2) {
|
|
515
|
+
findFatArrow(cx.stream, cx.state);
|
|
516
|
+
return pass(type2 == "{" ? statement : expressionNoComma);
|
|
517
|
+
}
|
|
518
|
+
function maybeTarget(noComma) {
|
|
519
|
+
return function(type2) {
|
|
520
|
+
if (type2 == ".") return cont(noComma ? targetNoComma : target);
|
|
521
|
+
else if (type2 == "variable" && isTS) return cont(maybeTypeArgs, noComma ? maybeoperatorNoComma : maybeoperatorComma);
|
|
522
|
+
else return pass(noComma ? expressionNoComma : expression);
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
function target(_, value) {
|
|
526
|
+
if (value == "target") {
|
|
527
|
+
cx.marked = "keyword";
|
|
528
|
+
return cont(maybeoperatorComma);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
function targetNoComma(_, value) {
|
|
532
|
+
if (value == "target") {
|
|
533
|
+
cx.marked = "keyword";
|
|
534
|
+
return cont(maybeoperatorNoComma);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
function maybelabel(type2) {
|
|
538
|
+
if (type2 == ":") return cont(poplex, statement);
|
|
539
|
+
return pass(maybeoperatorComma, expect(";"), poplex);
|
|
540
|
+
}
|
|
541
|
+
function property(type2) {
|
|
542
|
+
if (type2 == "variable") {
|
|
543
|
+
cx.marked = "property";
|
|
544
|
+
return cont();
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function objprop(type2, value) {
|
|
548
|
+
if (type2 == "async") {
|
|
549
|
+
cx.marked = "property";
|
|
550
|
+
return cont(objprop);
|
|
551
|
+
} else if (type2 == "variable" || cx.style == "keyword") {
|
|
552
|
+
cx.marked = "property";
|
|
553
|
+
if (value == "get" || value == "set") return cont(getterSetter);
|
|
554
|
+
var m;
|
|
555
|
+
if (isTS && cx.state.fatArrowAt == cx.stream.start && (m = cx.stream.match(/^\s*:\s*/, false)))
|
|
556
|
+
cx.state.fatArrowAt = cx.stream.pos + m[0].length;
|
|
557
|
+
return cont(afterprop);
|
|
558
|
+
} else if (type2 == "number" || type2 == "string") {
|
|
559
|
+
cx.marked = jsonldMode ? "property" : cx.style + " property";
|
|
560
|
+
return cont(afterprop);
|
|
561
|
+
} else if (type2 == "jsonld-keyword") {
|
|
562
|
+
return cont(afterprop);
|
|
563
|
+
} else if (isTS && isModifier(value)) {
|
|
564
|
+
cx.marked = "keyword";
|
|
565
|
+
return cont(objprop);
|
|
566
|
+
} else if (type2 == "[") {
|
|
567
|
+
return cont(expression, maybetype, expect("]"), afterprop);
|
|
568
|
+
} else if (type2 == "spread") {
|
|
569
|
+
return cont(expressionNoComma, afterprop);
|
|
570
|
+
} else if (value == "*") {
|
|
571
|
+
cx.marked = "keyword";
|
|
572
|
+
return cont(objprop);
|
|
573
|
+
} else if (type2 == ":") {
|
|
574
|
+
return pass(afterprop);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
function getterSetter(type2) {
|
|
578
|
+
if (type2 != "variable") return pass(afterprop);
|
|
579
|
+
cx.marked = "property";
|
|
580
|
+
return cont(functiondef);
|
|
581
|
+
}
|
|
582
|
+
function afterprop(type2) {
|
|
583
|
+
if (type2 == ":") return cont(expressionNoComma);
|
|
584
|
+
if (type2 == "(") return pass(functiondef);
|
|
585
|
+
}
|
|
586
|
+
function commasep(what, end, sep) {
|
|
587
|
+
function proceed(type2, value) {
|
|
588
|
+
if (sep ? sep.indexOf(type2) > -1 : type2 == ",") {
|
|
589
|
+
var lex = cx.state.lexical;
|
|
590
|
+
if (lex.info == "call") lex.pos = (lex.pos || 0) + 1;
|
|
591
|
+
return cont(function(type3, value2) {
|
|
592
|
+
if (type3 == end || value2 == end) return pass();
|
|
593
|
+
return pass(what);
|
|
594
|
+
}, proceed);
|
|
595
|
+
}
|
|
596
|
+
if (type2 == end || value == end) return cont();
|
|
597
|
+
if (sep && sep.indexOf(";") > -1) return pass(what);
|
|
598
|
+
return cont(expect(end));
|
|
599
|
+
}
|
|
600
|
+
return function(type2, value) {
|
|
601
|
+
if (type2 == end || value == end) return cont();
|
|
602
|
+
return pass(what, proceed);
|
|
603
|
+
};
|
|
604
|
+
}
|
|
605
|
+
function contCommasep(what, end, info) {
|
|
606
|
+
for (var i = 3; i < arguments.length; i++)
|
|
607
|
+
cx.cc.push(arguments[i]);
|
|
608
|
+
return cont(pushlex(end, info), commasep(what, end), poplex);
|
|
609
|
+
}
|
|
610
|
+
function block(type2) {
|
|
611
|
+
if (type2 == "}") return cont();
|
|
612
|
+
return pass(statement, block);
|
|
613
|
+
}
|
|
614
|
+
function maybetype(type2, value) {
|
|
615
|
+
if (isTS) {
|
|
616
|
+
if (type2 == ":") return cont(typeexpr);
|
|
617
|
+
if (value == "?") return cont(maybetype);
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
function maybetypeOrIn(type2, value) {
|
|
621
|
+
if (isTS && (type2 == ":" || value == "in")) return cont(typeexpr);
|
|
622
|
+
}
|
|
623
|
+
function mayberettype(type2) {
|
|
624
|
+
if (isTS && type2 == ":") {
|
|
625
|
+
if (cx.stream.match(/^\s*\w+\s+is\b/, false)) return cont(expression, isKW, typeexpr);
|
|
626
|
+
else return cont(typeexpr);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
function isKW(_, value) {
|
|
630
|
+
if (value == "is") {
|
|
631
|
+
cx.marked = "keyword";
|
|
632
|
+
return cont();
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
function typeexpr(type2, value) {
|
|
636
|
+
if (value == "keyof" || value == "typeof" || value == "infer" || value == "readonly") {
|
|
637
|
+
cx.marked = "keyword";
|
|
638
|
+
return cont(value == "typeof" ? expressionNoComma : typeexpr);
|
|
639
|
+
}
|
|
640
|
+
if (type2 == "variable" || value == "void") {
|
|
641
|
+
cx.marked = "type";
|
|
642
|
+
return cont(afterType);
|
|
643
|
+
}
|
|
644
|
+
if (value == "|" || value == "&") return cont(typeexpr);
|
|
645
|
+
if (type2 == "string" || type2 == "number" || type2 == "atom") return cont(afterType);
|
|
646
|
+
if (type2 == "[") return cont(pushlex("]"), commasep(typeexpr, "]", ","), poplex, afterType);
|
|
647
|
+
if (type2 == "{") return cont(pushlex("}"), typeprops, poplex, afterType);
|
|
648
|
+
if (type2 == "(") return cont(commasep(typearg, ")"), maybeReturnType, afterType);
|
|
649
|
+
if (type2 == "<") return cont(commasep(typeexpr, ">"), typeexpr);
|
|
650
|
+
if (type2 == "quasi") return pass(quasiType, afterType);
|
|
651
|
+
}
|
|
652
|
+
function maybeReturnType(type2) {
|
|
653
|
+
if (type2 == "=>") return cont(typeexpr);
|
|
654
|
+
}
|
|
655
|
+
function typeprops(type2) {
|
|
656
|
+
if (type2.match(/[\}\)\]]/)) return cont();
|
|
657
|
+
if (type2 == "," || type2 == ";") return cont(typeprops);
|
|
658
|
+
return pass(typeprop, typeprops);
|
|
659
|
+
}
|
|
660
|
+
function typeprop(type2, value) {
|
|
661
|
+
if (type2 == "variable" || cx.style == "keyword") {
|
|
662
|
+
cx.marked = "property";
|
|
663
|
+
return cont(typeprop);
|
|
664
|
+
} else if (value == "?" || type2 == "number" || type2 == "string") {
|
|
665
|
+
return cont(typeprop);
|
|
666
|
+
} else if (type2 == ":") {
|
|
667
|
+
return cont(typeexpr);
|
|
668
|
+
} else if (type2 == "[") {
|
|
669
|
+
return cont(expect("variable"), maybetypeOrIn, expect("]"), typeprop);
|
|
670
|
+
} else if (type2 == "(") {
|
|
671
|
+
return pass(functiondecl, typeprop);
|
|
672
|
+
} else if (!type2.match(/[;\}\)\],]/)) {
|
|
673
|
+
return cont();
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
function quasiType(type2, value) {
|
|
677
|
+
if (type2 != "quasi") return pass();
|
|
678
|
+
if (value.slice(value.length - 2) != "${") return cont(quasiType);
|
|
679
|
+
return cont(typeexpr, continueQuasiType);
|
|
680
|
+
}
|
|
681
|
+
function continueQuasiType(type2) {
|
|
682
|
+
if (type2 == "}") {
|
|
683
|
+
cx.marked = "string.special";
|
|
684
|
+
cx.state.tokenize = tokenQuasi;
|
|
685
|
+
return cont(quasiType);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
function typearg(type2, value) {
|
|
689
|
+
if (type2 == "variable" && cx.stream.match(/^\s*[?:]/, false) || value == "?") return cont(typearg);
|
|
690
|
+
if (type2 == ":") return cont(typeexpr);
|
|
691
|
+
if (type2 == "spread") return cont(typearg);
|
|
692
|
+
return pass(typeexpr);
|
|
693
|
+
}
|
|
694
|
+
function afterType(type2, value) {
|
|
695
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType);
|
|
696
|
+
if (value == "|" || type2 == "." || value == "&") return cont(typeexpr);
|
|
697
|
+
if (type2 == "[") return cont(typeexpr, expect("]"), afterType);
|
|
698
|
+
if (value == "extends" || value == "implements") {
|
|
699
|
+
cx.marked = "keyword";
|
|
700
|
+
return cont(typeexpr);
|
|
701
|
+
}
|
|
702
|
+
if (value == "?") return cont(typeexpr, expect(":"), typeexpr);
|
|
703
|
+
}
|
|
704
|
+
function maybeTypeArgs(_, value) {
|
|
705
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeexpr, ">"), poplex, afterType);
|
|
706
|
+
}
|
|
707
|
+
function typeparam() {
|
|
708
|
+
return pass(typeexpr, maybeTypeDefault);
|
|
709
|
+
}
|
|
710
|
+
function maybeTypeDefault(_, value) {
|
|
711
|
+
if (value == "=") return cont(typeexpr);
|
|
712
|
+
}
|
|
713
|
+
function vardef(_, value) {
|
|
714
|
+
if (value == "enum") {
|
|
715
|
+
cx.marked = "keyword";
|
|
716
|
+
return cont(enumdef);
|
|
717
|
+
}
|
|
718
|
+
return pass(pattern, maybetype, maybeAssign, vardefCont);
|
|
719
|
+
}
|
|
720
|
+
function pattern(type2, value) {
|
|
721
|
+
if (isTS && isModifier(value)) {
|
|
722
|
+
cx.marked = "keyword";
|
|
723
|
+
return cont(pattern);
|
|
724
|
+
}
|
|
725
|
+
if (type2 == "variable") {
|
|
726
|
+
register(value);
|
|
727
|
+
return cont();
|
|
728
|
+
}
|
|
729
|
+
if (type2 == "spread") return cont(pattern);
|
|
730
|
+
if (type2 == "[") return contCommasep(eltpattern, "]");
|
|
731
|
+
if (type2 == "{") return contCommasep(proppattern, "}");
|
|
732
|
+
}
|
|
733
|
+
function proppattern(type2, value) {
|
|
734
|
+
if (type2 == "variable" && !cx.stream.match(/^\s*:/, false)) {
|
|
735
|
+
register(value);
|
|
736
|
+
return cont(maybeAssign);
|
|
737
|
+
}
|
|
738
|
+
if (type2 == "variable") cx.marked = "property";
|
|
739
|
+
if (type2 == "spread") return cont(pattern);
|
|
740
|
+
if (type2 == "}") return pass();
|
|
741
|
+
if (type2 == "[") return cont(expression, expect("]"), expect(":"), proppattern);
|
|
742
|
+
return cont(expect(":"), pattern, maybeAssign);
|
|
743
|
+
}
|
|
744
|
+
function eltpattern() {
|
|
745
|
+
return pass(pattern, maybeAssign);
|
|
746
|
+
}
|
|
747
|
+
function maybeAssign(_type, value) {
|
|
748
|
+
if (value == "=") return cont(expressionNoComma);
|
|
749
|
+
}
|
|
750
|
+
function vardefCont(type2) {
|
|
751
|
+
if (type2 == ",") return cont(vardef);
|
|
752
|
+
}
|
|
753
|
+
function maybeelse(type2, value) {
|
|
754
|
+
if (type2 == "keyword b" && value == "else") return cont(pushlex("form", "else"), statement, poplex);
|
|
755
|
+
}
|
|
756
|
+
function forspec(type2, value) {
|
|
757
|
+
if (value == "await") return cont(forspec);
|
|
758
|
+
if (type2 == "(") return cont(pushlex(")"), forspec1, poplex);
|
|
759
|
+
}
|
|
760
|
+
function forspec1(type2) {
|
|
761
|
+
if (type2 == "var") return cont(vardef, forspec2);
|
|
762
|
+
if (type2 == "variable") return cont(forspec2);
|
|
763
|
+
return pass(forspec2);
|
|
764
|
+
}
|
|
765
|
+
function forspec2(type2, value) {
|
|
766
|
+
if (type2 == ")") return cont();
|
|
767
|
+
if (type2 == ";") return cont(forspec2);
|
|
768
|
+
if (value == "in" || value == "of") {
|
|
769
|
+
cx.marked = "keyword";
|
|
770
|
+
return cont(expression, forspec2);
|
|
771
|
+
}
|
|
772
|
+
return pass(expression, forspec2);
|
|
773
|
+
}
|
|
774
|
+
function functiondef(type2, value) {
|
|
775
|
+
if (value == "*") {
|
|
776
|
+
cx.marked = "keyword";
|
|
777
|
+
return cont(functiondef);
|
|
778
|
+
}
|
|
779
|
+
if (type2 == "variable") {
|
|
780
|
+
register(value);
|
|
781
|
+
return cont(functiondef);
|
|
782
|
+
}
|
|
783
|
+
if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, statement, popcontext);
|
|
784
|
+
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondef);
|
|
785
|
+
}
|
|
786
|
+
function functiondecl(type2, value) {
|
|
787
|
+
if (value == "*") {
|
|
788
|
+
cx.marked = "keyword";
|
|
789
|
+
return cont(functiondecl);
|
|
790
|
+
}
|
|
791
|
+
if (type2 == "variable") {
|
|
792
|
+
register(value);
|
|
793
|
+
return cont(functiondecl);
|
|
794
|
+
}
|
|
795
|
+
if (type2 == "(") return cont(pushcontext, pushlex(")"), commasep(funarg, ")"), poplex, mayberettype, popcontext);
|
|
796
|
+
if (isTS && value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, functiondecl);
|
|
797
|
+
}
|
|
798
|
+
function typename(type2, value) {
|
|
799
|
+
if (type2 == "keyword" || type2 == "variable") {
|
|
800
|
+
cx.marked = "type";
|
|
801
|
+
return cont(typename);
|
|
802
|
+
} else if (value == "<") {
|
|
803
|
+
return cont(pushlex(">"), commasep(typeparam, ">"), poplex);
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
function funarg(type2, value) {
|
|
807
|
+
if (value == "@") cont(expression, funarg);
|
|
808
|
+
if (type2 == "spread") return cont(funarg);
|
|
809
|
+
if (isTS && isModifier(value)) {
|
|
810
|
+
cx.marked = "keyword";
|
|
811
|
+
return cont(funarg);
|
|
812
|
+
}
|
|
813
|
+
if (isTS && type2 == "this") return cont(maybetype, maybeAssign);
|
|
814
|
+
return pass(pattern, maybetype, maybeAssign);
|
|
815
|
+
}
|
|
816
|
+
function classExpression(type2, value) {
|
|
817
|
+
if (type2 == "variable") return className(type2, value);
|
|
818
|
+
return classNameAfter(type2, value);
|
|
819
|
+
}
|
|
820
|
+
function className(type2, value) {
|
|
821
|
+
if (type2 == "variable") {
|
|
822
|
+
register(value);
|
|
823
|
+
return cont(classNameAfter);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
function classNameAfter(type2, value) {
|
|
827
|
+
if (value == "<") return cont(pushlex(">"), commasep(typeparam, ">"), poplex, classNameAfter);
|
|
828
|
+
if (value == "extends" || value == "implements" || isTS && type2 == ",") {
|
|
829
|
+
if (value == "implements") cx.marked = "keyword";
|
|
830
|
+
return cont(isTS ? typeexpr : expression, classNameAfter);
|
|
831
|
+
}
|
|
832
|
+
if (type2 == "{") return cont(pushlex("}"), classBody, poplex);
|
|
833
|
+
}
|
|
834
|
+
function classBody(type2, value) {
|
|
835
|
+
if (type2 == "async" || type2 == "variable" && (value == "static" || value == "get" || value == "set" || isTS && isModifier(value)) && cx.stream.match(/^\s+#?[\w$\xa1-\uffff]/, false)) {
|
|
836
|
+
cx.marked = "keyword";
|
|
837
|
+
return cont(classBody);
|
|
838
|
+
}
|
|
839
|
+
if (type2 == "variable" || cx.style == "keyword") {
|
|
840
|
+
cx.marked = "property";
|
|
841
|
+
return cont(classfield, classBody);
|
|
842
|
+
}
|
|
843
|
+
if (type2 == "number" || type2 == "string") return cont(classfield, classBody);
|
|
844
|
+
if (type2 == "[")
|
|
845
|
+
return cont(expression, maybetype, expect("]"), classfield, classBody);
|
|
846
|
+
if (value == "*") {
|
|
847
|
+
cx.marked = "keyword";
|
|
848
|
+
return cont(classBody);
|
|
849
|
+
}
|
|
850
|
+
if (isTS && type2 == "(") return pass(functiondecl, classBody);
|
|
851
|
+
if (type2 == ";" || type2 == ",") return cont(classBody);
|
|
852
|
+
if (type2 == "}") return cont();
|
|
853
|
+
if (value == "@") return cont(expression, classBody);
|
|
854
|
+
}
|
|
855
|
+
function classfield(type2, value) {
|
|
856
|
+
if (value == "!" || value == "?") return cont(classfield);
|
|
857
|
+
if (type2 == ":") return cont(typeexpr, maybeAssign);
|
|
858
|
+
if (value == "=") return cont(expressionNoComma);
|
|
859
|
+
var context = cx.state.lexical.prev, isInterface = context && context.info == "interface";
|
|
860
|
+
return pass(isInterface ? functiondecl : functiondef);
|
|
861
|
+
}
|
|
862
|
+
function afterExport(type2, value) {
|
|
863
|
+
if (value == "*") {
|
|
864
|
+
cx.marked = "keyword";
|
|
865
|
+
return cont(maybeFrom, expect(";"));
|
|
866
|
+
}
|
|
867
|
+
if (value == "default") {
|
|
868
|
+
cx.marked = "keyword";
|
|
869
|
+
return cont(expression, expect(";"));
|
|
870
|
+
}
|
|
871
|
+
if (type2 == "{") return cont(commasep(exportField, "}"), maybeFrom, expect(";"));
|
|
872
|
+
return pass(statement);
|
|
873
|
+
}
|
|
874
|
+
function exportField(type2, value) {
|
|
875
|
+
if (value == "as") {
|
|
876
|
+
cx.marked = "keyword";
|
|
877
|
+
return cont(expect("variable"));
|
|
878
|
+
}
|
|
879
|
+
if (type2 == "variable") return pass(expressionNoComma, exportField);
|
|
880
|
+
}
|
|
881
|
+
function afterImport(type2) {
|
|
882
|
+
if (type2 == "string") return cont();
|
|
883
|
+
if (type2 == "(") return pass(expression);
|
|
884
|
+
if (type2 == ".") return pass(maybeoperatorComma);
|
|
885
|
+
return pass(importSpec, maybeMoreImports, maybeFrom);
|
|
886
|
+
}
|
|
887
|
+
function importSpec(type2, value) {
|
|
888
|
+
if (type2 == "{") return contCommasep(importSpec, "}");
|
|
889
|
+
if (type2 == "variable") register(value);
|
|
890
|
+
if (value == "*") cx.marked = "keyword";
|
|
891
|
+
return cont(maybeAs);
|
|
892
|
+
}
|
|
893
|
+
function maybeMoreImports(type2) {
|
|
894
|
+
if (type2 == ",") return cont(importSpec, maybeMoreImports);
|
|
895
|
+
}
|
|
896
|
+
function maybeAs(_type, value) {
|
|
897
|
+
if (value == "as") {
|
|
898
|
+
cx.marked = "keyword";
|
|
899
|
+
return cont(importSpec);
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
function maybeFrom(_type, value) {
|
|
903
|
+
if (value == "from") {
|
|
904
|
+
cx.marked = "keyword";
|
|
905
|
+
return cont(expression);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
function arrayLiteral(type2) {
|
|
909
|
+
if (type2 == "]") return cont();
|
|
910
|
+
return pass(commasep(expressionNoComma, "]"));
|
|
911
|
+
}
|
|
912
|
+
function enumdef() {
|
|
913
|
+
return pass(pushlex("form"), pattern, expect("{"), pushlex("}"), commasep(enummember, "}"), poplex, poplex);
|
|
914
|
+
}
|
|
915
|
+
function enummember() {
|
|
916
|
+
return pass(pattern, maybeAssign);
|
|
917
|
+
}
|
|
918
|
+
function isContinuedStatement(state, textAfter) {
|
|
919
|
+
return state.lastType == "operator" || state.lastType == "," || isOperatorChar.test(textAfter.charAt(0)) || /[,.]/.test(textAfter.charAt(0));
|
|
920
|
+
}
|
|
921
|
+
function expressionAllowed(stream, state, backUp) {
|
|
922
|
+
return state.tokenize == tokenBase && /^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(state.lastType) || state.lastType == "quasi" && /\{\s*$/.test(stream.string.slice(0, stream.pos - backUp));
|
|
923
|
+
}
|
|
924
|
+
return {
|
|
925
|
+
name: parserConfig.name,
|
|
926
|
+
startState: function(indentUnit) {
|
|
927
|
+
var state = {
|
|
928
|
+
tokenize: tokenBase,
|
|
929
|
+
lastType: "sof",
|
|
930
|
+
cc: [],
|
|
931
|
+
lexical: new JSLexical(-indentUnit, 0, "block", false),
|
|
932
|
+
localVars: parserConfig.localVars,
|
|
933
|
+
context: parserConfig.localVars && new Context(null, null, false),
|
|
934
|
+
indented: 0
|
|
935
|
+
};
|
|
936
|
+
if (parserConfig.globalVars && typeof parserConfig.globalVars == "object")
|
|
937
|
+
state.globalVars = parserConfig.globalVars;
|
|
938
|
+
return state;
|
|
939
|
+
},
|
|
940
|
+
token: function(stream, state) {
|
|
941
|
+
if (stream.sol()) {
|
|
942
|
+
if (!state.lexical.hasOwnProperty("align"))
|
|
943
|
+
state.lexical.align = false;
|
|
944
|
+
state.indented = stream.indentation();
|
|
945
|
+
findFatArrow(stream, state);
|
|
946
|
+
}
|
|
947
|
+
if (state.tokenize != tokenComment && stream.eatSpace()) return null;
|
|
948
|
+
var style = state.tokenize(stream, state);
|
|
949
|
+
if (type == "comment") return style;
|
|
950
|
+
state.lastType = type == "operator" && (content == "++" || content == "--") ? "incdec" : type;
|
|
951
|
+
return parseJS(state, style, type, content, stream);
|
|
952
|
+
},
|
|
953
|
+
indent: function(state, textAfter, cx2) {
|
|
954
|
+
if (state.tokenize == tokenComment || state.tokenize == tokenQuasi) return null;
|
|
955
|
+
if (state.tokenize != tokenBase) return 0;
|
|
956
|
+
var firstChar = textAfter && textAfter.charAt(0), lexical = state.lexical, top;
|
|
957
|
+
if (!/^\s*else\b/.test(textAfter)) for (var i = state.cc.length - 1; i >= 0; --i) {
|
|
958
|
+
var c = state.cc[i];
|
|
959
|
+
if (c == poplex) lexical = lexical.prev;
|
|
960
|
+
else if (c != maybeelse && c != popcontext) break;
|
|
961
|
+
}
|
|
962
|
+
while ((lexical.type == "stat" || lexical.type == "form") && (firstChar == "}" || (top = state.cc[state.cc.length - 1]) && (top == maybeoperatorComma || top == maybeoperatorNoComma) && !/^[,\.=+\-*:?[\(]/.test(textAfter)))
|
|
963
|
+
lexical = lexical.prev;
|
|
964
|
+
if (statementIndent && lexical.type == ")" && lexical.prev.type == "stat")
|
|
965
|
+
lexical = lexical.prev;
|
|
966
|
+
var type2 = lexical.type, closing = firstChar == type2;
|
|
967
|
+
if (type2 == "vardef") return lexical.indented + (state.lastType == "operator" || state.lastType == "," ? lexical.info.length + 1 : 0);
|
|
968
|
+
else if (type2 == "form" && firstChar == "{") return lexical.indented;
|
|
969
|
+
else if (type2 == "form") return lexical.indented + cx2.unit;
|
|
970
|
+
else if (type2 == "stat")
|
|
971
|
+
return lexical.indented + (isContinuedStatement(state, textAfter) ? statementIndent || cx2.unit : 0);
|
|
972
|
+
else if (lexical.info == "switch" && !closing && parserConfig.doubleIndentSwitch != false)
|
|
973
|
+
return lexical.indented + (/^(?:case|default)\b/.test(textAfter) ? cx2.unit : 2 * cx2.unit);
|
|
974
|
+
else if (lexical.align) return lexical.column + (closing ? 0 : 1);
|
|
975
|
+
else return lexical.indented + (closing ? 0 : cx2.unit);
|
|
976
|
+
},
|
|
977
|
+
languageData: {
|
|
978
|
+
indentOnInput: /^\s*(?:case .*?:|default:|\{|\})$/,
|
|
979
|
+
commentTokens: jsonMode ? void 0 : { line: "//", block: { open: "/*", close: "*/" } },
|
|
980
|
+
closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] },
|
|
981
|
+
wordChars: "$"
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
}
|
|
985
|
+
const javascript = mkJavaScript({ name: "javascript" });
|
|
986
|
+
mkJavaScript({ name: "json", json: true });
|
|
987
|
+
const jsonld = mkJavaScript({ name: "json", jsonld: true });
|
|
988
|
+
mkJavaScript({ name: "typescript", typescript: true });
|
|
989
|
+
export {
|
|
990
|
+
javascript,
|
|
991
|
+
jsonld
|
|
992
|
+
};
|