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
package/dist/php-BL35ZHWM.js
DELETED
|
@@ -1,566 +0,0 @@
|
|
|
1
|
-
function D(e) {
|
|
2
|
-
const t = e.regex, _ = /(?![A-Za-z0-9])(?![$])/, o = t.concat(
|
|
3
|
-
/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,
|
|
4
|
-
_
|
|
5
|
-
), r = t.concat(
|
|
6
|
-
/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,
|
|
7
|
-
_
|
|
8
|
-
), I = t.concat(
|
|
9
|
-
/[A-Z]+/,
|
|
10
|
-
_
|
|
11
|
-
), E = {
|
|
12
|
-
scope: "variable",
|
|
13
|
-
match: "\\$+" + o
|
|
14
|
-
}, M = {
|
|
15
|
-
scope: "meta",
|
|
16
|
-
variants: [
|
|
17
|
-
{ begin: /<\?php/, relevance: 10 },
|
|
18
|
-
// boost for obvious PHP
|
|
19
|
-
{ begin: /<\?=/ },
|
|
20
|
-
// less relevant per PSR-1 which says not to use short-tags
|
|
21
|
-
{ begin: /<\?/, relevance: 0.1 },
|
|
22
|
-
{ begin: /\?>/ }
|
|
23
|
-
// end php tag
|
|
24
|
-
]
|
|
25
|
-
}, g = {
|
|
26
|
-
scope: "subst",
|
|
27
|
-
variants: [
|
|
28
|
-
{ begin: /\$\w+/ },
|
|
29
|
-
{
|
|
30
|
-
begin: /\{\$/,
|
|
31
|
-
end: /\}/
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}, N = e.inherit(e.APOS_STRING_MODE, { illegal: null }), y = e.inherit(e.QUOTE_STRING_MODE, {
|
|
35
|
-
illegal: null,
|
|
36
|
-
contains: e.QUOTE_STRING_MODE.contains.concat(g)
|
|
37
|
-
}), w = {
|
|
38
|
-
begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
|
|
39
|
-
end: /[ \t]*(\w+)\b/,
|
|
40
|
-
contains: e.QUOTE_STRING_MODE.contains.concat(g),
|
|
41
|
-
"on:begin": (n, a) => {
|
|
42
|
-
a.data._beginMatch = n[1] || n[2];
|
|
43
|
-
},
|
|
44
|
-
"on:end": (n, a) => {
|
|
45
|
-
a.data._beginMatch !== n[1] && a.ignoreMatch();
|
|
46
|
-
}
|
|
47
|
-
}, x = e.END_SAME_AS_BEGIN({
|
|
48
|
-
begin: /<<<[ \t]*'(\w+)'\n/,
|
|
49
|
-
end: /[ \t]*(\w+)\b/
|
|
50
|
-
}), S = `[
|
|
51
|
-
]`, i = {
|
|
52
|
-
scope: "string",
|
|
53
|
-
variants: [
|
|
54
|
-
y,
|
|
55
|
-
N,
|
|
56
|
-
w,
|
|
57
|
-
x
|
|
58
|
-
]
|
|
59
|
-
}, s = {
|
|
60
|
-
scope: "number",
|
|
61
|
-
variants: [
|
|
62
|
-
{ begin: "\\b0[bB][01]+(?:_[01]+)*\\b" },
|
|
63
|
-
// Binary w/ underscore support
|
|
64
|
-
{ begin: "\\b0[oO][0-7]+(?:_[0-7]+)*\\b" },
|
|
65
|
-
// Octals w/ underscore support
|
|
66
|
-
{ begin: "\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b" },
|
|
67
|
-
// Hex w/ underscore support
|
|
68
|
-
// Decimals w/ underscore support, with optional fragments and scientific exponent (e) suffix.
|
|
69
|
-
{ begin: "(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?" }
|
|
70
|
-
],
|
|
71
|
-
relevance: 0
|
|
72
|
-
}, d = [
|
|
73
|
-
"false",
|
|
74
|
-
"null",
|
|
75
|
-
"true"
|
|
76
|
-
], T = [
|
|
77
|
-
// Magic constants:
|
|
78
|
-
// <https://www.php.net/manual/en/language.constants.predefined.php>
|
|
79
|
-
"__CLASS__",
|
|
80
|
-
"__DIR__",
|
|
81
|
-
"__FILE__",
|
|
82
|
-
"__FUNCTION__",
|
|
83
|
-
"__COMPILER_HALT_OFFSET__",
|
|
84
|
-
"__LINE__",
|
|
85
|
-
"__METHOD__",
|
|
86
|
-
"__NAMESPACE__",
|
|
87
|
-
"__TRAIT__",
|
|
88
|
-
// Function that look like language construct or language construct that look like function:
|
|
89
|
-
// List of keywords that may not require parenthesis
|
|
90
|
-
"die",
|
|
91
|
-
"echo",
|
|
92
|
-
"exit",
|
|
93
|
-
"include",
|
|
94
|
-
"include_once",
|
|
95
|
-
"print",
|
|
96
|
-
"require",
|
|
97
|
-
"require_once",
|
|
98
|
-
// These are not language construct (function) but operate on the currently-executing function and can access the current symbol table
|
|
99
|
-
// 'compact extract func_get_arg func_get_args func_num_args get_called_class get_parent_class ' +
|
|
100
|
-
// Other keywords:
|
|
101
|
-
// <https://www.php.net/manual/en/reserved.php>
|
|
102
|
-
// <https://www.php.net/manual/en/language.types.type-juggling.php>
|
|
103
|
-
"array",
|
|
104
|
-
"abstract",
|
|
105
|
-
"and",
|
|
106
|
-
"as",
|
|
107
|
-
"binary",
|
|
108
|
-
"bool",
|
|
109
|
-
"boolean",
|
|
110
|
-
"break",
|
|
111
|
-
"callable",
|
|
112
|
-
"case",
|
|
113
|
-
"catch",
|
|
114
|
-
"class",
|
|
115
|
-
"clone",
|
|
116
|
-
"const",
|
|
117
|
-
"continue",
|
|
118
|
-
"declare",
|
|
119
|
-
"default",
|
|
120
|
-
"do",
|
|
121
|
-
"double",
|
|
122
|
-
"else",
|
|
123
|
-
"elseif",
|
|
124
|
-
"empty",
|
|
125
|
-
"enddeclare",
|
|
126
|
-
"endfor",
|
|
127
|
-
"endforeach",
|
|
128
|
-
"endif",
|
|
129
|
-
"endswitch",
|
|
130
|
-
"endwhile",
|
|
131
|
-
"enum",
|
|
132
|
-
"eval",
|
|
133
|
-
"extends",
|
|
134
|
-
"final",
|
|
135
|
-
"finally",
|
|
136
|
-
"float",
|
|
137
|
-
"for",
|
|
138
|
-
"foreach",
|
|
139
|
-
"from",
|
|
140
|
-
"global",
|
|
141
|
-
"goto",
|
|
142
|
-
"if",
|
|
143
|
-
"implements",
|
|
144
|
-
"instanceof",
|
|
145
|
-
"insteadof",
|
|
146
|
-
"int",
|
|
147
|
-
"integer",
|
|
148
|
-
"interface",
|
|
149
|
-
"isset",
|
|
150
|
-
"iterable",
|
|
151
|
-
"list",
|
|
152
|
-
"match|0",
|
|
153
|
-
"mixed",
|
|
154
|
-
"new",
|
|
155
|
-
"never",
|
|
156
|
-
"object",
|
|
157
|
-
"or",
|
|
158
|
-
"private",
|
|
159
|
-
"protected",
|
|
160
|
-
"public",
|
|
161
|
-
"readonly",
|
|
162
|
-
"real",
|
|
163
|
-
"return",
|
|
164
|
-
"string",
|
|
165
|
-
"switch",
|
|
166
|
-
"throw",
|
|
167
|
-
"trait",
|
|
168
|
-
"try",
|
|
169
|
-
"unset",
|
|
170
|
-
"use",
|
|
171
|
-
"var",
|
|
172
|
-
"void",
|
|
173
|
-
"while",
|
|
174
|
-
"xor",
|
|
175
|
-
"yield"
|
|
176
|
-
], p = [
|
|
177
|
-
// Standard PHP library:
|
|
178
|
-
// <https://www.php.net/manual/en/book.spl.php>
|
|
179
|
-
"Error|0",
|
|
180
|
-
"AppendIterator",
|
|
181
|
-
"ArgumentCountError",
|
|
182
|
-
"ArithmeticError",
|
|
183
|
-
"ArrayIterator",
|
|
184
|
-
"ArrayObject",
|
|
185
|
-
"AssertionError",
|
|
186
|
-
"BadFunctionCallException",
|
|
187
|
-
"BadMethodCallException",
|
|
188
|
-
"CachingIterator",
|
|
189
|
-
"CallbackFilterIterator",
|
|
190
|
-
"CompileError",
|
|
191
|
-
"Countable",
|
|
192
|
-
"DirectoryIterator",
|
|
193
|
-
"DivisionByZeroError",
|
|
194
|
-
"DomainException",
|
|
195
|
-
"EmptyIterator",
|
|
196
|
-
"ErrorException",
|
|
197
|
-
"Exception",
|
|
198
|
-
"FilesystemIterator",
|
|
199
|
-
"FilterIterator",
|
|
200
|
-
"GlobIterator",
|
|
201
|
-
"InfiniteIterator",
|
|
202
|
-
"InvalidArgumentException",
|
|
203
|
-
"IteratorIterator",
|
|
204
|
-
"LengthException",
|
|
205
|
-
"LimitIterator",
|
|
206
|
-
"LogicException",
|
|
207
|
-
"MultipleIterator",
|
|
208
|
-
"NoRewindIterator",
|
|
209
|
-
"OutOfBoundsException",
|
|
210
|
-
"OutOfRangeException",
|
|
211
|
-
"OuterIterator",
|
|
212
|
-
"OverflowException",
|
|
213
|
-
"ParentIterator",
|
|
214
|
-
"ParseError",
|
|
215
|
-
"RangeException",
|
|
216
|
-
"RecursiveArrayIterator",
|
|
217
|
-
"RecursiveCachingIterator",
|
|
218
|
-
"RecursiveCallbackFilterIterator",
|
|
219
|
-
"RecursiveDirectoryIterator",
|
|
220
|
-
"RecursiveFilterIterator",
|
|
221
|
-
"RecursiveIterator",
|
|
222
|
-
"RecursiveIteratorIterator",
|
|
223
|
-
"RecursiveRegexIterator",
|
|
224
|
-
"RecursiveTreeIterator",
|
|
225
|
-
"RegexIterator",
|
|
226
|
-
"RuntimeException",
|
|
227
|
-
"SeekableIterator",
|
|
228
|
-
"SplDoublyLinkedList",
|
|
229
|
-
"SplFileInfo",
|
|
230
|
-
"SplFileObject",
|
|
231
|
-
"SplFixedArray",
|
|
232
|
-
"SplHeap",
|
|
233
|
-
"SplMaxHeap",
|
|
234
|
-
"SplMinHeap",
|
|
235
|
-
"SplObjectStorage",
|
|
236
|
-
"SplObserver",
|
|
237
|
-
"SplPriorityQueue",
|
|
238
|
-
"SplQueue",
|
|
239
|
-
"SplStack",
|
|
240
|
-
"SplSubject",
|
|
241
|
-
"SplTempFileObject",
|
|
242
|
-
"TypeError",
|
|
243
|
-
"UnderflowException",
|
|
244
|
-
"UnexpectedValueException",
|
|
245
|
-
"UnhandledMatchError",
|
|
246
|
-
// Reserved interfaces:
|
|
247
|
-
// <https://www.php.net/manual/en/reserved.interfaces.php>
|
|
248
|
-
"ArrayAccess",
|
|
249
|
-
"BackedEnum",
|
|
250
|
-
"Closure",
|
|
251
|
-
"Fiber",
|
|
252
|
-
"Generator",
|
|
253
|
-
"Iterator",
|
|
254
|
-
"IteratorAggregate",
|
|
255
|
-
"Serializable",
|
|
256
|
-
"Stringable",
|
|
257
|
-
"Throwable",
|
|
258
|
-
"Traversable",
|
|
259
|
-
"UnitEnum",
|
|
260
|
-
"WeakReference",
|
|
261
|
-
"WeakMap",
|
|
262
|
-
// Reserved classes:
|
|
263
|
-
// <https://www.php.net/manual/en/reserved.classes.php>
|
|
264
|
-
"Directory",
|
|
265
|
-
"__PHP_Incomplete_Class",
|
|
266
|
-
"parent",
|
|
267
|
-
"php_user_filter",
|
|
268
|
-
"self",
|
|
269
|
-
"static",
|
|
270
|
-
"stdClass"
|
|
271
|
-
], b = {
|
|
272
|
-
keyword: T,
|
|
273
|
-
literal: ((n) => {
|
|
274
|
-
const a = [];
|
|
275
|
-
return n.forEach((c) => {
|
|
276
|
-
a.push(c), c.toLowerCase() === c ? a.push(c.toUpperCase()) : a.push(c.toLowerCase());
|
|
277
|
-
}), a;
|
|
278
|
-
})(d),
|
|
279
|
-
built_in: p
|
|
280
|
-
}, u = (n) => n.map((a) => a.replace(/\|\d+$/, "")), O = { variants: [
|
|
281
|
-
{
|
|
282
|
-
match: [
|
|
283
|
-
/new/,
|
|
284
|
-
t.concat(S, "+"),
|
|
285
|
-
// to prevent built ins from being confused as the class constructor call
|
|
286
|
-
t.concat("(?!", u(p).join("\\b|"), "\\b)"),
|
|
287
|
-
r
|
|
288
|
-
],
|
|
289
|
-
scope: {
|
|
290
|
-
1: "keyword",
|
|
291
|
-
4: "title.class"
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
] }, f = t.concat(o, "\\b(?!\\()"), l = { variants: [
|
|
295
|
-
{
|
|
296
|
-
match: [
|
|
297
|
-
t.concat(
|
|
298
|
-
/::/,
|
|
299
|
-
t.lookahead(/(?!class\b)/)
|
|
300
|
-
),
|
|
301
|
-
f
|
|
302
|
-
],
|
|
303
|
-
scope: { 2: "variable.constant" }
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
match: [
|
|
307
|
-
/::/,
|
|
308
|
-
/class/
|
|
309
|
-
],
|
|
310
|
-
scope: { 2: "variable.language" }
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
match: [
|
|
314
|
-
r,
|
|
315
|
-
t.concat(
|
|
316
|
-
/::/,
|
|
317
|
-
t.lookahead(/(?!class\b)/)
|
|
318
|
-
),
|
|
319
|
-
f
|
|
320
|
-
],
|
|
321
|
-
scope: {
|
|
322
|
-
1: "title.class",
|
|
323
|
-
3: "variable.constant"
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
match: [
|
|
328
|
-
r,
|
|
329
|
-
t.concat(
|
|
330
|
-
"::",
|
|
331
|
-
t.lookahead(/(?!class\b)/)
|
|
332
|
-
)
|
|
333
|
-
],
|
|
334
|
-
scope: { 1: "title.class" }
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
match: [
|
|
338
|
-
r,
|
|
339
|
-
/::/,
|
|
340
|
-
/class/
|
|
341
|
-
],
|
|
342
|
-
scope: {
|
|
343
|
-
1: "title.class",
|
|
344
|
-
3: "variable.language"
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
] }, C = {
|
|
348
|
-
scope: "attr",
|
|
349
|
-
match: t.concat(o, t.lookahead(":"), t.lookahead(/(?!::)/))
|
|
350
|
-
}, R = {
|
|
351
|
-
relevance: 0,
|
|
352
|
-
begin: /\(/,
|
|
353
|
-
end: /\)/,
|
|
354
|
-
keywords: b,
|
|
355
|
-
contains: [
|
|
356
|
-
C,
|
|
357
|
-
E,
|
|
358
|
-
l,
|
|
359
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
360
|
-
i,
|
|
361
|
-
s,
|
|
362
|
-
O
|
|
363
|
-
]
|
|
364
|
-
}, A = {
|
|
365
|
-
relevance: 0,
|
|
366
|
-
match: [
|
|
367
|
-
/\b/,
|
|
368
|
-
// to prevent keywords from being confused as the function title
|
|
369
|
-
t.concat("(?!fn\\b|function\\b|", u(T).join("\\b|"), "|", u(p).join("\\b|"), "\\b)"),
|
|
370
|
-
o,
|
|
371
|
-
t.concat(S, "*"),
|
|
372
|
-
t.lookahead(/(?=\()/)
|
|
373
|
-
],
|
|
374
|
-
scope: { 3: "title.function.invoke" },
|
|
375
|
-
contains: [R]
|
|
376
|
-
};
|
|
377
|
-
R.contains.push(A);
|
|
378
|
-
const m = [
|
|
379
|
-
C,
|
|
380
|
-
l,
|
|
381
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
382
|
-
i,
|
|
383
|
-
s,
|
|
384
|
-
O
|
|
385
|
-
], v = {
|
|
386
|
-
begin: t.concat(
|
|
387
|
-
/#\[\s*\\?/,
|
|
388
|
-
t.either(
|
|
389
|
-
r,
|
|
390
|
-
I
|
|
391
|
-
)
|
|
392
|
-
),
|
|
393
|
-
beginScope: "meta",
|
|
394
|
-
end: /]/,
|
|
395
|
-
endScope: "meta",
|
|
396
|
-
keywords: {
|
|
397
|
-
literal: d,
|
|
398
|
-
keyword: [
|
|
399
|
-
"new",
|
|
400
|
-
"array"
|
|
401
|
-
]
|
|
402
|
-
},
|
|
403
|
-
contains: [
|
|
404
|
-
{
|
|
405
|
-
begin: /\[/,
|
|
406
|
-
end: /]/,
|
|
407
|
-
keywords: {
|
|
408
|
-
literal: d,
|
|
409
|
-
keyword: [
|
|
410
|
-
"new",
|
|
411
|
-
"array"
|
|
412
|
-
]
|
|
413
|
-
},
|
|
414
|
-
contains: [
|
|
415
|
-
"self",
|
|
416
|
-
...m
|
|
417
|
-
]
|
|
418
|
-
},
|
|
419
|
-
...m,
|
|
420
|
-
{
|
|
421
|
-
scope: "meta",
|
|
422
|
-
variants: [
|
|
423
|
-
{ match: r },
|
|
424
|
-
{ match: I }
|
|
425
|
-
]
|
|
426
|
-
}
|
|
427
|
-
]
|
|
428
|
-
};
|
|
429
|
-
return {
|
|
430
|
-
case_insensitive: !1,
|
|
431
|
-
keywords: b,
|
|
432
|
-
contains: [
|
|
433
|
-
v,
|
|
434
|
-
e.HASH_COMMENT_MODE,
|
|
435
|
-
e.COMMENT("//", "$"),
|
|
436
|
-
e.COMMENT(
|
|
437
|
-
"/\\*",
|
|
438
|
-
"\\*/",
|
|
439
|
-
{ contains: [
|
|
440
|
-
{
|
|
441
|
-
scope: "doctag",
|
|
442
|
-
match: "@[A-Za-z]+"
|
|
443
|
-
}
|
|
444
|
-
] }
|
|
445
|
-
),
|
|
446
|
-
{
|
|
447
|
-
match: /__halt_compiler\(\);/,
|
|
448
|
-
keywords: "__halt_compiler",
|
|
449
|
-
starts: {
|
|
450
|
-
scope: "comment",
|
|
451
|
-
end: e.MATCH_NOTHING_RE,
|
|
452
|
-
contains: [
|
|
453
|
-
{
|
|
454
|
-
match: /\?>/,
|
|
455
|
-
scope: "meta",
|
|
456
|
-
endsParent: !0
|
|
457
|
-
}
|
|
458
|
-
]
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
M,
|
|
462
|
-
{
|
|
463
|
-
scope: "variable.language",
|
|
464
|
-
match: /\$this\b/
|
|
465
|
-
},
|
|
466
|
-
E,
|
|
467
|
-
A,
|
|
468
|
-
l,
|
|
469
|
-
{
|
|
470
|
-
match: [
|
|
471
|
-
/const/,
|
|
472
|
-
/\s/,
|
|
473
|
-
o
|
|
474
|
-
],
|
|
475
|
-
scope: {
|
|
476
|
-
1: "keyword",
|
|
477
|
-
3: "variable.constant"
|
|
478
|
-
}
|
|
479
|
-
},
|
|
480
|
-
O,
|
|
481
|
-
{
|
|
482
|
-
scope: "function",
|
|
483
|
-
relevance: 0,
|
|
484
|
-
beginKeywords: "fn function",
|
|
485
|
-
end: /[;{]/,
|
|
486
|
-
excludeEnd: !0,
|
|
487
|
-
illegal: "[$%\\[]",
|
|
488
|
-
contains: [
|
|
489
|
-
{ beginKeywords: "use" },
|
|
490
|
-
e.UNDERSCORE_TITLE_MODE,
|
|
491
|
-
{
|
|
492
|
-
begin: "=>",
|
|
493
|
-
// No markup, just a relevance booster
|
|
494
|
-
endsParent: !0
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
scope: "params",
|
|
498
|
-
begin: "\\(",
|
|
499
|
-
end: "\\)",
|
|
500
|
-
excludeBegin: !0,
|
|
501
|
-
excludeEnd: !0,
|
|
502
|
-
keywords: b,
|
|
503
|
-
contains: [
|
|
504
|
-
"self",
|
|
505
|
-
v,
|
|
506
|
-
E,
|
|
507
|
-
l,
|
|
508
|
-
e.C_BLOCK_COMMENT_MODE,
|
|
509
|
-
i,
|
|
510
|
-
s
|
|
511
|
-
]
|
|
512
|
-
}
|
|
513
|
-
]
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
scope: "class",
|
|
517
|
-
variants: [
|
|
518
|
-
{
|
|
519
|
-
beginKeywords: "enum",
|
|
520
|
-
illegal: /[($"]/
|
|
521
|
-
},
|
|
522
|
-
{
|
|
523
|
-
beginKeywords: "class interface trait",
|
|
524
|
-
illegal: /[:($"]/
|
|
525
|
-
}
|
|
526
|
-
],
|
|
527
|
-
relevance: 0,
|
|
528
|
-
end: /\{/,
|
|
529
|
-
excludeEnd: !0,
|
|
530
|
-
contains: [
|
|
531
|
-
{ beginKeywords: "extends implements" },
|
|
532
|
-
e.UNDERSCORE_TITLE_MODE
|
|
533
|
-
]
|
|
534
|
-
},
|
|
535
|
-
// both use and namespace still use "old style" rules (vs multi-match)
|
|
536
|
-
// because the namespace name can include `\` and we still want each
|
|
537
|
-
// element to be treated as its own *individual* title
|
|
538
|
-
{
|
|
539
|
-
beginKeywords: "namespace",
|
|
540
|
-
relevance: 0,
|
|
541
|
-
end: ";",
|
|
542
|
-
illegal: /[.']/,
|
|
543
|
-
contains: [e.inherit(e.UNDERSCORE_TITLE_MODE, { scope: "title.class" })]
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
beginKeywords: "use",
|
|
547
|
-
relevance: 0,
|
|
548
|
-
end: ";",
|
|
549
|
-
contains: [
|
|
550
|
-
// TODO: title.function vs title.class
|
|
551
|
-
{
|
|
552
|
-
match: /\b(as|const|function)\b/,
|
|
553
|
-
scope: "keyword"
|
|
554
|
-
},
|
|
555
|
-
// TODO: could be title.class or title.function
|
|
556
|
-
e.UNDERSCORE_TITLE_MODE
|
|
557
|
-
]
|
|
558
|
-
},
|
|
559
|
-
i,
|
|
560
|
-
s
|
|
561
|
-
]
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
export {
|
|
565
|
-
D as default
|
|
566
|
-
};
|