richtor 1.0.7 → 1.0.10
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/editor.es.js +22627 -68317
- package/dist/editor.umd.js +56 -279
- package/dist/lib/highlight.d.ts +1 -2
- package/package.json +27 -10
- package/dist/abap-Y8Dl9g_6.js +0 -6
- package/dist/actionscript-3-DZzbMeqX.js +0 -6
- package/dist/ada-vP6ak0IW.js +0 -6
- package/dist/andromeeda-BIpZ7gaU.js +0 -4
- package/dist/angular-html-DPB4Rf0C.js +0 -32
- package/dist/angular-ts-CTOR2ofC.js +0 -21
- package/dist/apache-BUjz-sD2.js +0 -6
- package/dist/apex-oLhhs58q.js +0 -6
- package/dist/apl-CjNiDgad.js +0 -16
- package/dist/applescript-BPx7YFFu.js +0 -6
- package/dist/ara-Z2fSOxSw.js +0 -6
- package/dist/asciidoc-B-pCoB3G.js +0 -6
- package/dist/asm-BTWLY5ym.js +0 -6
- package/dist/astro-CFFExE8Q.js +0 -18
- package/dist/aurora-x-BwoVEUWZ.js +0 -4
- package/dist/awk-Fb0P9dkn.js +0 -6
- package/dist/ayu-dark-CxPZkpb2.js +0 -4
- package/dist/ballerina-oZK-YekG.js +0 -6
- package/dist/bash-CPB87Egg.js +0 -377
- package/dist/bat-0FvbqU9S.js +0 -6
- package/dist/beancount-DqJEb89h.js +0 -6
- package/dist/berry-DODBq_Ff.js +0 -6
- package/dist/bibtex-EULQRLY5.js +0 -6
- package/dist/bicep-BorU73w0.js +0 -6
- package/dist/blade-CRa6j5zS.js +0 -20
- package/dist/bsl-NkNNwerW.js +0 -8
- package/dist/c-Bz1-FJiA.js +0 -277
- package/dist/c-eeMepfLm.js +0 -6
- package/dist/cadence-02UX7mW8.js +0 -6
- package/dist/cairo-DM6WF2e3.js +0 -8
- package/dist/catppuccin-frappe-D3cH2rXe.js +0 -4
- package/dist/catppuccin-latte-C0LRGUW4.js +0 -4
- package/dist/catppuccin-macchiato-c5wQ11TT.js +0 -4
- package/dist/catppuccin-mocha-WMD6Qvya.js +0 -4
- package/dist/clarity-PKm5CwqM.js +0 -6
- package/dist/clojure-CXJfHrL3.js +0 -6
- package/dist/cmake-BJz8BOTU.js +0 -6
- package/dist/cobol-HihOMwht.js +0 -10
- package/dist/codeowners-Bt9yU6NX.js +0 -6
- package/dist/codeql-DHkodjjI.js +0 -6
- package/dist/coffee-DGBR_nr_.js +0 -8
- package/dist/common-lisp-EVqT9Zhp.js +0 -6
- package/dist/coq-B0L9upzn.js +0 -6
- package/dist/cpp-Cj177cuW.js +0 -18
- package/dist/crystal-CRJyc4G-.js +0 -18
- package/dist/csharp-AnFv7wyC.js +0 -382
- package/dist/csharp-C7yUs7-w.js +0 -6
- package/dist/css-BCTOmdxR.js +0 -923
- package/dist/css-CECN5uSL.js +0 -6
- package/dist/csv-CmYOceLb.js +0 -6
- package/dist/cue-ZzumE7IT.js +0 -6
- package/dist/cypher-jpdmjtA6.js +0 -6
- package/dist/d-CBagWSwH.js +0 -6
- package/dist/dark-plus-pUHDTVV0.js +0 -4
- package/dist/dart-6ObCrKr9.js +0 -6
- package/dist/dax-CcDT-8dH.js +0 -6
- package/dist/desktop-B93p9R9O.js +0 -6
- package/dist/diff-BxzP2J8R.js +0 -6
- package/dist/docker-CsHqm9tx.js +0 -6
- package/dist/dotenv-BMjVjUL1.js +0 -6
- package/dist/dracula-BtZx2Kac.js +0 -4
- package/dist/dracula-soft-BKa-aqBv.js +0 -4
- package/dist/dream-maker-PAx17jaB.js +0 -6
- package/dist/edge-BYQkOzbF.js +0 -12
- package/dist/elixir-Dh036GMp.js +0 -8
- package/dist/elm-BtNbw_Cd.js +0 -8
- package/dist/emacs-lisp-Cfxdx5D-.js +0 -6
- package/dist/erb-CS4zioBv.js +0 -10
- package/dist/erlang-DNcDT8Hi.js +0 -8
- package/dist/everforest-dark-DMCBqXCK.js +0 -4
- package/dist/everforest-light-BbXl82Em.js +0 -4
- package/dist/fennel-N4WcXuKx.js +0 -6
- package/dist/fish-BTDEUgqH.js +0 -6
- package/dist/fluent-BMXUxfv1.js +0 -6
- package/dist/fortran-fixed-form-DUsA-VGo.js +0 -8
- package/dist/fortran-free-form-DPIT_jbP.js +0 -6
- package/dist/fsharp-CYOiIVNx.js +0 -8
- package/dist/gdresource-BwtMIoBm.js +0 -10
- package/dist/gdscript-BifyeYhI.js +0 -6
- package/dist/gdshader-Bk8fF6yr.js +0 -6
- package/dist/genie-DzUvd7U9.js +0 -6
- package/dist/gherkin-DHRaV0YP.js +0 -6
- package/dist/git-commit-Bd32YZ0K.js +0 -8
- package/dist/git-rebase-ZWUFO_T4.js +0 -8
- package/dist/github-dark-DenFmJkN.js +0 -4
- package/dist/github-dark-default-BJPUVz4H.js +0 -4
- package/dist/github-dark-dimmed-DUshB20C.js +0 -4
- package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
- package/dist/github-light-JYsPkUQd.js +0 -4
- package/dist/github-light-default-D99KPAby.js +0 -4
- package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
- package/dist/gleam-Bv284lvN.js +0 -6
- package/dist/glimmer-js-DkxNrfPT.js +0 -14
- package/dist/glimmer-ts-D6YZEmK_.js +0 -14
- package/dist/glsl-CkUcVZNK.js +0 -8
- package/dist/gnuplot-yPG9-sE_.js +0 -6
- package/dist/go-ChxJuLYK.js +0 -6
- package/dist/go-CkZ9_bn0.js +0 -151
- package/dist/graphql-CBu2ehBn.js +0 -14
- package/dist/graphql-CHx1gYw6.js +0 -70
- package/dist/groovy-CJQTphOW.js +0 -6
- package/dist/gruvbox-dark-hard-C5HOtKIh.js +0 -4
- package/dist/gruvbox-dark-medium-FVgwJHuz.js +0 -4
- package/dist/gruvbox-dark-soft-B46F314v.js +0 -4
- package/dist/gruvbox-light-hard-CJD38wDZ.js +0 -4
- package/dist/gruvbox-light-medium-BlIhMYTA.js +0 -4
- package/dist/gruvbox-light-soft-DoPHyLVZ.js +0 -4
- package/dist/hack-ItRNKiEb.js +0 -10
- package/dist/haml-NZLVzu_R.js +0 -10
- package/dist/handlebars-mxStpSE7.js +0 -14
- package/dist/haskell-WeIwNIP6.js +0 -6
- package/dist/haxe-TztHsm5T.js +0 -6
- package/dist/hcl-D438OF-I.js +0 -6
- package/dist/hjson-DYBUbqOl.js +0 -6
- package/dist/hlsl-Bk8TCZNL.js +0 -6
- package/dist/houston-BDYrDoDW.js +0 -4
- package/dist/html-B50bmoVb.js +0 -10
- package/dist/html-derivative-C6bxFbFW.js +0 -8
- package/dist/http-DLvAkeD-.js +0 -14
- package/dist/hurl-CgkFN90t.js +0 -12
- package/dist/hxml-GbqSQCLa.js +0 -8
- package/dist/hy-Brt5EZ7-.js +0 -6
- package/dist/imba-CimUv-Uh.js +0 -6
- package/dist/ini-BZIuRIvJ.js +0 -6
- package/dist/java-BicX26Pg.js +0 -240
- package/dist/java-DY6VlHhP.js +0 -6
- package/dist/javascript-C25yR2R2.js +0 -6
- package/dist/javascript-DII1YQGr.js +0 -658
- package/dist/jinja-CFW5uAwY.js +0 -11
- package/dist/jison-DdreslRX.js +0 -8
- package/dist/json-C_6Prymp.js +0 -38
- package/dist/json-DxJze_jm.js +0 -6
- package/dist/json5-BT4Fjg39.js +0 -6
- package/dist/jsonc-CHjZD8gR.js +0 -6
- package/dist/jsonl-BGuvDmy9.js +0 -6
- package/dist/jsonnet-Bx2cfsXg.js +0 -6
- package/dist/jssm-BcADi6EI.js +0 -6
- package/dist/jsx-BtKADgXT.js +0 -6
- package/dist/julia--2-efCjg.js +0 -16
- package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
- package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
- package/dist/kanagawa-wave-CQwozSzG.js +0 -4
- package/dist/kdl-BNOv9TC3.js +0 -6
- package/dist/kotlin-BwB8b-YX.js +0 -242
- package/dist/kotlin-ByBMgTeR.js +0 -6
- package/dist/kusto-VWFLl2T0.js +0 -6
- package/dist/laserwave-6a00oqik.js +0 -4
- package/dist/latex-Cs75fyNk.js +0 -8
- package/dist/lean-D5yRrexI.js +0 -6
- package/dist/less-B1GLI2Di.js +0 -6
- package/dist/less-DeNOeXmL.js +0 -992
- package/dist/light-plus-CZuVqSLX.js +0 -4
- package/dist/liquid-CHzkx3jT.js +0 -14
- package/dist/llvm-co1rIKs3.js +0 -6
- package/dist/log-Al8wyEFV.js +0 -6
- package/dist/logo-DBa4JDzV.js +0 -6
- package/dist/lua-kX5WP_P5.js +0 -8
- package/dist/luau-DtBSxLyz.js +0 -6
- package/dist/make-CsMclxtr.js +0 -6
- package/dist/makefile-D-gl0qMV.js +0 -67
- package/dist/markdown-CrScaQ96.js +0 -6
- package/dist/markdown-ga2-2-T7.js +0 -216
- package/dist/marko-ls0Jg2j8.js +0 -14
- package/dist/material-theme-D6KBX41T.js +0 -4
- package/dist/material-theme-darker-CkRroheE.js +0 -4
- package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
- package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
- package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
- package/dist/matlab-BOAaUVP0.js +0 -6
- package/dist/mdc-uaivvctV.js +0 -12
- package/dist/mdx-BOhZZUJ8.js +0 -6
- package/dist/mermaid-B0ixDHKN.js +0 -6
- package/dist/min-dark-C7ak0t6c.js +0 -4
- package/dist/min-light-CKFxVcPp.js +0 -4
- package/dist/mipsasm-CTx18fBl.js +0 -6
- package/dist/mojo-BD611d7o.js +0 -6
- package/dist/monokai-C1KBYcO0.js +0 -4
- package/dist/move-F-dICmj2.js +0 -6
- package/dist/narrat-DmhDCBs-.js +0 -6
- package/dist/nextflow-DmSVRGjG.js +0 -6
- package/dist/nginx-5vhPAEw3.js +0 -8
- package/dist/night-owl-Bm2rzalh.js +0 -4
- package/dist/nim-QAjRdh9w.js +0 -20
- package/dist/nix-BZK5F767.js +0 -9
- package/dist/nord-CC5OiUXg.js +0 -4
- package/dist/nushell-D8j3dhT-.js +0 -6
- package/dist/objective-c-Itk8tzmv.js +0 -6
- package/dist/objective-cpp-DGt5UKRO.js +0 -6
- package/dist/objectivec-CnyrJ13Z.js +0 -237
- package/dist/ocaml-eSVK32Eg.js +0 -6
- package/dist/one-dark-pro-DTA3VF0_.js +0 -4
- package/dist/one-light-D9sNaUtq.js +0 -4
- package/dist/openscad-Sp5uZ6f2.js +0 -6
- package/dist/pascal-xy8pJNns.js +0 -6
- package/dist/perl-DkVrgJBg.js +0 -16
- package/dist/php-BL35ZHWM.js +0 -566
- package/dist/php-j2zCzTEz.js +0 -18
- package/dist/pkl-C-zSNmaA.js +0 -6
- package/dist/plastic-CSTz3KZp.js +0 -4
- package/dist/plsql-pVbGZfOv.js +0 -6
- package/dist/po-BNfHvqmm.js +0 -6
- package/dist/poimandres-C-VADXHD.js +0 -4
- package/dist/polar-CAZahv3u.js +0 -6
- package/dist/postcss-05aHdL-n.js +0 -6
- package/dist/powerquery-DI9HkTvs.js +0 -6
- package/dist/powershell-Clc4ydu-.js +0 -6
- package/dist/prisma-FZjmVtSl.js +0 -6
- package/dist/prolog-C5-yg4TO.js +0 -6
- package/dist/proto-MmCPeFAD.js +0 -6
- package/dist/pug-XOw9Q1Ho.js +0 -12
- package/dist/puppet-CUJHmnxV.js +0 -6
- package/dist/purescript-rUfGld-4.js +0 -6
- package/dist/python-BFNSHbwJ.js +0 -6
- package/dist/python-CymlFLB0.js +0 -399
- package/dist/qml-rTNXsquU.js +0 -8
- package/dist/qmldir-BInDYbpo.js +0 -6
- package/dist/qss-AeJTysr_.js +0 -6
- package/dist/r-Bm0uF0U2.js +0 -6
- package/dist/racket-B83wSAja.js +0 -6
- package/dist/raku-nEQ4ZJJ7.js +0 -6
- package/dist/razor-B1z-bksM.js +0 -10
- package/dist/red-7y8PH7HH.js +0 -4
- package/dist/reg-m_s_Kiip.js +0 -6
- package/dist/regexp-BazyLpPg.js +0 -6
- package/dist/rel-BcRfyd6Q.js +0 -6
- package/dist/riscv-Ce8MAQLP.js +0 -6
- package/dist/rose-pine-BKc3yVeu.js +0 -4
- package/dist/rose-pine-dawn-BulJcPZT.js +0 -4
- package/dist/rose-pine-moon-j6jiXKV8.js +0 -4
- package/dist/rosmsg-Cz0w1km8.js +0 -6
- package/dist/rst-CcbeA9zE.js +0 -22
- package/dist/ruby-DMPw6uKF.js +0 -30
- package/dist/rust-CLzF9zIN.js +0 -6
- package/dist/sas-fpEvgATw.js +0 -8
- package/dist/sass-DxHp5rTx.js +0 -6
- package/dist/scala-D4grkFkl.js +0 -6
- package/dist/scheme-BCRWuEm4.js +0 -6
- package/dist/scss-B1FaCqwR.js +0 -8
- package/dist/scss-CknrYxoA.js +0 -908
- package/dist/sdbl-B7T8abf4.js +0 -6
- package/dist/shaderlab-Cr62-Wb4.js +0 -8
- package/dist/shell-DYrX6oL5.js +0 -25
- package/dist/shellscript-InADTalH.js +0 -6
- package/dist/shellsession-DiDJNQdy.js +0 -8
- package/dist/slack-dark-i7wN4OET.js +0 -4
- package/dist/slack-ochin-ndHf0LoP.js +0 -4
- package/dist/smalltalk-BlI1_OkM.js +0 -6
- package/dist/snazzy-light-BlSJXAu4.js +0 -4
- package/dist/solarized-dark-UTmkh7lw.js +0 -4
- package/dist/solarized-light-BheCkDPT.js +0 -4
- package/dist/solidity-DUWnFhS6.js +0 -6
- package/dist/soy-C1-6njHa.js +0 -8
- package/dist/sparql-B0KWFEri.js +0 -8
- package/dist/splunk-CRXR8A9s.js +0 -6
- package/dist/sql-Cn_v3PB0.js +0 -6
- package/dist/sql-IeKX8fQ8.js +0 -615
- package/dist/ssh-config-DP-hNVbF.js +0 -6
- package/dist/stata-B8c5fTjX.js +0 -8
- package/dist/stylus-CyKEU1Ej.js +0 -6
- package/dist/svelte-5UasyOg7.js +0 -14
- package/dist/swift-9UzSvamq.js +0 -6
- package/dist/synthwave-84-NU3C_KFZ.js +0 -4
- package/dist/system-verilog-BCm7smPJ.js +0 -6
- package/dist/systemd-C-4qm6XH.js +0 -6
- package/dist/talonscript-CFF3LF_O.js +0 -6
- package/dist/tasl-Cg_WBUAe.js +0 -6
- package/dist/tcl-DN7buRTF.js +0 -6
- package/dist/templ-peLZIM2D.js +0 -12
- package/dist/terraform-DGvcn9zM.js +0 -6
- package/dist/tex-DpOayVob.js +0 -8
- package/dist/tokyo-night-DP4TmcQl.js +0 -4
- package/dist/toml-DY62mUL_.js +0 -6
- package/dist/ts-tags-ioVe2PKw.js +0 -41
- package/dist/tsv-BtvSkaG0.js +0 -6
- package/dist/tsx-B8rCNbgL.js +0 -6
- package/dist/turtle-_H59FV7D.js +0 -6
- package/dist/twig-CcRLVyUg.js +0 -18
- package/dist/typescript-RycA9KXf.js +0 -6
- package/dist/typescript-SNUkGeOU.js +0 -753
- package/dist/typespec-DWqp-kUU.js +0 -6
- package/dist/typst-D_1QKWns.js +0 -6
- package/dist/v-BPCNiyYe.js +0 -6
- package/dist/vala-uxaPR7d1.js +0 -6
- package/dist/vb-D8_c5-KN.js +0 -6
- package/dist/vbnet-D7PCGZRn.js +0 -122
- package/dist/verilog-B-bybjPF.js +0 -6
- package/dist/vesper-BckBta1U.js +0 -4
- package/dist/vhdl-CUlNa8ac.js +0 -6
- package/dist/viml-DsfA-sWm.js +0 -6
- package/dist/vitesse-black-BoGvW84i.js +0 -4
- package/dist/vitesse-dark-Cym-eLtO.js +0 -4
- package/dist/vitesse-light-CcmG315c.js +0 -4
- package/dist/vue-DOVAQqiz.js +0 -31
- package/dist/vue-html-C7WI2elu.js +0 -10
- package/dist/vue-vine-D386fra9.js +0 -20
- package/dist/vyper-CPQuu50u.js +0 -6
- package/dist/wasm-BBXxrAl7.js +0 -6
- package/dist/wasm-DQxwEHae.js +0 -7
- package/dist/wenyan-pbVjoM9_.js +0 -6
- package/dist/wgsl-DY4iK1q1.js +0 -6
- package/dist/wikitext-Z-MoUasO.js +0 -6
- package/dist/wit-CQMQOlTg.js +0 -6
- package/dist/wolfram-Dz4KXISs.js +0 -6
- package/dist/xml-B7THKYqr.js +0 -219
- package/dist/xml-C2J0sS9M.js +0 -8
- package/dist/xsl-BmSZphgC.js +0 -8
- package/dist/yaml-DaO7k5B1.js +0 -6
- package/dist/zenscript-CxBjpf9c.js +0 -6
- package/dist/zig-Vm0PO9wB.js +0 -6
|
@@ -1,658 +0,0 @@
|
|
|
1
|
-
const p = "[A-Za-z$_][0-9A-Za-z$_]*", G = [
|
|
2
|
-
"as",
|
|
3
|
-
// for exports
|
|
4
|
-
"in",
|
|
5
|
-
"of",
|
|
6
|
-
"if",
|
|
7
|
-
"for",
|
|
8
|
-
"while",
|
|
9
|
-
"finally",
|
|
10
|
-
"var",
|
|
11
|
-
"new",
|
|
12
|
-
"function",
|
|
13
|
-
"do",
|
|
14
|
-
"return",
|
|
15
|
-
"void",
|
|
16
|
-
"else",
|
|
17
|
-
"break",
|
|
18
|
-
"catch",
|
|
19
|
-
"instanceof",
|
|
20
|
-
"with",
|
|
21
|
-
"throw",
|
|
22
|
-
"case",
|
|
23
|
-
"default",
|
|
24
|
-
"try",
|
|
25
|
-
"switch",
|
|
26
|
-
"continue",
|
|
27
|
-
"typeof",
|
|
28
|
-
"delete",
|
|
29
|
-
"let",
|
|
30
|
-
"yield",
|
|
31
|
-
"const",
|
|
32
|
-
"class",
|
|
33
|
-
// JS handles these with a special rule
|
|
34
|
-
// "get",
|
|
35
|
-
// "set",
|
|
36
|
-
"debugger",
|
|
37
|
-
"async",
|
|
38
|
-
"await",
|
|
39
|
-
"static",
|
|
40
|
-
"import",
|
|
41
|
-
"from",
|
|
42
|
-
"export",
|
|
43
|
-
"extends",
|
|
44
|
-
// It's reached stage 3, which is "recommended for implementation":
|
|
45
|
-
"using"
|
|
46
|
-
], K = [
|
|
47
|
-
"true",
|
|
48
|
-
"false",
|
|
49
|
-
"null",
|
|
50
|
-
"undefined",
|
|
51
|
-
"NaN",
|
|
52
|
-
"Infinity"
|
|
53
|
-
], v = [
|
|
54
|
-
// Fundamental objects
|
|
55
|
-
"Object",
|
|
56
|
-
"Function",
|
|
57
|
-
"Boolean",
|
|
58
|
-
"Symbol",
|
|
59
|
-
// numbers and dates
|
|
60
|
-
"Math",
|
|
61
|
-
"Date",
|
|
62
|
-
"Number",
|
|
63
|
-
"BigInt",
|
|
64
|
-
// text
|
|
65
|
-
"String",
|
|
66
|
-
"RegExp",
|
|
67
|
-
// Indexed collections
|
|
68
|
-
"Array",
|
|
69
|
-
"Float32Array",
|
|
70
|
-
"Float64Array",
|
|
71
|
-
"Int8Array",
|
|
72
|
-
"Uint8Array",
|
|
73
|
-
"Uint8ClampedArray",
|
|
74
|
-
"Int16Array",
|
|
75
|
-
"Int32Array",
|
|
76
|
-
"Uint16Array",
|
|
77
|
-
"Uint32Array",
|
|
78
|
-
"BigInt64Array",
|
|
79
|
-
"BigUint64Array",
|
|
80
|
-
// Keyed collections
|
|
81
|
-
"Set",
|
|
82
|
-
"Map",
|
|
83
|
-
"WeakSet",
|
|
84
|
-
"WeakMap",
|
|
85
|
-
// Structured data
|
|
86
|
-
"ArrayBuffer",
|
|
87
|
-
"SharedArrayBuffer",
|
|
88
|
-
"Atomics",
|
|
89
|
-
"DataView",
|
|
90
|
-
"JSON",
|
|
91
|
-
// Control abstraction objects
|
|
92
|
-
"Promise",
|
|
93
|
-
"Generator",
|
|
94
|
-
"GeneratorFunction",
|
|
95
|
-
"AsyncFunction",
|
|
96
|
-
// Reflection
|
|
97
|
-
"Reflect",
|
|
98
|
-
"Proxy",
|
|
99
|
-
// Internationalization
|
|
100
|
-
"Intl",
|
|
101
|
-
// WebAssembly
|
|
102
|
-
"WebAssembly"
|
|
103
|
-
], L = [
|
|
104
|
-
"Error",
|
|
105
|
-
"EvalError",
|
|
106
|
-
"InternalError",
|
|
107
|
-
"RangeError",
|
|
108
|
-
"ReferenceError",
|
|
109
|
-
"SyntaxError",
|
|
110
|
-
"TypeError",
|
|
111
|
-
"URIError"
|
|
112
|
-
], w = [
|
|
113
|
-
"setInterval",
|
|
114
|
-
"setTimeout",
|
|
115
|
-
"clearInterval",
|
|
116
|
-
"clearTimeout",
|
|
117
|
-
"require",
|
|
118
|
-
"exports",
|
|
119
|
-
"eval",
|
|
120
|
-
"isFinite",
|
|
121
|
-
"isNaN",
|
|
122
|
-
"parseFloat",
|
|
123
|
-
"parseInt",
|
|
124
|
-
"decodeURI",
|
|
125
|
-
"decodeURIComponent",
|
|
126
|
-
"encodeURI",
|
|
127
|
-
"encodeURIComponent",
|
|
128
|
-
"escape",
|
|
129
|
-
"unescape"
|
|
130
|
-
], H = [
|
|
131
|
-
"arguments",
|
|
132
|
-
"this",
|
|
133
|
-
"super",
|
|
134
|
-
"console",
|
|
135
|
-
"window",
|
|
136
|
-
"document",
|
|
137
|
-
"localStorage",
|
|
138
|
-
"sessionStorage",
|
|
139
|
-
"module",
|
|
140
|
-
"global"
|
|
141
|
-
// Node.js
|
|
142
|
-
], J = [].concat(
|
|
143
|
-
w,
|
|
144
|
-
v,
|
|
145
|
-
L
|
|
146
|
-
);
|
|
147
|
-
function X(e) {
|
|
148
|
-
const t = e.regex, B = (a, { after: r }) => {
|
|
149
|
-
const l = "</" + a[0].slice(1);
|
|
150
|
-
return a.input.indexOf(l, r) !== -1;
|
|
151
|
-
}, n = p, A = {
|
|
152
|
-
begin: "<>",
|
|
153
|
-
end: "</>"
|
|
154
|
-
}, h = /<[A-Za-z0-9\\._:-]+\s*\/>/, o = {
|
|
155
|
-
begin: /<[A-Za-z0-9\\._:-]+/,
|
|
156
|
-
end: /\/[A-Za-z0-9\\._:-]+>|\/>/,
|
|
157
|
-
/**
|
|
158
|
-
* @param {RegExpMatchArray} match
|
|
159
|
-
* @param {CallbackResponse} response
|
|
160
|
-
*/
|
|
161
|
-
isTrulyOpeningTag: (a, r) => {
|
|
162
|
-
const l = a[0].length + a.index, d = a.input[l];
|
|
163
|
-
if (
|
|
164
|
-
// HTML should not include another raw `<` inside a tag
|
|
165
|
-
// nested type?
|
|
166
|
-
// `<Array<Array<number>>`, etc.
|
|
167
|
-
d === "<" || // the , gives away that this is not HTML
|
|
168
|
-
// `<T, A extends keyof T, V>`
|
|
169
|
-
d === ","
|
|
170
|
-
) {
|
|
171
|
-
r.ignoreMatch();
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
d === ">" && (B(a, { after: l }) || r.ignoreMatch());
|
|
175
|
-
let u;
|
|
176
|
-
const M = a.input.substring(l);
|
|
177
|
-
if (u = M.match(/^\s*=/)) {
|
|
178
|
-
r.ignoreMatch();
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
if ((u = M.match(/^\s+extends\s+/)) && u.index === 0) {
|
|
182
|
-
r.ignoreMatch();
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}, s = {
|
|
187
|
-
$pattern: p,
|
|
188
|
-
keyword: G,
|
|
189
|
-
literal: K,
|
|
190
|
-
built_in: J,
|
|
191
|
-
"variable.language": H
|
|
192
|
-
}, _ = "[0-9](_?[0-9])*", E = `\\.(${_})`, N = "0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*", S = {
|
|
193
|
-
className: "number",
|
|
194
|
-
variants: [
|
|
195
|
-
// DecimalLiteral
|
|
196
|
-
{ begin: `(\\b(${N})((${E})|\\.)?|(${E}))[eE][+-]?(${_})\\b` },
|
|
197
|
-
{ begin: `\\b(${N})\\b((${E})\\b|\\.)?|(${E})\\b` },
|
|
198
|
-
// DecimalBigIntegerLiteral
|
|
199
|
-
{ begin: "\\b(0|[1-9](_?[0-9])*)n\\b" },
|
|
200
|
-
// NonDecimalIntegerLiteral
|
|
201
|
-
{ begin: "\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b" },
|
|
202
|
-
{ begin: "\\b0[bB][0-1](_?[0-1])*n?\\b" },
|
|
203
|
-
{ begin: "\\b0[oO][0-7](_?[0-7])*n?\\b" },
|
|
204
|
-
// LegacyOctalIntegerLiteral (does not include underscore separators)
|
|
205
|
-
// https://tc39.es/ecma262/#sec-additional-syntax-numeric-literals
|
|
206
|
-
{ begin: "\\b0[0-7]+n?\\b" }
|
|
207
|
-
],
|
|
208
|
-
relevance: 0
|
|
209
|
-
}, c = {
|
|
210
|
-
className: "subst",
|
|
211
|
-
begin: "\\$\\{",
|
|
212
|
-
end: "\\}",
|
|
213
|
-
keywords: s,
|
|
214
|
-
contains: []
|
|
215
|
-
// defined later
|
|
216
|
-
}, m = {
|
|
217
|
-
begin: ".?html`",
|
|
218
|
-
end: "",
|
|
219
|
-
starts: {
|
|
220
|
-
end: "`",
|
|
221
|
-
returnEnd: !1,
|
|
222
|
-
contains: [
|
|
223
|
-
e.BACKSLASH_ESCAPE,
|
|
224
|
-
c
|
|
225
|
-
],
|
|
226
|
-
subLanguage: "xml"
|
|
227
|
-
}
|
|
228
|
-
}, T = {
|
|
229
|
-
begin: ".?css`",
|
|
230
|
-
end: "",
|
|
231
|
-
starts: {
|
|
232
|
-
end: "`",
|
|
233
|
-
returnEnd: !1,
|
|
234
|
-
contains: [
|
|
235
|
-
e.BACKSLASH_ESCAPE,
|
|
236
|
-
c
|
|
237
|
-
],
|
|
238
|
-
subLanguage: "css"
|
|
239
|
-
}
|
|
240
|
-
}, f = {
|
|
241
|
-
begin: ".?gql`",
|
|
242
|
-
end: "",
|
|
243
|
-
starts: {
|
|
244
|
-
end: "`",
|
|
245
|
-
returnEnd: !1,
|
|
246
|
-
contains: [
|
|
247
|
-
e.BACKSLASH_ESCAPE,
|
|
248
|
-
c
|
|
249
|
-
],
|
|
250
|
-
subLanguage: "graphql"
|
|
251
|
-
}
|
|
252
|
-
}, R = {
|
|
253
|
-
className: "string",
|
|
254
|
-
begin: "`",
|
|
255
|
-
end: "`",
|
|
256
|
-
contains: [
|
|
257
|
-
e.BACKSLASH_ESCAPE,
|
|
258
|
-
c
|
|
259
|
-
]
|
|
260
|
-
}, g = {
|
|
261
|
-
className: "comment",
|
|
262
|
-
variants: [
|
|
263
|
-
e.COMMENT(
|
|
264
|
-
/\/\*\*(?!\/)/,
|
|
265
|
-
"\\*/",
|
|
266
|
-
{
|
|
267
|
-
relevance: 0,
|
|
268
|
-
contains: [
|
|
269
|
-
{
|
|
270
|
-
begin: "(?=@[A-Za-z]+)",
|
|
271
|
-
relevance: 0,
|
|
272
|
-
contains: [
|
|
273
|
-
{
|
|
274
|
-
className: "doctag",
|
|
275
|
-
begin: "@[A-Za-z]+"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
className: "type",
|
|
279
|
-
begin: "\\{",
|
|
280
|
-
end: "\\}",
|
|
281
|
-
excludeEnd: !0,
|
|
282
|
-
excludeBegin: !0,
|
|
283
|
-
relevance: 0
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
className: "variable",
|
|
287
|
-
begin: n + "(?=\\s*(-)|$)",
|
|
288
|
-
endsParent: !0,
|
|
289
|
-
relevance: 0
|
|
290
|
-
},
|
|
291
|
-
// eat spaces (not newlines) so we can find
|
|
292
|
-
// types or variables
|
|
293
|
-
{
|
|
294
|
-
begin: /(?=[^\n])\s/,
|
|
295
|
-
relevance: 0
|
|
296
|
-
}
|
|
297
|
-
]
|
|
298
|
-
}
|
|
299
|
-
]
|
|
300
|
-
}
|
|
301
|
-
),
|
|
302
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
303
|
-
e.C_LINE_COMMENT_MODE
|
|
304
|
-
]
|
|
305
|
-
}, y = [
|
|
306
|
-
e.APOS_STRING_MODE,
|
|
307
|
-
e.QUOTE_STRING_MODE,
|
|
308
|
-
m,
|
|
309
|
-
T,
|
|
310
|
-
f,
|
|
311
|
-
R,
|
|
312
|
-
// Skip numbers when they are part of a variable name
|
|
313
|
-
{ match: /\$\d+/ },
|
|
314
|
-
S
|
|
315
|
-
// This is intentional:
|
|
316
|
-
// See https://github.com/highlightjs/highlight.js/issues/3288
|
|
317
|
-
// hljs.REGEXP_MODE
|
|
318
|
-
];
|
|
319
|
-
c.contains = y.concat({
|
|
320
|
-
// we need to pair up {} inside our subst to prevent
|
|
321
|
-
// it from ending too early by matching another }
|
|
322
|
-
begin: /\{/,
|
|
323
|
-
end: /\}/,
|
|
324
|
-
keywords: s,
|
|
325
|
-
contains: [
|
|
326
|
-
"self"
|
|
327
|
-
].concat(y)
|
|
328
|
-
});
|
|
329
|
-
const I = [].concat(g, c.contains), b = I.concat([
|
|
330
|
-
// eat recursive parens in sub expressions
|
|
331
|
-
{
|
|
332
|
-
begin: /(\s*)\(/,
|
|
333
|
-
end: /\)/,
|
|
334
|
-
keywords: s,
|
|
335
|
-
contains: ["self"].concat(I)
|
|
336
|
-
}
|
|
337
|
-
]), i = {
|
|
338
|
-
className: "params",
|
|
339
|
-
// convert this to negative lookbehind in v12
|
|
340
|
-
begin: /(\s*)\(/,
|
|
341
|
-
// to match the parms with
|
|
342
|
-
end: /\)/,
|
|
343
|
-
excludeBegin: !0,
|
|
344
|
-
excludeEnd: !0,
|
|
345
|
-
keywords: s,
|
|
346
|
-
contains: b
|
|
347
|
-
}, x = {
|
|
348
|
-
variants: [
|
|
349
|
-
// class Car extends vehicle
|
|
350
|
-
{
|
|
351
|
-
match: [
|
|
352
|
-
/class/,
|
|
353
|
-
/\s+/,
|
|
354
|
-
n,
|
|
355
|
-
/\s+/,
|
|
356
|
-
/extends/,
|
|
357
|
-
/\s+/,
|
|
358
|
-
t.concat(n, "(", t.concat(/\./, n), ")*")
|
|
359
|
-
],
|
|
360
|
-
scope: {
|
|
361
|
-
1: "keyword",
|
|
362
|
-
3: "title.class",
|
|
363
|
-
5: "keyword",
|
|
364
|
-
7: "title.class.inherited"
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
// class Car
|
|
368
|
-
{
|
|
369
|
-
match: [
|
|
370
|
-
/class/,
|
|
371
|
-
/\s+/,
|
|
372
|
-
n
|
|
373
|
-
],
|
|
374
|
-
scope: {
|
|
375
|
-
1: "keyword",
|
|
376
|
-
3: "title.class"
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
]
|
|
380
|
-
}, O = {
|
|
381
|
-
relevance: 0,
|
|
382
|
-
match: t.either(
|
|
383
|
-
// Hard coded exceptions
|
|
384
|
-
/\bJSON/,
|
|
385
|
-
// Float32Array, OutT
|
|
386
|
-
/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,
|
|
387
|
-
// CSSFactory, CSSFactoryT
|
|
388
|
-
/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,
|
|
389
|
-
// FPs, FPsT
|
|
390
|
-
/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/
|
|
391
|
-
// P
|
|
392
|
-
// single letters are not highlighted
|
|
393
|
-
// BLAH
|
|
394
|
-
// this will be flagged as a UPPER_CASE_CONSTANT instead
|
|
395
|
-
),
|
|
396
|
-
className: "title.class",
|
|
397
|
-
keywords: {
|
|
398
|
-
_: [
|
|
399
|
-
// se we still get relevance credit for JS library classes
|
|
400
|
-
...v,
|
|
401
|
-
...L
|
|
402
|
-
]
|
|
403
|
-
}
|
|
404
|
-
}, U = {
|
|
405
|
-
label: "use_strict",
|
|
406
|
-
className: "meta",
|
|
407
|
-
relevance: 10,
|
|
408
|
-
begin: /^\s*['"]use (strict|asm)['"]/
|
|
409
|
-
}, D = {
|
|
410
|
-
variants: [
|
|
411
|
-
{
|
|
412
|
-
match: [
|
|
413
|
-
/function/,
|
|
414
|
-
/\s+/,
|
|
415
|
-
n,
|
|
416
|
-
/(?=\s*\()/
|
|
417
|
-
]
|
|
418
|
-
},
|
|
419
|
-
// anonymous function
|
|
420
|
-
{
|
|
421
|
-
match: [
|
|
422
|
-
/function/,
|
|
423
|
-
/\s*(?=\()/
|
|
424
|
-
]
|
|
425
|
-
}
|
|
426
|
-
],
|
|
427
|
-
className: {
|
|
428
|
-
1: "keyword",
|
|
429
|
-
3: "title.function"
|
|
430
|
-
},
|
|
431
|
-
label: "func.def",
|
|
432
|
-
contains: [i],
|
|
433
|
-
illegal: /%/
|
|
434
|
-
}, k = {
|
|
435
|
-
relevance: 0,
|
|
436
|
-
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
437
|
-
className: "variable.constant"
|
|
438
|
-
};
|
|
439
|
-
function P(a) {
|
|
440
|
-
return t.concat("(?!", a.join("|"), ")");
|
|
441
|
-
}
|
|
442
|
-
const $ = {
|
|
443
|
-
match: t.concat(
|
|
444
|
-
/\b/,
|
|
445
|
-
P([
|
|
446
|
-
...w,
|
|
447
|
-
"super",
|
|
448
|
-
"import"
|
|
449
|
-
].map((a) => `${a}\\s*\\(`)),
|
|
450
|
-
n,
|
|
451
|
-
t.lookahead(/\s*\(/)
|
|
452
|
-
),
|
|
453
|
-
className: "title.function",
|
|
454
|
-
relevance: 0
|
|
455
|
-
}, Z = {
|
|
456
|
-
begin: t.concat(/\./, t.lookahead(
|
|
457
|
-
t.concat(n, /(?![0-9A-Za-z$_(])/)
|
|
458
|
-
)),
|
|
459
|
-
end: n,
|
|
460
|
-
excludeBegin: !0,
|
|
461
|
-
keywords: "prototype",
|
|
462
|
-
className: "property",
|
|
463
|
-
relevance: 0
|
|
464
|
-
}, F = {
|
|
465
|
-
match: [
|
|
466
|
-
/get|set/,
|
|
467
|
-
/\s+/,
|
|
468
|
-
n,
|
|
469
|
-
/(?=\()/
|
|
470
|
-
],
|
|
471
|
-
className: {
|
|
472
|
-
1: "keyword",
|
|
473
|
-
3: "title.function"
|
|
474
|
-
},
|
|
475
|
-
contains: [
|
|
476
|
-
{
|
|
477
|
-
// eat to avoid empty params
|
|
478
|
-
begin: /\(\)/
|
|
479
|
-
},
|
|
480
|
-
i
|
|
481
|
-
]
|
|
482
|
-
}, C = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", z = {
|
|
483
|
-
match: [
|
|
484
|
-
/const|var|let/,
|
|
485
|
-
/\s+/,
|
|
486
|
-
n,
|
|
487
|
-
/\s*/,
|
|
488
|
-
/=\s*/,
|
|
489
|
-
/(async\s*)?/,
|
|
490
|
-
// async is optional
|
|
491
|
-
t.lookahead(C)
|
|
492
|
-
],
|
|
493
|
-
keywords: "async",
|
|
494
|
-
className: {
|
|
495
|
-
1: "keyword",
|
|
496
|
-
3: "title.function"
|
|
497
|
-
},
|
|
498
|
-
contains: [
|
|
499
|
-
i
|
|
500
|
-
]
|
|
501
|
-
};
|
|
502
|
-
return {
|
|
503
|
-
name: "JavaScript",
|
|
504
|
-
aliases: ["js", "jsx", "mjs", "cjs"],
|
|
505
|
-
keywords: s,
|
|
506
|
-
// this will be extended by TypeScript
|
|
507
|
-
exports: { PARAMS_CONTAINS: b, CLASS_REFERENCE: O },
|
|
508
|
-
illegal: /#(?![$_A-z])/,
|
|
509
|
-
contains: [
|
|
510
|
-
e.SHEBANG({
|
|
511
|
-
label: "shebang",
|
|
512
|
-
binary: "node",
|
|
513
|
-
relevance: 5
|
|
514
|
-
}),
|
|
515
|
-
U,
|
|
516
|
-
e.APOS_STRING_MODE,
|
|
517
|
-
e.QUOTE_STRING_MODE,
|
|
518
|
-
m,
|
|
519
|
-
T,
|
|
520
|
-
f,
|
|
521
|
-
R,
|
|
522
|
-
g,
|
|
523
|
-
// Skip numbers when they are part of a variable name
|
|
524
|
-
{ match: /\$\d+/ },
|
|
525
|
-
S,
|
|
526
|
-
O,
|
|
527
|
-
{
|
|
528
|
-
scope: "attr",
|
|
529
|
-
match: n + t.lookahead(":"),
|
|
530
|
-
relevance: 0
|
|
531
|
-
},
|
|
532
|
-
z,
|
|
533
|
-
{
|
|
534
|
-
// "value" container
|
|
535
|
-
begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
|
|
536
|
-
keywords: "return throw case",
|
|
537
|
-
relevance: 0,
|
|
538
|
-
contains: [
|
|
539
|
-
g,
|
|
540
|
-
e.REGEXP_MODE,
|
|
541
|
-
{
|
|
542
|
-
className: "function",
|
|
543
|
-
// we have to count the parens to make sure we actually have the
|
|
544
|
-
// correct bounding ( ) before the =>. There could be any number of
|
|
545
|
-
// sub-expressions inside also surrounded by parens.
|
|
546
|
-
begin: C,
|
|
547
|
-
returnBegin: !0,
|
|
548
|
-
end: "\\s*=>",
|
|
549
|
-
contains: [
|
|
550
|
-
{
|
|
551
|
-
className: "params",
|
|
552
|
-
variants: [
|
|
553
|
-
{
|
|
554
|
-
begin: e.UNDERSCORE_IDENT_RE,
|
|
555
|
-
relevance: 0
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
className: null,
|
|
559
|
-
begin: /\(\s*\)/,
|
|
560
|
-
skip: !0
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
begin: /(\s*)\(/,
|
|
564
|
-
end: /\)/,
|
|
565
|
-
excludeBegin: !0,
|
|
566
|
-
excludeEnd: !0,
|
|
567
|
-
keywords: s,
|
|
568
|
-
contains: b
|
|
569
|
-
}
|
|
570
|
-
]
|
|
571
|
-
}
|
|
572
|
-
]
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
// could be a comma delimited list of params to a function call
|
|
576
|
-
begin: /,/,
|
|
577
|
-
relevance: 0
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
match: /\s+/,
|
|
581
|
-
relevance: 0
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
// JSX
|
|
585
|
-
variants: [
|
|
586
|
-
{ begin: A.begin, end: A.end },
|
|
587
|
-
{ match: h },
|
|
588
|
-
{
|
|
589
|
-
begin: o.begin,
|
|
590
|
-
// we carefully check the opening tag to see if it truly
|
|
591
|
-
// is a tag and not a false positive
|
|
592
|
-
"on:begin": o.isTrulyOpeningTag,
|
|
593
|
-
end: o.end
|
|
594
|
-
}
|
|
595
|
-
],
|
|
596
|
-
subLanguage: "xml",
|
|
597
|
-
contains: [
|
|
598
|
-
{
|
|
599
|
-
begin: o.begin,
|
|
600
|
-
end: o.end,
|
|
601
|
-
skip: !0,
|
|
602
|
-
contains: ["self"]
|
|
603
|
-
}
|
|
604
|
-
]
|
|
605
|
-
}
|
|
606
|
-
]
|
|
607
|
-
},
|
|
608
|
-
D,
|
|
609
|
-
{
|
|
610
|
-
// prevent this from getting swallowed up by function
|
|
611
|
-
// since they appear "function like"
|
|
612
|
-
beginKeywords: "while if switch catch for"
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
// we have to count the parens to make sure we actually have the correct
|
|
616
|
-
// bounding ( ). There could be any number of sub-expressions inside
|
|
617
|
-
// also surrounded by parens.
|
|
618
|
-
begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
|
|
619
|
-
// end parens
|
|
620
|
-
returnBegin: !0,
|
|
621
|
-
label: "func.def",
|
|
622
|
-
contains: [
|
|
623
|
-
i,
|
|
624
|
-
e.inherit(e.TITLE_MODE, { begin: n, className: "title.function" })
|
|
625
|
-
]
|
|
626
|
-
},
|
|
627
|
-
// catch ... so it won't trigger the property rule below
|
|
628
|
-
{
|
|
629
|
-
match: /\.\.\./,
|
|
630
|
-
relevance: 0
|
|
631
|
-
},
|
|
632
|
-
Z,
|
|
633
|
-
// hack: prevents detection of keywords in some circumstances
|
|
634
|
-
// .keyword()
|
|
635
|
-
// $keyword = x
|
|
636
|
-
{
|
|
637
|
-
match: "\\$" + n,
|
|
638
|
-
relevance: 0
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
match: [/\bconstructor(?=\s*\()/],
|
|
642
|
-
className: { 1: "title.function" },
|
|
643
|
-
contains: [i]
|
|
644
|
-
},
|
|
645
|
-
$,
|
|
646
|
-
k,
|
|
647
|
-
x,
|
|
648
|
-
F,
|
|
649
|
-
{
|
|
650
|
-
match: /\$[(.]/
|
|
651
|
-
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
652
|
-
}
|
|
653
|
-
]
|
|
654
|
-
};
|
|
655
|
-
}
|
|
656
|
-
export {
|
|
657
|
-
X as default
|
|
658
|
-
};
|
package/dist/jinja-CFW5uAwY.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import e from "./html-B50bmoVb.js";
|
|
2
|
-
const a = Object.freeze(JSON.parse(`{"displayName":"jinja-html","firstLineMatch":"^\\\\{% extends [\\"'][^\\"']+[\\"'] %}","foldingStartMarker":"(<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\\\b.*?>|\\\\{%\\\\s*(block|filter|for|if|macro|raw))","foldingStopMarker":"(</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\\\b.*?>|\\\\{%\\\\s*(end(?:block|filter|for|if|macro|raw))\\\\s*%})","name":"jinja-html","patterns":[{"include":"source.jinja"},{"include":"text.html.basic"}],"scopeName":"text.html.jinja","embeddedLangs":["html"]}`)), n = [
|
|
3
|
-
...e,
|
|
4
|
-
a
|
|
5
|
-
], t = Object.freeze(JSON.parse(`{"displayName":"Jinja","foldingStartMarker":"(\\\\{%\\\\s*(block|filter|for|if|macro|raw))","foldingStopMarker":"(\\\\{%\\\\s*(end(?:block|filter|for|if|macro|raw))\\\\s*%})","name":"jinja","patterns":[{"begin":"(\\\\{%)\\\\s*(raw)\\\\s*(%})","captures":{"1":{"name":"entity.other.jinja.delimiter.tag"},"2":{"name":"keyword.control.jinja"},"3":{"name":"entity.other.jinja.delimiter.tag"}},"end":"(\\\\{%)\\\\s*(endraw)\\\\s*(%})","name":"comment.block.jinja.raw"},{"include":"#comments"},{"begin":"\\\\{\\\\{-?","captures":[{"name":"variable.entity.other.jinja.delimiter"}],"end":"-?}}","name":"variable.meta.scope.jinja","patterns":[{"include":"#expression"}]},{"begin":"\\\\{%-?","captures":[{"name":"entity.other.jinja.delimiter.tag"}],"end":"-?%}","name":"meta.scope.jinja.tag","patterns":[{"include":"#expression"}]}],"repository":{"comments":{"begin":"\\\\{#-?","captures":[{"name":"entity.other.jinja.delimiter.comment"}],"end":"-?#}","name":"comment.block.jinja","patterns":[{"include":"#comments"}]},"escaped_char":{"match":"\\\\\\\\x[0-9A-F]{2}","name":"constant.character.escape.hex.jinja"},"escaped_unicode_char":{"captures":{"1":{"name":"constant.character.escape.unicode.16-bit-hex.jinja"},"2":{"name":"constant.character.escape.unicode.32-bit-hex.jinja"},"3":{"name":"constant.character.escape.unicode.name.jinja"}},"match":"(\\\\\\\\U\\\\h{8})|(\\\\\\\\u\\\\h{4})|(\\\\\\\\N\\\\{[ A-Za-z]+})"},"expression":{"patterns":[{"captures":{"1":{"name":"keyword.control.jinja"},"2":{"name":"variable.other.jinja.block"}},"match":"\\\\s*\\\\b(block)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.control.jinja"},"2":{"name":"variable.other.jinja.filter"}},"match":"\\\\s*\\\\b(filter)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.control.jinja"},"2":{"name":"variable.other.jinja.test"}},"match":"\\\\s*\\\\b(is)\\\\s+([A-Z_a-z][0-9A-Z_a-z]*)\\\\b"},{"captures":{"1":{"name":"keyword.control.jinja"}},"match":"(?<=\\\\{%-?)\\\\s*\\\\b([A-Z_a-z][0-9A-Z_a-z]*)\\\\b(?!\\\\s*[,=])"},{"match":"\\\\b(and|else|if|in|import|not|or|recursive|with(out)?\\\\s+context)\\\\b","name":"keyword.control.jinja"},{"match":"\\\\b(true|false|none)\\\\b","name":"constant.language.jinja"},{"match":"\\\\b(loop|super|self|varargs|kwargs)\\\\b","name":"variable.language.jinja"},{"match":"[A-Z_a-z][0-9A-Z_a-z]*","name":"variable.other.jinja"},{"match":"([-+]|\\\\*\\\\*?|//|[%/])","name":"keyword.operator.arithmetic.jinja"},{"captures":{"1":{"name":"punctuation.other.jinja"},"2":{"name":"variable.other.jinja.filter"}},"match":"(\\\\|)([A-Z_a-z][0-9A-Z_a-z]*)"},{"captures":{"1":{"name":"punctuation.other.jinja"},"2":{"name":"variable.other.jinja.attribute"}},"match":"(\\\\.)([A-Z_a-z][0-9A-Z_a-z]*)"},{"begin":"\\\\[","captures":[{"name":"punctuation.other.jinja"}],"end":"]","patterns":[{"include":"#expression"}]},{"begin":"\\\\(","captures":[{"name":"punctuation.other.jinja"}],"end":"\\\\)","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","captures":[{"name":"punctuation.other.jinja"}],"end":"}","patterns":[{"include":"#expression"}]},{"match":"([,.:|])","name":"punctuation.other.jinja"},{"match":"(==|<=|=>|[<>]|!=)","name":"keyword.operator.comparison.jinja"},{"match":"=","name":"keyword.operator.assignment.jinja"},{"begin":"\\"","beginCaptures":[{"name":"punctuation.definition.string.begin.jinja"}],"end":"\\"","endCaptures":[{"name":"punctuation.definition.string.end.jinja"}],"name":"string.quoted.double.jinja","patterns":[{"include":"#string"}]},{"begin":"'","beginCaptures":[{"name":"punctuation.definition.string.begin.jinja"}],"end":"'","endCaptures":[{"name":"punctuation.definition.string.end.jinja"}],"name":"string.quoted.single.jinja","patterns":[{"include":"#string"}]},{"begin":"@/","beginCaptures":[{"name":"punctuation.definition.regexp.begin.jinja"}],"end":"/","endCaptures":[{"name":"punctuation.definition.regexp.end.jinja"}],"name":"string.regexp.jinja","patterns":[{"include":"#simple_escapes"}]}]},"simple_escapes":{"captures":{"1":{"name":"constant.character.escape.newline.jinja"},"2":{"name":"constant.character.escape.backlash.jinja"},"3":{"name":"constant.character.escape.double-quote.jinja"},"4":{"name":"constant.character.escape.single-quote.jinja"},"5":{"name":"constant.character.escape.bell.jinja"},"6":{"name":"constant.character.escape.backspace.jinja"},"7":{"name":"constant.character.escape.formfeed.jinja"},"8":{"name":"constant.character.escape.linefeed.jinja"},"9":{"name":"constant.character.escape.return.jinja"},"10":{"name":"constant.character.escape.tab.jinja"},"11":{"name":"constant.character.escape.vertical-tab.jinja"}},"match":"(\\\\\\\\\\\\n)|(\\\\\\\\\\\\\\\\)|(\\\\\\\\\\")|(\\\\\\\\')|(\\\\\\\\a)|(\\\\\\\\b)|(\\\\\\\\f)|(\\\\\\\\n)|(\\\\\\\\r)|(\\\\\\\\t)|(\\\\\\\\v)"},"string":{"patterns":[{"include":"#simple_escapes"},{"include":"#escaped_char"},{"include":"#escaped_unicode_char"}]}},"scopeName":"source.jinja","embeddedLangs":["jinja-html"]}`)), r = [
|
|
6
|
-
...n,
|
|
7
|
-
t
|
|
8
|
-
];
|
|
9
|
-
export {
|
|
10
|
-
r as default
|
|
11
|
-
};
|