yanki 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abap-DXFkqnOI.js +816 -0
- package/dist/actionscript-3-D6NljDpC.js +1 -0
- package/dist/ada-CowR2XfX.js +1 -0
- package/dist/andromeeda-YxQm0tCS.js +1 -0
- package/dist/angular-html-CZfDmWtJ.js +16 -0
- package/dist/angular-ts-CIhYrOL5.js +666 -0
- package/dist/apache-rS0jd3Ly.js +1 -0
- package/dist/apex-Sfo2eW0G.js +274 -0
- package/dist/apl-DPLNWaKG.js +87 -0
- package/dist/applescript-BXKAgOFh.js +38 -0
- package/dist/ara-CG4fK2Nq.js +21 -0
- package/dist/asciidoc-C539GviS.js +1 -0
- package/dist/asm-PWN5J14X.js +1 -0
- package/dist/astro-71xeBtnw.js +32 -0
- package/dist/aurora-x-BaWyeHV_.js +1 -0
- package/dist/awk-i0IPvypD.js +1 -0
- package/dist/ayu-dark-Bn5gmY5k.js +1 -0
- package/dist/ballerina-T9ysyp6P.js +62 -0
- package/dist/bat-BPiaQZfK.js +1 -0
- package/dist/beancount-Urb1RsFe.js +1 -0
- package/dist/berry-CxrokwfH.js +1 -0
- package/dist/bibtex-BaedD2tq.js +1 -0
- package/dist/bicep-3ghuYFLd.js +1 -0
- package/dist/bin/cli.js +10 -0
- package/dist/blade-D3A5GssZ.js +831 -0
- package/dist/c-RCJZWN-0.js +81 -0
- package/dist/cadence-Bgpqy2XC.js +1 -0
- package/dist/catppuccin-frappe-BsOrZxH8.js +1 -0
- package/dist/catppuccin-latte-BYdKNJ10.js +1 -0
- package/dist/catppuccin-macchiato-DVLwECkk.js +1 -0
- package/dist/catppuccin-mocha-CEfge3mM.js +1 -0
- package/dist/clarity-CIekO_uJ.js +1 -0
- package/dist/clojure-BF6G6X0H.js +1 -0
- package/dist/cmake-DXZpi2gR.js +1 -0
- package/dist/cobol-Bi0pgIzz.js +1 -0
- package/dist/codeowners-CGmujMTu.js +1 -0
- package/dist/codeql-BOpLLL-w.js +1 -0
- package/dist/coffee-Cp6Hkwsd.js +100 -0
- package/dist/common-lisp-C3qUB5O8.js +301 -0
- package/dist/cpp-CeZn6MzL.js +186 -0
- package/dist/crystal-B5pCH4eR.js +25 -0
- package/dist/csharp-DISxKEhY.js +756 -0
- package/dist/css-CbYhyuC0.js +505 -0
- package/dist/csv-B2DkETJQ.js +1 -0
- package/dist/cue-C6Aznpr-.js +1 -0
- package/dist/cypher-ByMv4Xf1.js +1 -0
- package/dist/d-PifQWv0n.js +1 -0
- package/dist/dark-plus-KEYLhlmT.js +1 -0
- package/dist/dart-DZLoTQm4.js +1 -0
- package/dist/dax-DsfXcHUZ.js +29 -0
- package/dist/desktop-D71BffLY.js +1 -0
- package/dist/diff-DvyTQcux.js +1 -0
- package/dist/docker-DNR26wTC.js +1 -0
- package/dist/dracula-DGO8GyiP.js +1 -0
- package/dist/dracula-soft-9B1nZgL-.js +1 -0
- package/dist/dream-maker-Eh5U-gDp.js +52 -0
- package/dist/elixir-Exce1dLy.js +17 -0
- package/dist/elm-D7CfdsEG.js +1 -0
- package/dist/emacs-lisp-51pKhIDe.js +5754 -0
- package/dist/erb-S7d1X-Y-.js +1 -0
- package/dist/erlang-DS9ZWoKD.js +1 -0
- package/dist/fennel-DuK7IM-L.js +1 -0
- package/dist/fish-DfeQjIbs.js +5 -0
- package/dist/fluent-KPqz0Sb3.js +1 -0
- package/dist/fortran-fixed-form-6v7-xzYY.js +1 -0
- package/dist/fortran-free-form-D6pmzCqS.js +1 -0
- package/dist/fsharp-JZjmD0Li.js +1 -0
- package/dist/gdresource-CFKM8Ske.js +1 -0
- package/dist/gdscript-CoEqzGFw.js +44 -0
- package/dist/gdshader-B_SUYfiV.js +1 -0
- package/dist/genie-DAfrLhwG.js +1 -0
- package/dist/gherkin-B0PjAhci.js +1 -0
- package/dist/git-commit-XY8bXq83.js +1 -0
- package/dist/git-rebase-BE3WlPTi.js +1 -0
- package/dist/github-dark-CzPA46E-.js +1 -0
- package/dist/github-dark-default-BXF7Vm5l.js +1 -0
- package/dist/github-dark-dimmed-CRDKj6ck.js +1 -0
- package/dist/github-light-CRlnGVMD.js +1 -0
- package/dist/github-light-default-UREJT2Bw.js +1 -0
- package/dist/gleam-Dd6f7Z5P.js +1 -0
- package/dist/glimmer-js-I0TZ3_O1.js +13 -0
- package/dist/glimmer-ts-CY38hlIb.js +13 -0
- package/dist/glsl-tOUOXML3.js +1 -0
- package/dist/gnuplot-nclm9rTJ.js +266 -0
- package/dist/go-BJn7Ek5W.js +1 -0
- package/dist/graphql-DwwLrXH1.js +4 -0
- package/dist/groovy-wChcbJ1V.js +37 -0
- package/dist/hack-DmjQSZc3.js +86 -0
- package/dist/haml-map1ik7u.js +1 -0
- package/dist/handlebars-CCc9qS91.js +1 -0
- package/dist/haskell-DOVD4hs_.js +559 -0
- package/dist/haxe-Dit6kIrv.js +11 -0
- package/dist/hcl-CpAANOdC.js +1 -0
- package/dist/hjson-DZqG9GXz.js +50 -0
- package/dist/hlsl-DmDrTTlz.js +1 -0
- package/dist/houston-CZZ6oYdA.js +1 -0
- package/dist/html-NmvpQUfQ.js +74 -0
- package/dist/html-derivative-QphQoco-.js +1 -0
- package/dist/http-B58UUte0.js +1 -0
- package/dist/hxml-4EC8aR1F.js +1 -0
- package/dist/hy-y-6HuL9l.js +3 -0
- package/dist/imba-CyaA9484.js +223 -0
- package/dist/index-UHZxbkBe.js +2 -0
- package/dist/ini-DeVv6D4_.js +1 -0
- package/dist/java-ClXEvkw9.js +68 -0
- package/dist/javascript-Dch3xQiY.js +699 -0
- package/dist/jinja-BrXMjE5a.js +1 -0
- package/dist/jison-DlEKeWyG.js +1 -0
- package/dist/json-CupVZNk8.js +25 -0
- package/dist/json5-Bh8mriwU.js +17 -0
- package/dist/jsonc-DYI1rfmx.js +25 -0
- package/dist/jsonl-BUpeXbsf.js +25 -0
- package/dist/jsonnet-C9d3aiqh.js +1 -0
- package/dist/jssm-Dble9ECP.js +1 -0
- package/dist/jsx-CsyrCbsw.js +699 -0
- package/dist/julia-jDzGJc6I.js +9 -0
- package/dist/kotlin-BIxS-Weu.js +1 -0
- package/dist/kusto-DGEpfOTx.js +1 -0
- package/dist/latex-bjPeSN-x.js +3 -0
- package/dist/less-Du6_OKDb.js +159 -0
- package/dist/lib/index.d.ts +1022 -0
- package/dist/lib/index.js +1 -0
- package/dist/light-plus-BsvsQ1iS.js +1 -0
- package/dist/liquid-DHpvaAyy.js +14 -0
- package/dist/log-Ksn5IXup.js +1 -0
- package/dist/logo-DdacRhvC.js +1 -0
- package/dist/lua-Cy9U1SwF.js +1 -0
- package/dist/make-B9S9BZZh.js +1 -0
- package/dist/markdown-BdfWgkoX.js +129 -0
- package/dist/marko-neMFgnTa.js +8 -0
- package/dist/material-theme-B2BuIiKK.js +1 -0
- package/dist/material-theme-darker-BrGg7AAd.js +1 -0
- package/dist/material-theme-lighter-DDRuGeQH.js +1 -0
- package/dist/material-theme-ocean-CBL0qBdF.js +1 -0
- package/dist/material-theme-palenight-D7gg1Usp.js +1 -0
- package/dist/matlab-Btshr8M_.js +70 -0
- package/dist/mdc-_-l14nii.js +76 -0
- package/dist/mdx-CBPJd_fO.js +1 -0
- package/dist/mermaid-Dkb1Nx48.js +1 -0
- package/dist/min-dark-iSbrOpM4.js +1 -0
- package/dist/min-light-BITGhEdf.js +1 -0
- package/dist/mojo--7WWnkdy.js +517 -0
- package/dist/monokai-sMI-pExk.js +1 -0
- package/dist/move-MN12aA4C.js +1 -0
- package/dist/narrat-B9CT-1u6.js +7 -0
- package/dist/nextflow-DBxHOdLe.js +1 -0
- package/dist/nginx-C3DmzmOp.js +1 -0
- package/dist/night-owl-BeocmOPF.js +1 -0
- package/dist/nim-BjhyiCLB.js +1 -0
- package/dist/nix-B7rNE5kf.js +1 -0
- package/dist/nord-CsyjKwr8.js +1 -0
- package/dist/nushell-CrgTADc5.js +1 -0
- package/dist/objective-c-DHmGyzbM.js +109 -0
- package/dist/objective-cpp-BWKJ1FCf.js +239 -0
- package/dist/ocaml-RqY_Nz63.js +1 -0
- package/dist/one-dark-pro-BTtaZsq5.js +1 -0
- package/dist/one-light-alpzPJ78.js +1 -0
- package/dist/pascal-B6ZnTe72.js +1 -0
- package/dist/perl-PZnu_VA7.js +1 -0
- package/dist/php-m9Z3qs_k.js +771 -0
- package/dist/plsql-BbJj1K1w.js +1 -0
- package/dist/po-HrnDn_2Q.js +1 -0
- package/dist/poimandres-Cda-MJFk.js +1 -0
- package/dist/postcss-DXT9h7v2.js +1 -0
- package/dist/powerquery-CApMHEaB.js +1 -0
- package/dist/powershell-9ZOzOPqN.js +1 -0
- package/dist/prisma-BBJYjQ0k.js +1 -0
- package/dist/prolog-BH_RS3WO.js +1 -0
- package/dist/proto-DOtRmeXT.js +1 -0
- package/dist/pug-jyQP1XtO.js +1 -0
- package/dist/puppet-37ic6j3l.js +1 -0
- package/dist/purescript-Bm5O5oLm.js +7 -0
- package/dist/python-DwuVtWc2.js +518 -0
- package/dist/qml-DM3j-f55.js +1 -0
- package/dist/qmldir-MS3qTAOR.js +1 -0
- package/dist/qss-FJDVp-XM.js +1 -0
- package/dist/r-BXfENWL6.js +1 -0
- package/dist/racket-BbLA0SU8.js +353 -0
- package/dist/raku-D384ylkT.js +1 -0
- package/dist/razor-DokJXJPk.js +40 -0
- package/dist/red-jaXbsbtS.js +1 -0
- package/dist/reg-CrhH3_Og.js +1 -0
- package/dist/regexp-C_ZPRiAj.js +26 -0
- package/dist/rel-BuawaRXJ.js +1 -0
- package/dist/riscv-D-aEEwJo.js +13 -0
- package/dist/rose-pine-BIAFg_EN.js +1 -0
- package/dist/rose-pine-dawn-C5m_N-6l.js +1 -0
- package/dist/rose-pine-moon-B9S0JTD1.js +1 -0
- package/dist/rst-DlAMacAQ.js +1 -0
- package/dist/ruby-eQ1iIi6H.js +80 -0
- package/dist/rust-DGxQkqYo.js +1 -0
- package/dist/sas-BhBoFsCt.js +1 -0
- package/dist/sass-CMDmr8et.js +2 -0
- package/dist/scala-Cd0cRMx9.js +5 -0
- package/dist/scheme-BTeww-4z.js +136 -0
- package/dist/scss-DoQ2ojfq.js +90 -0
- package/dist/shaderlab-Bb-6Dmi7.js +1 -0
- package/dist/shellscript-BZfs-ost.js +1 -0
- package/dist/shellsession-B6XH_PlG.js +1 -0
- package/dist/slack-dark-C7oZ9nno.js +1 -0
- package/dist/slack-ochin-hXH8Gyq8.js +1 -0
- package/dist/smalltalk-DSsji4Hu.js +1 -0
- package/dist/snazzy-light-CA9nliXM.js +1 -0
- package/dist/solarized-dark-C86elO-m.js +1 -0
- package/dist/solarized-light-xPNGhBYe.js +1 -0
- package/dist/solidity-CThH5sBG.js +1 -0
- package/dist/soy-rVg8SA9F.js +1 -0
- package/dist/sparql-Cmp61EUJ.js +1 -0
- package/dist/splunk-6XBPEST2.js +1 -0
- package/dist/sql-DxR2xW-a.js +21 -0
- package/dist/ssh-config-BH1M7C1g.js +1 -0
- package/dist/stata-DGeqZgIM.js +3 -0
- package/dist/stylus-DSrLtGYv.js +15 -0
- package/dist/svelte-BMtjZn0z.js +1 -0
- package/dist/swift-C8WrqfNz.js +544 -0
- package/dist/sync-DItkgf9b.js +303 -0
- package/dist/synthwave-84-BBDuFDsq.js +1 -0
- package/dist/system-verilog-BscxmKrE.js +8 -0
- package/dist/systemd-IQPSIA3x.js +1 -0
- package/dist/tasl-BxwAa5i0.js +1 -0
- package/dist/tcl-C_8Fx7bH.js +1 -0
- package/dist/terraform-DBeuZS66.js +1 -0
- package/dist/tex-BqVuN0dX.js +1 -0
- package/dist/tokyo-night-eJfcURhx.js +1 -0
- package/dist/toml-BT9ZzGyQ.js +69 -0
- package/dist/tsv-DnLUQrgA.js +1 -0
- package/dist/tsx-BlxWTfDV.js +699 -0
- package/dist/turtle-C15OxdQ5.js +1 -0
- package/dist/twig-DDlPLETn.js +40 -0
- package/dist/typescript-DC8MraHL.js +666 -0
- package/dist/typespec-Bx89rGXK.js +1 -0
- package/dist/typst-I4qd5QHW.js +10 -0
- package/dist/v-C2TBxDwV.js +1 -0
- package/dist/vala-CO5hpdkB.js +1 -0
- package/dist/vb-beD-FUib.js +1 -0
- package/dist/verilog-DVfdqzEq.js +1 -0
- package/dist/vesper-BSB_bK09.js +1 -0
- package/dist/vhdl-QZ3jNtnE.js +515 -0
- package/dist/viml-BLluXI4E.js +1 -0
- package/dist/vitesse-black-B3g-KkBK.js +1 -0
- package/dist/vitesse-dark-Bxkoe-BC.js +1 -0
- package/dist/vitesse-light-Br6ll-O0.js +1 -0
- package/dist/vue-B6Rs-4k4.js +6 -0
- package/dist/vue-html-Blw9Jzz9.js +1 -0
- package/dist/vyper-o-cPXEvd.js +575 -0
- package/dist/wasm-2oxoyaYy.js +1 -0
- package/dist/wasm-Cicx_DS6.js +1 -0
- package/dist/wenyan-Cavfe_d0.js +1 -0
- package/dist/wgsl-BZz1Hhek.js +1 -0
- package/dist/wikitext-zfUCmn4z.js +40 -0
- package/dist/wolfram-BICIrM8O.js +1 -0
- package/dist/xml-sp2Egr0Z.js +1 -0
- package/dist/xsl-BQYvujlj.js +1 -0
- package/dist/yaml-C5gCGmDW.js +200 -0
- package/dist/zenscript-B1nm99XP.js +2 -0
- package/dist/zig-xtV5iK4E.js +1 -0
- package/license.txt +21 -0
- package/package.json +109 -0
- package/readme.md +535 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze({displayName:"Apache Conf",fileTypes:["conf","CONF","envvars","htaccess","HTACCESS","htgroups","HTGROUPS","htpasswd","HTPASSWD",".htaccess",".HTACCESS",".htgroups",".HTGROUPS",".htpasswd",".HTPASSWD"],name:"apache",patterns:[{captures:{1:{name:"punctuation.definition.comment.apacheconf"}},match:"^(\\s)*(#).*$\\n?",name:"comment.line.hash.ini"},{captures:{1:{name:"punctuation.definition.tag.apacheconf"},2:{name:"entity.tag.apacheconf"},4:{name:"string.value.apacheconf"},5:{name:"punctuation.definition.tag.apacheconf"}},match:"(<)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(\\s(.+?))?(>)"},{captures:{1:{name:"punctuation.definition.tag.apacheconf"},2:{name:"entity.tag.apacheconf"},3:{name:"punctuation.definition.tag.apacheconf"}},match:"(</)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(>)"},{captures:{3:{name:"string.regexp.apacheconf"},4:{name:"string.replacement.apacheconf"}},match:"(?<=(Rewrite(Rule|Cond)))\\s+(.+?)\\s+(.+?)($|\\s)"},{captures:{2:{name:"entity.status.apacheconf"},3:{name:"string.regexp.apacheconf"},5:{name:"string.path.apacheconf"}},match:"(?<=RedirectMatch)(\\s+(\\d\\d\\d|permanent|temp|seeother|gone))?\\s+(.+?)\\s+((.+?)($|\\s))?"},{captures:{2:{name:"entity.status.apacheconf"},3:{name:"string.path.apacheconf"},5:{name:"string.path.apacheconf"}},match:"(?<=Redirect)(\\s+(\\d\\d\\d|permanent|temp|seeother|gone))?\\s+(.+?)\\s+((.+?)($|\\s))?"},{captures:{1:{name:"string.regexp.apacheconf"},3:{name:"string.path.apacheconf"}},match:"(?<=ScriptAliasMatch|AliasMatch)\\s+(.+?)\\s+((.+?)\\s)?"},{captures:{1:{name:"string.path.apacheconf"},3:{name:"string.path.apacheconf"}},match:"(?<=RedirectPermanent|RedirectTemp|ScriptAlias|Alias)\\s+(.+?)\\s+((.+?)($|\\s))?"},{captures:{1:{name:"keyword.core.apacheconf"}},match:"\\b(AcceptPathInfo|AccessFileName|AddDefaultCharset|AddOutputFilterByType|AllowEncodedSlashes|AllowOverride|AuthName|AuthType|CGIMapExtension|ContentDigest|DefaultType|Define|DocumentRoot|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|FileETag|ForceType|HostnameLookups|IdentityCheck|Include(Optional)?|KeepAlive|KeepAliveTimeout|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine|LimitXMLRequestBody|LogLevel|MaxKeepAliveRequests|Mutex|NameVirtualHost|Options|Require|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScriptInterpreterSource|ServerAdmin|ServerAlias|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetHandler|SetInputFilter|SetOutputFilter|Time(O|o)ut|TraceEnable|UseCanonicalName|Use|ErrorLogFormat|GlobalLog|PHPIniDir|SSLHonorCipherOrder|SSLCompression|SSLUseStapling|SSLStapling\\w+|SSLCARevocationCheck|SSLSRPVerifierFile|SSLSessionTickets|RequestReadTimeout|ProxyHTML\\w+|MaxRanges)\\b"},{captures:{1:{name:"keyword.mpm.apacheconf"}},match:"\\b(AcceptMutex|AssignUserID|BS2000Account|ChildPerUserID|CoreDumpDirectory|EnableExceptionHook|Group|Listen|ListenBacklog|LockFile|MaxClients|MaxConnectionsPerChild|MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxRequestWorkers|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MinSpareServers|MinSpareThreads|NumServers|PidFile|ReceiveBufferSize|ScoreBoardFile|SendBufferSize|ServerLimit|StartServers|StartThreads|ThreadLimit|ThreadsPerChild|ThreadStackSize|User|Win32DisableAcceptEx)\\b"},{captures:{1:{name:"keyword.access.apacheconf"}},match:"\\b(Allow|Deny|Order)\\b"},{captures:{1:{name:"keyword.actions.apacheconf"}},match:"\\b(Action|Script)\\b"},{captures:{1:{name:"keyword.alias.apacheconf"}},match:"\\b(Alias|AliasMatch|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ScriptAlias|ScriptAliasMatch)\\b"},{captures:{1:{name:"keyword.auth.apacheconf"}},match:"\\b(AuthAuthoritative|AuthGroupFile|AuthUserFile|AuthBasicProvider|AuthBasicFake|AuthBasicAuthoritative|AuthBasicUseDigestAlgorithm)\\b"},{captures:{1:{name:"keyword.auth_anon.apacheconf"}},match:"\\b(Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID|Anonymous_VerifyEmail)\\b"},{captures:{1:{name:"keyword.auth_dbm.apacheconf"}},match:"\\b(AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile)\\b"},{captures:{1:{name:"keyword.auth_digest.apacheconf"}},match:"\\b(AuthDigestAlgorithm|AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize|AuthDigestProvider)\\b"},{captures:{1:{name:"keyword.auth_ldap.apacheconf"}},match:"\\b(AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases|AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl)\\b"},{captures:{1:{name:"keyword.autoindex.apacheconf"}},match:"\\b(AddAlt|AddAltByEncoding|AddAltByType|AddDescription|AddIcon|AddIconByEncoding|AddIconByType|DefaultIcon|HeaderName|IndexIgnore|IndexOptions|IndexOrderDefault|IndexStyleSheet|IndexHeadInsert|ReadmeName)\\b"},{captures:{1:{name:"keyword.filter.apacheconf"}},match:"\\b(BalancerMember|BalancerGrowth|BalancerPersist|BalancerInherit)\\b"},{captures:{1:{name:"keyword.cache.apacheconf"}},match:"\\b(CacheDefaultExpire|CacheDisable|CacheEnable|CacheForceCompletion|CacheIgnoreCacheControl|CacheIgnoreHeaders|CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire)\\b"},{captures:{1:{name:"keyword.cern_meta.apacheconf"}},match:"\\b(MetaDir|MetaFiles|MetaSuffix)\\b"},{captures:{1:{name:"keyword.cgi.apacheconf"}},match:"\\b(ScriptLog|ScriptLogBuffer|ScriptLogLength)\\b"},{captures:{1:{name:"keyword.cgid.apacheconf"}},match:"\\b(ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock)\\b"},{captures:{1:{name:"keyword.charset_lite.apacheconf"}},match:"\\b(CharsetDefault|CharsetOptions|CharsetSourceEnc)\\b"},{captures:{1:{name:"keyword.dav.apacheconf"}},match:"\\b(Dav|DavDepthInfinity|DavMinTimeout|DavLockDB)\\b"},{captures:{1:{name:"keyword.deflate.apacheconf"}},match:"\\b(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize)\\b"},{captures:{1:{name:"keyword.dir.apacheconf"}},match:"\\b(DirectoryIndex|DirectorySlash|FallbackResource)\\b"},{captures:{1:{name:"keyword.disk_cache.apacheconf"}},match:"\\b(CacheDirLength|CacheDirLevels|CacheExpiryCheck|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheMaxFileSize|CacheMinFileSize|CacheRoot|CacheSize|CacheTimeMargin)\\b"},{captures:{1:{name:"keyword.dumpio.apacheconf"}},match:"\\b(DumpIOInput|DumpIOOutput)\\b"},{captures:{1:{name:"keyword.env.apacheconf"}},match:"\\b(PassEnv|SetEnv|UnsetEnv)\\b"},{captures:{1:{name:"keyword.expires.apacheconf"}},match:"\\b(ExpiresActive|ExpiresByType|ExpiresDefault)\\b"},{captures:{1:{name:"keyword.ext_filter.apacheconf"}},match:"\\b(ExtFilterDefine|ExtFilterOptions)\\b"},{captures:{1:{name:"keyword.file_cache.apacheconf"}},match:"\\b(CacheFile|MMapFile)\\b"},{captures:{1:{name:"keyword.filter.apacheconf"}},match:"\\b(AddOutputFilterByType|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace)\\b"},{captures:{1:{name:"keyword.headers.apacheconf"}},match:"\\b(Header|RequestHeader)\\b"},{captures:{1:{name:"keyword.imap.apacheconf"}},match:"\\b(ImapBase|ImapDefault|ImapMenu)\\b"},{captures:{1:{name:"keyword.include.apacheconf"}},match:"\\b(SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|XBitHack)\\b"},{captures:{1:{name:"keyword.isapi.apacheconf"}},match:"\\b(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer)\\b"},{captures:{1:{name:"keyword.ldap.apacheconf"}},match:"\\b(LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize|LDAPTrustedCA|LDAPTrustedCAType)\\b"},{captures:{1:{name:"keyword.log.apacheconf"}},match:"\\b(BufferedLogs|CookieLog|CustomLog|LogFormat|TransferLog|ForensicLog)\\b"},{captures:{1:{name:"keyword.mem_cache.apacheconf"}},match:"\\b(MCacheMaxObjectCount|MCacheMaxObjectSize|MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize)\\b"},{captures:{1:{name:"keyword.mime.apacheconf"}},match:"\\b(AddCharset|AddEncoding|AddHandler|AddInputFilter|AddLanguage|AddOutputFilter|AddType|DefaultLanguage|ModMimeUsePathInfo|MultiviewsMatch|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|TypesConfig)\\b"},{captures:{1:{name:"keyword.misc.apacheconf"}},match:"\\b(ProtocolEcho|Example|AddModuleInfo|MimeMagicFile|CheckSpelling|ExtendedStatus|SuexecUserGroup|UserDir)\\b"},{captures:{1:{name:"keyword.negotiation.apacheconf"}},match:"\\b(CacheNegotiatedDocs|ForceLanguagePriority|LanguagePriority)\\b"},{captures:{1:{name:"keyword.nw_ssl.apacheconf"}},match:"\\b(NWSSLTrustedCerts|NWSSLUpgradeable|SecureListen)\\b"},{captures:{1:{name:"keyword.proxy.apacheconf"}},match:"\\b(AllowCONNECT|NoProxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyFtpDirCharset|ProxyIOBufferSize|ProxyMaxForwards|ProxyPass|ProxyPassMatch|ProxyPassReverse|ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia)\\b"},{captures:{1:{name:"keyword.rewrite.apacheconf"}},match:"\\b(RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule)\\b"},{captures:{1:{name:"keyword.setenvif.apacheconf"}},match:"\\b(BrowserMatch|BrowserMatchNoCase|SetEnvIf|SetEnvIfNoCase)\\b"},{captures:{1:{name:"keyword.so.apacheconf"}},match:"\\b(LoadFile|LoadModule)\\b"},{captures:{1:{name:"keyword.ssl.apacheconf"}},match:"\\b(SSLCACertificateFile|SSLCACertificatePath|SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions|SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite|SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire|SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|SSLInsecureRenegotiation|SSLOpenSSLConfCmd)\\b"},{captures:{1:{name:"keyword.substitute.apacheconf"}},match:"\\b(Substitute|SubstituteInheritBefore|SubstituteMaxLineLength)\\b"},{captures:{1:{name:"keyword.usertrack.apacheconf"}},match:"\\b(CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking)\\b"},{captures:{1:{name:"keyword.vhost_alias.apacheconf"}},match:"\\b(VirtualDocumentRoot|VirtualDocumentRootIP|VirtualScriptAlias|VirtualScriptAliasIP)\\b"},{captures:{1:{name:"keyword.php.apacheconf"},3:{name:"entity.property.apacheconf"},5:{name:"string.value.apacheconf"}},match:'\\b(php_value|php_flag|php_admin_value|php_admin_flag)\\b(\\s+(.+?)(\\s+(".+?"|.+?))?)?\\s'},{captures:{1:{name:"punctuation.variable.apacheconf"},3:{name:"variable.env.apacheconf"},4:{name:"variable.misc.apacheconf"},5:{name:"punctuation.variable.apacheconf"}},match:"(%\\{)((HTTP_USER_AGENT|HTTP_REFERER|HTTP_COOKIE|HTTP_FORWARDED|HTTP_HOST|HTTP_PROXY_CONNECTION|HTTP_ACCEPT|REMOTE_ADDR|REMOTE_HOST|REMOTE_PORT|REMOTE_USER|REMOTE_IDENT|REQUEST_METHOD|SCRIPT_FILENAME|PATH_INFO|QUERY_STRING|AUTH_TYPE|DOCUMENT_ROOT|SERVER_ADMIN|SERVER_NAME|SERVER_ADDR|SERVER_PORT|SERVER_PROTOCOL|SERVER_SOFTWARE|TIME_YEAR|TIME_MON|TIME_DAY|TIME_HOUR|TIME_MIN|TIME_SEC|TIME_WDAY|TIME|API_VERSION|THE_REQUEST|REQUEST_URI|REQUEST_FILENAME|IS_SUBREQ|HTTPS)|(.*?))(\\})"},{captures:{1:{name:"entity.mime-type.apacheconf"}},match:"\\b((text|image|application|video|audio)/.+?)\\s"},{captures:{1:{name:"entity.helper.apacheconf"}},match:"\\b(?i)(export|from|unset|set|on|off)\\b"},{captures:{1:{name:"constant.numeric.integer.decimal.apacheconf"}},match:"\\b(\\d+)\\b"},{captures:{1:{name:"punctuation.definition.flag.apacheconf"},2:{name:"string.flag.apacheconf"},3:{name:"punctuation.definition.flag.apacheconf"}},match:"\\s(\\[)(.*?)(\\])\\s"}],scopeName:"source.apacheconf"});var a=[e];export{a as default};
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
const e=Object.freeze({displayName:"Apex",fileTypes:["apex","cls","trigger"],name:"apex",patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#directives"},{include:"#declarations"},{include:"#script-top-level"}],repository:{"annotation-declaration":{begin:"([@][_[:alpha:]]+)\\b",beginCaptures:{1:{name:"storage.type.annotation.apex"}},end:"(?<=\\)|$)",patterns:[{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},{include:"#statement"}]},"argument-list":{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#named-argument"},{include:"#expression"},{include:"#punctuation-comma"}]},"array-creation-expression":{begin:`(?x)
|
|
2
|
+
\\b(new)\\b\\s*
|
|
3
|
+
(?<type_name>
|
|
4
|
+
(?:
|
|
5
|
+
(?:
|
|
6
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
7
|
+
(?<name_and_type_args>
|
|
8
|
+
\\g<identifier>\\s*
|
|
9
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
10
|
+
)
|
|
11
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
12
|
+
)
|
|
13
|
+
(?:\\s*\\?\\s*)?
|
|
14
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
15
|
+
)
|
|
16
|
+
)?\\s*
|
|
17
|
+
(?=\\[)`,beginCaptures:{1:{name:"keyword.control.new.apex"},2:{patterns:[{include:"#support-type"},{include:"#type"}]}},end:"(?<=\\])",patterns:[{include:"#bracketed-argument-list"}]},block:{begin:"\\{",beginCaptures:{0:{name:"punctuation.curlybrace.open.apex"}},end:"\\}",endCaptures:{0:{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#statement"}]},"boolean-literal":{patterns:[{match:"(?<!\\.)\\btrue\\b",name:"constant.language.boolean.true.apex"},{match:"(?<!\\.)\\bfalse\\b",name:"constant.language.boolean.false.apex"}]},"bracketed-argument-list":{begin:"\\[",beginCaptures:{0:{name:"punctuation.squarebracket.open.apex"}},end:"\\]",endCaptures:{0:{name:"punctuation.squarebracket.close.apex"}},patterns:[{include:"#soql-query-expression"},{include:"#named-argument"},{include:"#expression"},{include:"#punctuation-comma"}]},"break-or-continue-statement":{captures:{1:{name:"keyword.control.flow.break.apex"},2:{name:"keyword.control.flow.continue.apex"}},match:"(?<!\\.)\\b(?:(break)|(continue))\\b"},"cast-expression":{captures:{1:{name:"punctuation.parenthesis.open.apex"},2:{patterns:[{include:"#support-type"},{include:"#type"}]},6:{name:"punctuation.parenthesis.close.apex"}},match:`(?x)
|
|
18
|
+
(\\()\\s*
|
|
19
|
+
(?<type_name>
|
|
20
|
+
(?:
|
|
21
|
+
(?:
|
|
22
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
23
|
+
(?<name_and_type_args>
|
|
24
|
+
\\g<identifier>\\s*
|
|
25
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
26
|
+
)
|
|
27
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
28
|
+
)
|
|
29
|
+
(?:\\s*\\?\\s*)?
|
|
30
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
31
|
+
)
|
|
32
|
+
)\\s*
|
|
33
|
+
(\\))(?=\\s*@?[_[:alnum:]\\(])`},"catch-clause":{begin:"(?<!\\.)\\b(catch)\\b",beginCaptures:{1:{name:"keyword.control.try.catch.apex"}},end:"(?<=\\})",patterns:[{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{captures:{1:{patterns:[{include:"#support-type"},{include:"#type"}]},5:{name:"entity.name.variable.local.apex"}},match:`(?x)
|
|
34
|
+
(?<type_name>
|
|
35
|
+
(?:
|
|
36
|
+
(?:
|
|
37
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
38
|
+
(?<name_and_type_args>
|
|
39
|
+
\\g<identifier>\\s*
|
|
40
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
41
|
+
)
|
|
42
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
43
|
+
)
|
|
44
|
+
(?:\\s*\\?\\s*)?
|
|
45
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
46
|
+
)
|
|
47
|
+
)\\s*
|
|
48
|
+
(?:(\\g<identifier>)\\b)?`}]},{include:"#comment"},{include:"#block"}]},"class-declaration":{begin:"(?=\\bclass\\b)",end:"(?<=\\})",patterns:[{begin:`(?x)
|
|
49
|
+
\\b(class)\\b\\s+
|
|
50
|
+
(@?[_[:alpha:]][_[:alnum:]]*)\\s*`,beginCaptures:{1:{name:"keyword.other.class.apex"},2:{name:"entity.name.type.class.apex"}},end:"(?=\\{)",patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#type-parameter-list"},{include:"#extends-class"},{include:"#implements-class"}]},{begin:"\\{",beginCaptures:{0:{name:"punctuation.curlybrace.open.apex"}},end:"\\}",endCaptures:{0:{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#class-or-trigger-members"}]},{include:"#javadoc-comment"},{include:"#comment"}]},"class-or-trigger-members":{patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#storage-modifier"},{include:"#sharing-modifier"},{include:"#type-declarations"},{include:"#field-declaration"},{include:"#property-declaration"},{include:"#indexer-declaration"},{include:"#variable-initializer"},{include:"#constructor-declaration"},{include:"#method-declaration"},{include:"#punctuation-semicolon"}]},"colon-expression":{match:":",name:"keyword.operator.conditional.colon.apex"},comment:{patterns:[{begin:"/\\*(\\*)?",beginCaptures:{0:{name:"punctuation.definition.comment.apex"}},end:"\\*/",endCaptures:{0:{name:"punctuation.definition.comment.apex"}},name:"comment.block.apex"},{begin:"(^\\s+)?(?=//)",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.apex"}},end:"(?=$)",patterns:[{begin:"(?<!/)///(?!/)",beginCaptures:{0:{name:"punctuation.definition.comment.apex"}},end:"(?=$)",name:"comment.block.documentation.apex",patterns:[{include:"#xml-doc-comment"}]},{begin:"(?<!/)//(?:(?!/)|(?=//))",beginCaptures:{0:{name:"punctuation.definition.comment.apex"}},end:"(?=$)",name:"comment.line.double-slash.apex"}]}]},"conditional-operator":{begin:"(?<!\\?)\\?(?!\\?|\\.|\\[)",beginCaptures:{0:{name:"keyword.operator.conditional.question-mark.apex"}},end:":",endCaptures:{0:{name:"keyword.operator.conditional.colon.apex"}},patterns:[{include:"#expression"}]},"constructor-declaration":{begin:"(?=@?[_[:alpha:]][_[:alnum:]]*\\s*\\()",end:"(?<=\\})|(?=;)",patterns:[{captures:{1:{name:"entity.name.function.apex"}},match:"(@?[_[:alpha:]][_[:alnum:]]*)\\b"},{begin:"(:)",beginCaptures:{1:{name:"punctuation.separator.colon.apex"}},end:"(?=\\{|=>)",patterns:[{include:"#constructor-initializer"}]},{include:"#parenthesized-parameter-list"},{include:"#comment"},{include:"#expression-body"},{include:"#block"}]},"constructor-initializer":{begin:"\\b(?:(this))\\b\\s*(?=\\()",beginCaptures:{1:{name:"keyword.other.this.apex"}},end:"(?<=\\))",patterns:[{include:"#argument-list"}]},"date-literal-with-params":{captures:{1:{name:"keyword.operator.query.date.apex"}},match:"\\b((LAST_N_DAYS|NEXT_N_DAYS|NEXT_N_WEEKS|LAST_N_WEEKS|NEXT_N_MONTHS|LAST_N_MONTHS|NEXT_N_QUARTERS|LAST_N_QUARTERS|NEXT_N_YEARS|LAST_N_YEARS|NEXT_N_FISCAL_QUARTERS|LAST_N_FISCAL_QUARTERS|NEXT_N_FISCAL_YEARS|LAST_N_FISCAL_YEARS)\\s*\\:\\d+)\\b"},"date-literals":{captures:{1:{name:"keyword.operator.query.date.apex"}},match:"\\b(YESTERDAY|TODAY|TOMORROW|LAST_WEEK|THIS_WEEK|NEXT_WEEK|LAST_MONTH|THIS_MONTH|NEXT_MONTH|LAST_90_DAYS|NEXT_90_DAYS|THIS_QUARTER|LAST_QUARTER|NEXT_QUARTER|THIS_YEAR|LAST_YEAR|NEXT_YEAR|THIS_FISCAL_QUARTER|LAST_FISCAL_QUARTER|NEXT_FISCAL_QUARTER|THIS_FISCAL_YEAR|LAST_FISCAL_YEAR|NEXT_FISCAL_YEAR)\\b\\s*"},declarations:{patterns:[{include:"#type-declarations"},{include:"#punctuation-semicolon"}]},directives:{patterns:[{include:"#punctuation-semicolon"}]},"do-statement":{begin:"(?<!\\.)\\b(do)\\b",beginCaptures:{1:{name:"keyword.control.loop.do.apex"}},end:"(?=;|})",patterns:[{include:"#statement"}]},"element-access-expression":{begin:`(?x)
|
|
51
|
+
(?:(\\??\\.)\\s*)?
|
|
52
|
+
(?:(@?[_[:alpha:]][_[:alnum:]]*)\\s*)?
|
|
53
|
+
(?:(\\?)\\s*)?
|
|
54
|
+
(?=\\[)`,beginCaptures:{1:{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},2:{name:"variable.other.object.property.apex"},3:{name:"keyword.operator.null-conditional.apex"}},end:"(?<=\\])(?!\\s*\\[)",patterns:[{include:"#bracketed-argument-list"}]},"else-part":{begin:"(?<!\\.)\\b(else)\\b",beginCaptures:{1:{name:"keyword.control.conditional.else.apex"}},end:"(?<=\\})|(?=;)",patterns:[{include:"#statement"}]},"enum-declaration":{begin:"(?=\\benum\\b)",end:"(?<=\\})",patterns:[{begin:"(?=enum)",end:"(?=\\{)",patterns:[{include:"#javadoc-comment"},{include:"#comment"},{captures:{1:{name:"keyword.other.enum.apex"},2:{name:"entity.name.type.enum.apex"}},match:"(enum)\\s+(@?[_[:alpha:]][_[:alnum:]]*)"}]},{begin:"\\{",beginCaptures:{0:{name:"punctuation.curlybrace.open.apex"}},end:"\\}",endCaptures:{0:{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#punctuation-comma"},{begin:"@?[_[:alpha:]][_[:alnum:]]*",beginCaptures:{0:{name:"entity.name.variable.enum-member.apex"}},end:"(?=(,|\\}))",patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#variable-initializer"}]}]},{include:"#javadoc-comment"},{include:"#comment"}]},expression:{patterns:[{include:"#comment"},{include:"#merge-expression"},{include:"#support-expression"},{include:"#throw-expression"},{include:"#this-expression"},{include:"#trigger-context-declaration"},{include:"#conditional-operator"},{include:"#expression-operators"},{include:"#soql-query-expression"},{include:"#object-creation-expression"},{include:"#array-creation-expression"},{include:"#invocation-expression"},{include:"#member-access-expression"},{include:"#element-access-expression"},{include:"#cast-expression"},{include:"#literal"},{include:"#parenthesized-expression"},{include:"#initializer-expression"},{include:"#identifier"}]},"expression-body":{begin:"=>",beginCaptures:{0:{name:"keyword.operator.arrow.apex"}},end:"(?=[,\\);}])",patterns:[{include:"#expression"}]},"expression-operators":{patterns:[{match:"\\*=|/=|%=|\\+=|-=",name:"keyword.operator.assignment.compound.apex"},{match:"\\&=|\\^=|<<=|>>=|\\|=",name:"keyword.operator.assignment.compound.bitwise.apex"},{match:"<<|>>",name:"keyword.operator.bitwise.shift.apex"},{match:"==|!=",name:"keyword.operator.comparison.apex"},{match:"<=|>=|<|>",name:"keyword.operator.relational.apex"},{match:"\\!|&&|\\|\\|",name:"keyword.operator.logical.apex"},{match:"\\&|~|\\^|\\|",name:"keyword.operator.bitwise.apex"},{match:"\\=",name:"keyword.operator.assignment.apex"},{match:"--",name:"keyword.operator.decrement.apex"},{match:"\\+\\+",name:"keyword.operator.increment.apex"},{match:"%|\\*|/|-|\\+",name:"keyword.operator.arithmetic.apex"}]},"extends-class":{begin:"(extends)\\b\\s+([_[:alpha:]][_[:alnum:]]*)",beginCaptures:{1:{name:"keyword.other.extends.apex"},2:{name:"entity.name.type.extends.apex"}},end:"(?={|implements)"},"field-declaration":{begin:`(?x)
|
|
55
|
+
(?<type_name>
|
|
56
|
+
(?:
|
|
57
|
+
(?:
|
|
58
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
59
|
+
(?<name_and_type_args>
|
|
60
|
+
\\g<identifier>\\s*
|
|
61
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
62
|
+
)
|
|
63
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
64
|
+
)
|
|
65
|
+
(?:\\s*\\?\\s*)?
|
|
66
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
67
|
+
)
|
|
68
|
+
)\\s+
|
|
69
|
+
(\\g<identifier>)\\s*
|
|
70
|
+
(?!=>|==)(?=,|;|=|$)`,beginCaptures:{1:{patterns:[{include:"#support-type"},{include:"#type"}]},5:{name:"entity.name.variable.field.apex"}},end:"(?=;)",patterns:[{match:"@?[_[:alpha:]][_[:alnum:]]*",name:"entity.name.variable.field.apex"},{include:"#punctuation-comma"},{include:"#comment"},{include:"#variable-initializer"},{include:"#class-or-trigger-members"}]},"finally-clause":{begin:"(?<!\\.)\\b(finally)\\b",beginCaptures:{1:{name:"keyword.control.try.finally.apex"}},end:"(?<=\\})",patterns:[{include:"#comment"},{include:"#block"}]},"for-apex-syntax":{captures:{1:{patterns:[{include:"#support-type"},{include:"#type"}]},2:{name:"entity.name.variable.local.apex"},3:{name:"keyword.operator.iterator.colon.apex"}},match:"([_.[:alpha:]][_.[:alnum:]]+)\\s+([_.[:alpha:]][_.[:alnum:]]*)\\s*(\\:)"},"for-statement":{begin:"(?<!\\.)\\b(for)\\b\\s*(?=\\()",beginCaptures:{1:{name:"keyword.control.loop.for.apex"}},end:"(?<=\\})|(?=;)",patterns:[{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#for-apex-syntax"},{include:"#local-variable-declaration"},{include:"#expression"},{include:"#punctuation-comma"},{include:"#punctuation-semicolon"},{include:"#colon-expression"}]},{include:"#statement"}]},"from-clause":{captures:{1:{name:"keyword.operator.query.from.apex"},2:{name:"storage.type.apex"}},match:"(FROM)\\b\\s*([_\\.[:alnum:]]+\\b)?"},"goto-statement":{begin:"(?<!\\.)\\b(goto)\\b",beginCaptures:{1:{name:"keyword.control.goto.apex"}},end:"(?=;)",patterns:[{begin:"\\b(case)\\b",beginCaptures:{1:{name:"keyword.control.case.apex"}},end:"(?=;)",patterns:[{include:"#expression"}]},{captures:{1:{name:"keyword.control.default.apex"}},match:"\\b(default)\\b"},{match:"@?[_[:alpha:]][_[:alnum:]]*",name:"entity.name.label.apex"}]},identifier:{match:"@?[_[:alpha:]][_[:alnum:]]*",name:"variable.other.readwrite.apex"},"if-statement":{begin:"(?<!\\.)\\b(if)\\b\\s*(?=\\()",beginCaptures:{1:{name:"keyword.control.conditional.if.apex"}},end:"(?<=\\})|(?=;)",patterns:[{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},{include:"#statement"}]},"implements-class":{begin:"(implements)\\b\\s+([_[:alpha:]][_[:alnum:]]*)",beginCaptures:{1:{name:"keyword.other.implements.apex"},2:{name:"entity.name.type.implements.apex"}},end:"(?={|extends)"},"indexer-declaration":{begin:`(?x)
|
|
71
|
+
(?<return_type>
|
|
72
|
+
(?<type_name>
|
|
73
|
+
(?:
|
|
74
|
+
(?:ref\\s+)?
|
|
75
|
+
(?:
|
|
76
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
77
|
+
(?<name_and_type_args>
|
|
78
|
+
\\g<identifier>\\s*
|
|
79
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
80
|
+
)
|
|
81
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
82
|
+
)
|
|
83
|
+
(?:\\s*\\?\\s*)?
|
|
84
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
85
|
+
)
|
|
86
|
+
)\\s+
|
|
87
|
+
)
|
|
88
|
+
(?<interface_name>\\g<type_name>\\s*\\.\\s*)?
|
|
89
|
+
(?<indexer_name>this)\\s*
|
|
90
|
+
(?=\\[)`,beginCaptures:{1:{patterns:[{include:"#type"}]},6:{patterns:[{include:"#type"},{include:"#punctuation-accessor"}]},7:{name:"keyword.other.this.apex"}},end:"(?<=\\})|(?=;)",patterns:[{include:"#comment"},{include:"#property-accessors"},{include:"#expression-body"},{include:"#variable-initializer"}]},"initializer-expression":{begin:"\\{",beginCaptures:{0:{name:"punctuation.curlybrace.open.apex"}},end:"\\}",endCaptures:{0:{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"interface-declaration":{begin:"(?=\\binterface\\b)",end:"(?<=\\})",patterns:[{begin:`(?x)
|
|
91
|
+
(interface)\\b\\s+
|
|
92
|
+
(@?[_[:alpha:]][_[:alnum:]]*)`,beginCaptures:{1:{name:"keyword.other.interface.apex"},2:{name:"entity.name.type.interface.apex"}},end:"(?=\\{)",patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#type-parameter-list"},{include:"#extends-class"}]},{begin:"\\{",beginCaptures:{0:{name:"punctuation.curlybrace.open.apex"}},end:"\\}",endCaptures:{0:{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#interface-members"}]},{include:"#javadoc-comment"},{include:"#comment"}]},"interface-members":{patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#property-declaration"},{include:"#indexer-declaration"},{include:"#method-declaration"},{include:"#punctuation-semicolon"}]},"invocation-expression":{begin:`(?x)
|
|
93
|
+
(?:(\\??\\.)\\s*)?
|
|
94
|
+
(@?[_[:alpha:]][_[:alnum:]]*)\\s*
|
|
95
|
+
(?<type_args>\\s*<([^<>]|\\g<type_args>)+>\\s*)?\\s*
|
|
96
|
+
(?=\\()`,beginCaptures:{1:{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},2:{name:"entity.name.function.apex"},3:{patterns:[{include:"#type-arguments"}]}},end:"(?<=\\))",patterns:[{include:"#argument-list"}]},"javadoc-comment":{patterns:[{begin:"^\\s*(/\\*\\*)(?!/)",beginCaptures:{1:{name:"punctuation.definition.comment.apex"}},end:"\\*/",endCaptures:{0:{name:"punctuation.definition.comment.apex"}},name:"comment.block.javadoc.apex",patterns:[{match:"@(deprecated|author|return|see|serial|since|version|usage|name|link)\\b",name:"keyword.other.documentation.javadoc.apex"},{captures:{1:{name:"keyword.other.documentation.javadoc.apex"},2:{name:"entity.name.variable.parameter.apex"}},match:"(@param)\\s+(\\S+)"},{captures:{1:{name:"keyword.other.documentation.javadoc.apex"},2:{name:"entity.name.type.class.apex"}},match:"(@(?:exception|throws))\\s+(\\S+)"},{captures:{1:{name:"string.quoted.single.apex"}},match:"(`([^`]+?)`)"}]}]},literal:{patterns:[{include:"#boolean-literal"},{include:"#null-literal"},{include:"#numeric-literal"},{include:"#string-literal"}]},"local-constant-declaration":{begin:`(?x)
|
|
97
|
+
(?<const_keyword>\\b(?:const)\\b)\\s*
|
|
98
|
+
(?<type_name>
|
|
99
|
+
(?:
|
|
100
|
+
(?:
|
|
101
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
102
|
+
(?<name_and_type_args>
|
|
103
|
+
\\g<identifier>\\s*
|
|
104
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
105
|
+
)
|
|
106
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
107
|
+
)
|
|
108
|
+
(?:\\s*\\?\\s*)?
|
|
109
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
110
|
+
)
|
|
111
|
+
)\\s+
|
|
112
|
+
(\\g<identifier>)\\s*
|
|
113
|
+
(?=,|;|=)`,beginCaptures:{1:{name:"storage.modifier.apex"},2:{patterns:[{include:"#type"}]},6:{name:"entity.name.variable.local.apex"}},end:"(?=;)",patterns:[{match:"@?[_[:alpha:]][_[:alnum:]]*",name:"entity.name.variable.local.apex"},{include:"#punctuation-comma"},{include:"#comment"},{include:"#variable-initializer"}]},"local-declaration":{patterns:[{include:"#local-constant-declaration"},{include:"#local-variable-declaration"}]},"local-variable-declaration":{begin:`(?x)
|
|
114
|
+
(?:
|
|
115
|
+
(?:(\\bref)\\s+)?(\\bvar\\b)|
|
|
116
|
+
(?<type_name>
|
|
117
|
+
(?:
|
|
118
|
+
(?:ref\\s+)?
|
|
119
|
+
(?:
|
|
120
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
121
|
+
(?<name_and_type_args>
|
|
122
|
+
\\g<identifier>\\s*
|
|
123
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
124
|
+
)
|
|
125
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
126
|
+
)
|
|
127
|
+
(?:\\s*\\?\\s*)?
|
|
128
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
129
|
+
)
|
|
130
|
+
)
|
|
131
|
+
)\\s+
|
|
132
|
+
(\\g<identifier>)\\s*
|
|
133
|
+
(?=,|;|=|\\))`,beginCaptures:{1:{name:"storage.modifier.apex"},2:{name:"keyword.other.var.apex"},3:{patterns:[{include:"#support-type"},{include:"#type"}]},7:{name:"entity.name.variable.local.apex"}},end:"(?=;|\\))",patterns:[{match:"@?[_[:alpha:]][_[:alnum:]]*",name:"entity.name.variable.local.apex"},{include:"#punctuation-comma"},{include:"#comment"},{include:"#variable-initializer"}]},"member-access-expression":{patterns:[{captures:{1:{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},2:{name:"variable.other.object.property.apex"}},match:`(?x)
|
|
134
|
+
(\\??\\.)\\s*
|
|
135
|
+
(@?[_[:alpha:]][_[:alnum:]]*)\\s*
|
|
136
|
+
(?![_[:alnum:]]|\\(|(\\?)?\\[|<)`},{captures:{1:{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},2:{name:"variable.other.object.apex"},3:{patterns:[{include:"#type-arguments"}]}},match:`(?x)
|
|
137
|
+
(\\??\\.)?\\s*
|
|
138
|
+
(@?[_[:alpha:]][_[:alnum:]]*)
|
|
139
|
+
(?<type_params>\\s*<([^<>]|\\g<type_params>)+>\\s*)
|
|
140
|
+
(?=
|
|
141
|
+
(\\s*\\?)?
|
|
142
|
+
\\s*\\.\\s*@?[_[:alpha:]][_[:alnum:]]*
|
|
143
|
+
)`},{captures:{1:{name:"variable.other.object.apex"}},match:`(?x)
|
|
144
|
+
(@?[_[:alpha:]][_[:alnum:]]*)
|
|
145
|
+
(?=
|
|
146
|
+
(\\s*\\?)?
|
|
147
|
+
\\s*\\.\\s*@?[_[:alpha:]][_[:alnum:]]*
|
|
148
|
+
)`}]},"merge-expression":{begin:"(merge)\\b\\s+",beginCaptures:{1:{name:"support.function.apex"}},end:"(?<=\\;)",patterns:[{include:"#object-creation-expression"},{include:"#merge-type-statement"},{include:"#expression"},{include:"#punctuation-semicolon"}]},"merge-type-statement":{captures:{1:{name:"variable.other.readwrite.apex"},2:{name:"variable.other.readwrite.apex"},3:{name:"punctuation.terminator.statement.apex"}},match:"([_[:alpha:]]*)\\b\\s+([_[:alpha:]]*)\\b\\s*(\\;)"},"method-declaration":{begin:`(?x)
|
|
149
|
+
(?<return_type>
|
|
150
|
+
(?<type_name>
|
|
151
|
+
(?:
|
|
152
|
+
(?:ref\\s+)?
|
|
153
|
+
(?:
|
|
154
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
155
|
+
(?<name_and_type_args>
|
|
156
|
+
\\g<identifier>\\s*
|
|
157
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
158
|
+
)
|
|
159
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
160
|
+
)
|
|
161
|
+
(?:\\s*\\?\\s*)?
|
|
162
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
163
|
+
)
|
|
164
|
+
)\\s+
|
|
165
|
+
)
|
|
166
|
+
(?<interface_name>\\g<type_name>\\s*\\.\\s*)?
|
|
167
|
+
(\\g<identifier>)\\s*
|
|
168
|
+
(<([^<>]+)>)?\\s*
|
|
169
|
+
(?=\\()`,beginCaptures:{1:{patterns:[{include:"#support-type"},{include:"#type"}]},6:{patterns:[{include:"#type"},{include:"#punctuation-accessor"}]},7:{patterns:[{include:"#support-type"},{include:"#method-name-custom"}]},8:{patterns:[{include:"#type-parameter-list"}]}},end:"(?<=\\})|(?=;)",patterns:[{include:"#comment"},{include:"#parenthesized-parameter-list"},{include:"#expression-body"},{include:"#block"}]},"method-name-custom":{match:"@?[_[:alpha:]][_[:alnum:]]*",name:"entity.name.function.apex"},"named-argument":{begin:"(@?[_[:alpha:]][_[:alnum:]]*)\\s*(:)",beginCaptures:{1:{name:"entity.name.variable.parameter.apex"},2:{name:"punctuation.separator.colon.apex"}},end:"(?=(,|\\)|\\]))",patterns:[{include:"#expression"}]},"null-literal":{match:"(?<!\\.)\\bnull\\b",name:"constant.language.null.apex"},"numeric-literal":{patterns:[{match:"\\b(\\d{4}\\-\\d{2}\\-\\d{2}T\\d{2}\\:\\d{2}\\:\\d{2}(\\.\\d{1,3})?(\\-|\\+)\\d{2}\\:\\d{2})\\b",name:"constant.numeric.datetime.apex"},{match:"\\b(\\d{4}\\-\\d{2}\\-\\d{2}T\\d{2}\\:\\d{2}\\:\\d{2}(\\.\\d{1,3})?(Z)?)\\b",name:"constant.numeric.datetime.apex"},{match:"\\b(\\d{4}\\-\\d{2}\\-\\d{2})\\b",name:"constant.numeric.date.apex"},{match:"\\b0(x|X)[0-9a-fA-F_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b",name:"constant.numeric.hex.apex"},{match:"\\b0(b|B)[01_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b",name:"constant.numeric.binary.apex"},{match:"\\b([0-9_]+)?\\.[0-9_]+((e|E)[0-9]+)?(F|f|D|d|M|m)?\\b",name:"constant.numeric.decimal.apex"},{match:"\\b[0-9_]+(e|E)[0-9_]+(F|f|D|d|M|m)?\\b",name:"constant.numeric.decimal.apex"},{match:"\\b[0-9_]+(F|f|D|d|M|m)\\b",name:"constant.numeric.decimal.apex"},{match:"\\b[0-9_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b",name:"constant.numeric.decimal.apex"}]},"object-creation-expression":{patterns:[{include:"#object-creation-expression-with-parameters"},{include:"#object-creation-expression-with-no-parameters"},{include:"#punctuation-comma"}]},"object-creation-expression-with-no-parameters":{captures:{1:{name:"support.function.apex"},2:{name:"keyword.control.new.apex"},3:{patterns:[{include:"#support-type"},{include:"#type"}]}},match:`(?x)
|
|
170
|
+
(delete|insert|undelete|update|upsert)?
|
|
171
|
+
\\s*(new)\\s+
|
|
172
|
+
(?<type_name>
|
|
173
|
+
(?:
|
|
174
|
+
(?:
|
|
175
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
176
|
+
(?<name_and_type_args>
|
|
177
|
+
\\g<identifier>\\s*
|
|
178
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
179
|
+
)
|
|
180
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
181
|
+
)
|
|
182
|
+
(?:\\s*\\?\\s*)?
|
|
183
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
184
|
+
)
|
|
185
|
+
)\\s*
|
|
186
|
+
(?=\\{|$)`},"object-creation-expression-with-parameters":{begin:`(?x)
|
|
187
|
+
(delete|insert|undelete|update|upsert)?
|
|
188
|
+
\\s*(new)\\s+
|
|
189
|
+
(?<type_name>
|
|
190
|
+
(?:
|
|
191
|
+
(?:
|
|
192
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
193
|
+
(?<name_and_type_args>
|
|
194
|
+
\\g<identifier>\\s*
|
|
195
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
196
|
+
)
|
|
197
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
198
|
+
)
|
|
199
|
+
(?:\\s*\\?\\s*)?
|
|
200
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
201
|
+
)
|
|
202
|
+
)\\s*
|
|
203
|
+
(?=\\()`,beginCaptures:{1:{name:"support.function.apex"},2:{name:"keyword.control.new.apex"},3:{patterns:[{include:"#support-type"},{include:"#type"}]}},end:"(?<=\\))",patterns:[{include:"#argument-list"}]},"operator-assignment":{match:"(?<!=|!)(=)(?!=)",name:"keyword.operator.assignment.apex"},"operator-safe-navigation":{match:"\\?\\.",name:"keyword.operator.safe-navigation.apex"},"orderby-clause":{captures:{1:{name:"keyword.operator.query.orderby.apex"}},match:"\\b(ORDER BY)\\b\\s*",patterns:[{include:"#ordering-direction"},{include:"#ordering-nulls"}]},"ordering-direction":{captures:{1:{name:"keyword.operator.query.ascending.apex"},2:{name:"keyword.operator.query.descending.apex"}},match:"\\b(?:(ASC)|(DESC))\\b"},"ordering-nulls":{captures:{1:{name:"keyword.operator.query.nullsfirst.apex"},2:{name:"keyword.operator.query.nullslast.apex"}},match:"\\b(?:(NULLS FIRST)|(NULLS LAST))\\b"},parameter:{captures:{1:{name:"storage.modifier.apex"},2:{patterns:[{include:"#support-type"},{include:"#type"}]},6:{name:"entity.name.variable.parameter.apex"}},match:`(?x)
|
|
204
|
+
(?:(?:\\b(this)\\b)\\s+)?
|
|
205
|
+
(?<type_name>
|
|
206
|
+
(?:
|
|
207
|
+
(?:ref\\s+)?
|
|
208
|
+
(?:
|
|
209
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
210
|
+
(?<name_and_type_args>
|
|
211
|
+
\\g<identifier>\\s*
|
|
212
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
213
|
+
)
|
|
214
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
215
|
+
)
|
|
216
|
+
(?:\\s*\\?\\s*)?
|
|
217
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
218
|
+
)
|
|
219
|
+
)\\s+
|
|
220
|
+
(\\g<identifier>)`},"parenthesized-expression":{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},"parenthesized-parameter-list":{begin:"(\\()",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"(\\))",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#comment"},{include:"#parameter"},{include:"#punctuation-comma"},{include:"#variable-initializer"}]},"property-accessors":{begin:"\\{",beginCaptures:{0:{name:"punctuation.curlybrace.open.apex"}},end:"\\}",endCaptures:{0:{name:"punctuation.curlybrace.close.apex"}},patterns:[{match:"\\b(private|protected)\\b",name:"storage.modifier.apex"},{match:"\\b(get)\\b",name:"keyword.other.get.apex"},{match:"\\b(set)\\b",name:"keyword.other.set.apex"},{include:"#comment"},{include:"#expression-body"},{include:"#block"},{include:"#punctuation-semicolon"}]},"property-declaration":{begin:`(?x)
|
|
221
|
+
(?!.*\\b(?:class|interface|enum)\\b)\\s*
|
|
222
|
+
(?<return_type>
|
|
223
|
+
(?<type_name>
|
|
224
|
+
(?:
|
|
225
|
+
(?:ref\\s+)?
|
|
226
|
+
(?:
|
|
227
|
+
(?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)?
|
|
228
|
+
(?<name_and_type_args>
|
|
229
|
+
\\g<identifier>\\s*
|
|
230
|
+
(?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?
|
|
231
|
+
)
|
|
232
|
+
(?:\\s*\\.\\s*\\g<name_and_type_args>)*
|
|
233
|
+
)
|
|
234
|
+
(?:\\s*\\?\\s*)?
|
|
235
|
+
(?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)*
|
|
236
|
+
)
|
|
237
|
+
)\\s+
|
|
238
|
+
)
|
|
239
|
+
(?<interface_name>\\g<type_name>\\s*\\.\\s*)?
|
|
240
|
+
(?<property_name>\\g<identifier>)\\s*
|
|
241
|
+
(?=\\{|=>|$)`,beginCaptures:{1:{patterns:[{include:"#type"}]},6:{patterns:[{include:"#type"},{include:"#punctuation-accessor"}]},7:{name:"entity.name.variable.property.apex"}},end:"(?<=\\})|(?=;)",patterns:[{include:"#comment"},{include:"#property-accessors"},{include:"#expression-body"},{include:"#variable-initializer"},{include:"#class-or-trigger-members"}]},"punctuation-accessor":{match:"\\.",name:"punctuation.accessor.apex"},"punctuation-comma":{match:",",name:"punctuation.separator.comma.apex"},"punctuation-semicolon":{match:";",name:"punctuation.terminator.statement.apex"},"query-operators":{captures:{1:{name:"keyword.operator.query.apex"}},match:"\\b(ABOVE|AND|AT|FOR REFERENCE|FOR UPDATE|FOR VIEW|GROUP BY|HAVING|IN|LIKE|LIMIT|NOT IN|NOT|OFFSET|OR|TYPEOF|UPDATE TRACKING|UPDATE VIEWSTAT|WITH DATA CATEGORY|WITH)\\b\\s*"},"return-statement":{begin:"(?<!\\.)\\b(return)\\b",beginCaptures:{1:{name:"keyword.control.flow.return.apex"}},end:"(?=;)",patterns:[{include:"#expression"}]},"script-top-level":{patterns:[{include:"#method-declaration"},{include:"#statement"},{include:"#punctuation-semicolon"}]},"sharing-modifier":{match:"(?<!\\.)\\b(with sharing|without sharing|inherited sharing)\\b",name:"sharing.modifier.apex"},"soql-colon-method-statement":{begin:"(:?\\.)?([_[:alpha:]][_[:alnum:]]*)(?=\\()",beginCaptures:{1:{name:"punctuation.accessor.apex"},2:{name:"entity.name.function.apex"}},end:"(?<=\\))",patterns:[{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},{include:"#statement"}]},"soql-colon-vars":{begin:"(\\:)\\s*",beginCaptures:{0:{name:"keyword.operator.conditional.colon.apex"}},end:"(?![_[:alnum:]]|\\(|(\\?)?\\[|<)",patterns:[{include:"#trigger-context-declaration"},{captures:{1:{name:"variable.other.object.apex"},2:{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]}},match:"([_[:alpha:]][_[:alnum:]]*)(\\??\\.)"},{include:"#soql-colon-method-statement"},{match:"[_[:alpha:]][_[:alnum:]]*",name:"entity.name.variable.local.apex"}]},"soql-functions":{begin:"\\b(AVG|CALENDAR_MONTH|CALENDAR_QUARTER|CALENDAR_YEAR|convertCurrency|convertTimezone|COUNT|COUNT_DISTINCT|DAY_IN_MONTH|DAY_IN_WEEK|DAY_IN_YEAR|DAY_ONLY|toLabel|INCLUDES|EXCLUDES|FISCAL_MONTH|FISCAL_QUARTER|FISCAL_YEAR|FORMAT|GROUPING|GROUP BY CUBE|GROUP BY ROLLUP|HOUR_IN_DAY|MAX|MIN|SUM|WEEK_IN_MONTH|WEEK_IN_YEAR)\\s*(\\()",beginCaptures:{1:{name:"support.function.query.apex"},2:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#literal"},{include:"#punctuation-comma"},{include:"#soql-functions"},{match:"[_.[:alpha:]][_.[:alnum:]]*",name:"keyword.query.field.apex"}]},"soql-group-clauses":{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#soql-query-expression"},{include:"#soql-colon-vars"},{include:"#soql-group-clauses"},{include:"#punctuation-comma"},{include:"#operator-assignment"},{include:"#literal"},{include:"#query-operators"},{include:"#date-literals"},{include:"#date-literal-with-params"},{include:"#using-scope"},{match:"[_.[:alpha:]][_.[:alnum:]]*",name:"keyword.query.field.apex"}]},"soql-query-body":{patterns:[{include:"#trigger-context-declaration"},{include:"#soql-colon-vars"},{include:"#soql-functions"},{include:"#from-clause"},{include:"#where-clause"},{include:"#query-operators"},{include:"#date-literals"},{include:"#date-literal-with-params"},{include:"#using-scope"},{include:"#soql-group-clauses"},{include:"#orderby-clause"},{include:"#ordering-direction"},{include:"#ordering-nulls"}]},"soql-query-expression":{begin:"\\b(SELECT)\\b\\s*",beginCaptures:{1:{name:"keyword.operator.query.select.apex"}},end:"(?=;)|(?=\\])|(?=\\))",patterns:[{include:"#soql-query-body"},{include:"#comment"},{include:"#punctuation-comma"},{include:"#operator-assignment"},{include:"#parenthesized-expression"},{include:"#expression-operators"},{include:"#literal"},{captures:{1:{name:"keyword.query.field.apex"},2:{name:"punctuation.separator.comma.apex"}},match:"([_.[:alpha:]][_.[:alnum:]]*)\\s*(\\,)?"}]},statement:{patterns:[{include:"#comment"},{include:"#while-statement"},{include:"#do-statement"},{include:"#for-statement"},{include:"#switch-statement"},{include:"#when-else-statement"},{include:"#when-sobject-statement"},{include:"#when-statement"},{include:"#when-multiple-statement"},{include:"#if-statement"},{include:"#else-part"},{include:"#goto-statement"},{include:"#return-statement"},{include:"#break-or-continue-statement"},{include:"#throw-statement"},{include:"#try-statement"},{include:"#soql-query-expression"},{include:"#local-declaration"},{include:"#block"},{include:"#expression"},{include:"#punctuation-semicolon"}]},"storage-modifier":{match:"(?<!\\.)\\b(new|public|protected|private|abstract|virtual|override|global|static|final|transient)\\b",name:"storage.modifier.apex"},"string-character-escape":{match:"\\\\.",name:"constant.character.escape.apex"},"string-literal":{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.apex"}},end:"(\\')|((?:[^\\\\\\n])$)",endCaptures:{1:{name:"punctuation.definition.string.end.apex"},2:{name:"invalid.illegal.newline.apex"}},name:"string.quoted.single.apex",patterns:[{include:"#string-character-escape"}]},"support-arguments":{begin:"<",beginCaptures:{0:{name:"punctuation.definition.typeparameters.begin.apex"}},end:">",endCaptures:{0:{name:"punctuation.definition.typeparameters.end.apex"}},patterns:[{include:"#comment"},{include:"#support-type"},{include:"#punctuation-comma"}]},"support-class":{captures:{1:{name:"support.class.apex"}},match:"\\b(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)\\b"},"support-expression":{begin:`(?x)
|
|
242
|
+
(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)(?=\\.|\\s)`,beginCaptures:{1:{name:"support.class.apex"}},end:"(?<=\\)|$)|(?=\\})|(?=;)|(?=\\)|(?=\\]))|(?=\\,)",patterns:[{include:"#support-type"},{captures:{1:{name:"punctuation.accessor.apex"},2:{name:"support.function.apex"}},match:"(?:(\\.))([[:alpha:]]*)(?=\\()"},{captures:{1:{name:"punctuation.accessor.apex"},2:{name:"support.type.apex"}},match:"(?:(\\.))([[:alpha:]]+)"},{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},{include:"#comment"},{include:"#statement"}]},"support-functions":{captures:{1:{name:"support.function.apex"}},match:"\\b(delete|execute|finish|insert|start|undelete|update|upsert)\\b"},"support-name":{patterns:[{captures:{1:{name:"punctuation.accessor.apex"},2:{name:"support.function.apex"}},match:"(\\.)\\s*([[:alpha:]]*)(?=\\()"},{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},{captures:{1:{name:"punctuation.accessor.apex"},2:{name:"support.type.apex"}},match:"(\\.)\\s*([_[:alpha:]]*)"}]},"support-type":{name:"support.apex",patterns:[{include:"#comment"},{include:"#support-class"},{include:"#support-functions"},{include:"#support-name"}]},"switch-statement":{begin:`(?x)
|
|
243
|
+
(switch)\\b\\s+
|
|
244
|
+
(on)\\b\\s+
|
|
245
|
+
(?:([_.?\\'\\(\\)[:alnum:]]+)\\s*)?
|
|
246
|
+
(\\{)`,beginCaptures:{1:{name:"keyword.control.switch.apex"},2:{name:"keyword.control.switch.on.apex"},3:{patterns:[{include:"#statement"},{include:"#parenthesized-expression"}]},4:{name:"punctuation.curlybrace.open.apex"}},end:"(\\})",endCaptures:{0:{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#when-string"},{include:"#when-else-statement"},{include:"#when-sobject-statement"},{include:"#when-statement"},{include:"#when-multiple-statement"},{include:"#expression"},{include:"#punctuation-comma"},{include:"#punctuation-semicolon"}]},"this-expression":{captures:{1:{name:"keyword.other.this.apex"}},match:"\\b(?:(this))\\b"},"throw-expression":{captures:{1:{name:"keyword.control.flow.throw.apex"}},match:"(?<!\\.)\\b(throw)\\b"},"throw-statement":{begin:"(?<!\\.)\\b(throw)\\b",beginCaptures:{1:{name:"keyword.control.flow.throw.apex"}},end:"(?=;)",patterns:[{include:"#expression"}]},"trigger-context-declaration":{begin:"\\b(?:(Trigger))\\b(\\.)\\b",beginCaptures:{1:{name:"support.class.trigger.apex"},2:{name:"punctuation.accessor.apex"}},end:"(?=\\})|(?=;)|(?=\\)|(?=\\]))",patterns:[{match:"\\b(isExecuting|isInsert|isUpdate|isDelete|isBefore|isAfter|isUndelete|new|newMap|old|oldMap|size)\\b",name:"support.type.trigger.apex"},{captures:{1:{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},2:{name:"support.function.trigger.apex"}},match:"(?:(\\??\\.))([[:alpha:]]+)(?=\\()"},{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#trigger-type-statement"},{include:"#javadoc-comment"},{include:"#comment"},{include:"#expression"}]},{include:"#expression"}]},"trigger-declaration":{begin:"(?=\\btrigger\\b)",end:"(?<=\\})",patterns:[{begin:`(?x)
|
|
247
|
+
\\b(trigger)\\b\\s+
|
|
248
|
+
(@?[_[:alpha:]][_[:alnum:]]*)\\s*
|
|
249
|
+
\\b(on)\\b\\s+
|
|
250
|
+
([_[:alpha:]][_[:alnum:]]*)\\s*`,beginCaptures:{1:{name:"keyword.other.trigger.apex"},2:{name:"entity.name.type.trigger.apex"},3:{name:"keyword.operator.trigger.on.apex"},4:{name:"storage.type.apex"}},end:"(?=\\{)",patterns:[{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#trigger-type-statement"},{include:"#trigger-operator-statement"},{include:"#punctuation-comma"},{include:"#expression"}]},{include:"#javadoc-comment"},{include:"#comment"},{include:"#type-parameter-list"}]},{begin:"\\{",beginCaptures:{0:{name:"punctuation.curlybrace.open.apex"}},end:"\\}",endCaptures:{0:{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#statement"},{include:"#class-or-trigger-members"}]},{include:"#javadoc-comment"},{include:"#comment"}]},"trigger-operator-statement":{match:"\\b(insert|update|delete|merge|upsert|undelete)\\b",name:"keyword.operator.trigger.apex"},"trigger-type-statement":{captures:{1:{name:"keyword.control.trigger.before.apex"},2:{name:"keyword.control.trigger.after.apex"}},match:"\\b(?:(before)|(after))\\b"},"try-block":{begin:"(?<!\\.)\\b(try)\\b",beginCaptures:{1:{name:"keyword.control.try.apex"}},end:"(?<=\\})",patterns:[{include:"#comment"},{include:"#block"}]},"try-statement":{patterns:[{include:"#try-block"},{include:"#catch-clause"},{include:"#finally-clause"}]},type:{name:"meta.type.apex",patterns:[{include:"#comment"},{include:"#type-builtin"},{include:"#type-name"},{include:"#type-arguments"},{include:"#type-array-suffix"},{include:"#type-nullable-suffix"}]},"type-arguments":{begin:"<",beginCaptures:{0:{name:"punctuation.definition.typeparameters.begin.apex"}},end:">",endCaptures:{0:{name:"punctuation.definition.typeparameters.end.apex"}},patterns:[{include:"#comment"},{include:"#support-type"},{include:"#type"},{include:"#punctuation-comma"}]},"type-array-suffix":{begin:"\\[",beginCaptures:{0:{name:"punctuation.squarebracket.open.apex"}},end:"\\]",endCaptures:{0:{name:"punctuation.squarebracket.close.apex"}},patterns:[{include:"#punctuation-comma"}]},"type-builtin":{captures:{1:{name:"keyword.type.apex"}},match:"\\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|ID|Integer|Long|Object|String|Time|void)\\b"},"type-declarations":{patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#annotation-declaration"},{include:"#storage-modifier"},{include:"#sharing-modifier"},{include:"#class-declaration"},{include:"#enum-declaration"},{include:"#interface-declaration"},{include:"#trigger-declaration"},{include:"#punctuation-semicolon"}]},"type-name":{patterns:[{captures:{1:{name:"storage.type.apex"},2:{name:"punctuation.accessor.apex"}},match:"(@?[_[:alpha:]][_[:alnum:]]*)\\s*(\\.)"},{captures:{1:{name:"punctuation.accessor.apex"},2:{name:"storage.type.apex"}},match:"(\\.)\\s*(@?[_[:alpha:]][_[:alnum:]]*)"},{match:"@?[_[:alpha:]][_[:alnum:]]*",name:"storage.type.apex"}]},"type-nullable-suffix":{captures:{0:{name:"punctuation.separator.question-mark.apex"}},match:"\\?"},"type-parameter-list":{begin:"\\<",beginCaptures:{0:{name:"punctuation.definition.typeparameters.begin.apex"}},end:"\\>",endCaptures:{0:{name:"punctuation.definition.typeparameters.end.apex"}},patterns:[{captures:{1:{name:"entity.name.type.type-parameter.apex"}},match:"(@?[_[:alpha:]][_[:alnum:]]*)\\b"},{include:"#comment"},{include:"#punctuation-comma"}]},"using-scope":{captures:{1:{name:"keyword.operator.query.using.apex"}},match:"((USING SCOPE)\\b\\s*(Delegated|Everything|Mine|My_Territory|My_Team_Territory|Team))\\b\\s*"},"variable-initializer":{begin:"(?<!=|!)(=)(?!=|>)",beginCaptures:{1:{name:"keyword.operator.assignment.apex"}},end:"(?=[,\\)\\];}])",patterns:[{include:"#expression"}]},"when-else-statement":{begin:"(when)\\b\\s+(else)\\b\\s*",beginCaptures:{1:{name:"keyword.control.switch.when.apex"},2:{name:"keyword.control.switch.else.apex"}},end:"(?<=\\})",patterns:[{include:"#block"},{include:"#expression"}]},"when-multiple-statement":{begin:"(when)\\b\\s*",beginCaptures:{1:{name:"keyword.control.switch.when.apex"}},end:"(?<=\\})",patterns:[{include:"#block"},{include:"#expression"}]},"when-sobject-statement":{begin:"(when)\\b\\s+([_[:alnum:]]+)\\s+([_[:alnum:]]+)\\s*",beginCaptures:{1:{name:"keyword.control.switch.when.apex"},2:{name:"storage.type.apex"},3:{name:"entity.name.variable.local.apex"}},end:"(?<=\\})",patterns:[{include:"#block"},{include:"#expression"}]},"when-statement":{begin:"(when)\\b\\s+([\\'_\\-[:alnum:]]+)\\s*",beginCaptures:{1:{name:"keyword.control.switch.when.apex"},2:{patterns:[{include:"#expression"}]}},end:"(?<=\\})",patterns:[{include:"#block"},{include:"#expression"}]},"when-string":{begin:"(when)(\\b\\s*)((\\')[_.\\,\\'\\s*[:alnum:]]+)",beginCaptures:{1:{name:"keyword.control.switch.when.apex"},2:{name:"punctuation.whitespace.apex"},3:{patterns:[{include:"#when-string-statement"},{include:"#punctuation-comma"}]}},end:"(?<=\\})",patterns:[{include:"#block"},{include:"#expression"}]},"when-string-statement":{patterns:[{begin:"\\'",beginCaptures:{0:{name:"punctuation.definition.string.begin.apex"}},end:"\\'",endCaptures:{0:{name:"punctuation.definition.string.end.apex"}},name:"string.quoted.single.apex"}]},"where-clause":{captures:{1:{name:"keyword.operator.query.where.apex"}},match:"\\b(WHERE)\\b\\s*"},"while-statement":{begin:"(?<!\\.)\\b(while)\\b\\s*(?=\\()",beginCaptures:{1:{name:"keyword.control.loop.while.apex"}},end:"(?<=\\})|(?=;)",patterns:[{begin:"\\(",beginCaptures:{0:{name:"punctuation.parenthesis.open.apex"}},end:"\\)",endCaptures:{0:{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},{include:"#statement"}]},"xml-attribute":{patterns:[{captures:{1:{name:"entity.other.attribute-name.apex"},2:{name:"entity.other.attribute-name.namespace.apex"},3:{name:"punctuation.separator.colon.apex"},4:{name:"entity.other.attribute-name.localname.apex"},5:{name:"punctuation.separator.equals.apex"}},match:`(?x)
|
|
251
|
+
(?:^|\\s+)
|
|
252
|
+
(
|
|
253
|
+
(?:
|
|
254
|
+
([-_[:alnum:]]+)
|
|
255
|
+
(:)
|
|
256
|
+
)?
|
|
257
|
+
([-_[:alnum:]]+)
|
|
258
|
+
)
|
|
259
|
+
(=)`},{include:"#xml-string"}]},"xml-cdata":{begin:"<!\\[CDATA\\[",beginCaptures:{0:{name:"punctuation.definition.string.begin.apex"}},end:"\\]\\]>",endCaptures:{0:{name:"punctuation.definition.string.end.apex"}},name:"string.unquoted.cdata.apex"},"xml-character-entity":{patterns:[{captures:{1:{name:"punctuation.definition.constant.apex"},3:{name:"punctuation.definition.constant.apex"}},match:`(?x)
|
|
260
|
+
(&)
|
|
261
|
+
(
|
|
262
|
+
(?:[[:alpha:]:_][[:alnum:]:_.-]*)|
|
|
263
|
+
(?:\\#[[:digit:]]+)|
|
|
264
|
+
(?:\\#x[[:xdigit:]]+)
|
|
265
|
+
)
|
|
266
|
+
(;)`,name:"constant.character.entity.apex"},{match:"&",name:"invalid.illegal.bad-ampersand.apex"}]},"xml-comment":{begin:"<!--",beginCaptures:{0:{name:"punctuation.definition.comment.apex"}},end:"-->",endCaptures:{0:{name:"punctuation.definition.comment.apex"}},name:"comment.block.apex"},"xml-doc-comment":{patterns:[{include:"#xml-comment"},{include:"#xml-character-entity"},{include:"#xml-cdata"},{include:"#xml-tag"}]},"xml-string":{patterns:[{begin:"\\'",beginCaptures:{0:{name:"punctuation.definition.string.begin.apex"}},end:"\\'",endCaptures:{0:{name:"punctuation.definition.string.end.apex"}},name:"string.quoted.single.apex",patterns:[{include:"#xml-character-entity"}]},{begin:'\\"',beginCaptures:{0:{name:"punctuation.definition.stringdoublequote.begin.apex"}},end:'\\"',endCaptures:{0:{name:"punctuation.definition.stringdoublequote.end.apex"}},name:"string.quoted.double.apex",patterns:[{include:"#xml-character-entity"}]}]},"xml-tag":{begin:`(?x)
|
|
267
|
+
(</?)
|
|
268
|
+
(
|
|
269
|
+
(?:
|
|
270
|
+
([-_[:alnum:]]+)
|
|
271
|
+
(:)
|
|
272
|
+
)?
|
|
273
|
+
([-_[:alnum:]]+)
|
|
274
|
+
)`,beginCaptures:{1:{name:"punctuation.definition.tag.apex"},2:{name:"entity.name.tag.apex"},3:{name:"entity.name.tag.namespace.apex"},4:{name:"punctuation.separator.colon.apex"},5:{name:"entity.name.tag.localname.apex"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.apex"}},name:"meta.tag.apex",patterns:[{include:"#xml-attribute"}]}},scopeName:"source.apex"});var n=[e];export{n as default};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import a from"./html-NmvpQUfQ.js";import e from"./xml-sp2Egr0Z.js";import n from"./css-CbYhyuC0.js";import t from"./javascript-Dch3xQiY.js";import u from"./json-CupVZNk8.js";import"./java-ClXEvkw9.js";const o=Object.freeze({displayName:"APL",fileTypes:["apl","apla","aplc","aplf","apli","apln","aplo","dyalog","dyapp","mipage"],firstLineMatch:`(?x)
|
|
2
|
+
# APL symbols
|
|
3
|
+
[\u2336-\u237A]
|
|
4
|
+
|
|
|
5
|
+
|
|
6
|
+
# Hashbang
|
|
7
|
+
^\\#!.*(?:\\s|\\/|(?<=!)\\b)
|
|
8
|
+
(?:gnu[-._]?apl|aplx?|dyalog)
|
|
9
|
+
(?:$|\\s)
|
|
10
|
+
|
|
|
11
|
+
|
|
12
|
+
# Modeline
|
|
13
|
+
(?i:
|
|
14
|
+
# Emacs
|
|
15
|
+
-\\*-(?:\\s*(?=[^:;\\s]+\\s*-\\*-)|(?:.*?[;\\s]|(?<=-\\*-))mode\\s*:\\s*)
|
|
16
|
+
apl
|
|
17
|
+
(?=[\\s;]|(?<![-*])-\\*-).*?-\\*-
|
|
18
|
+
|
|
19
|
+
|
|
|
20
|
+
|
|
21
|
+
# Vim
|
|
22
|
+
(?:(?:\\s|^)vi(?:m[<=>]?\\d+|m)?|\\sex)(?=:(?=\\s*set?\\s[^\\n:]+:)|:(?!\\s* set?\\s))(?:(?:\\s|\\s*:\\s*)\\w*(?:\\s*=(?:[^\\n\\\\\\s]|\\\\.)*)?)*[\\s:](?:filetype|ft|syntax)\\s*=
|
|
23
|
+
apl
|
|
24
|
+
(?=\\s|:|$)
|
|
25
|
+
)`,foldingStartMarker:"{",foldingStopMarker:"}",name:"apl",patterns:[{match:"\\A#!.*$",name:"comment.line.shebang.apl"},{include:"#heredocs"},{include:"#main"},{begin:"^\\s*((\\))OFF|(\\])NEXTFILE)\\b(.*)$",beginCaptures:{1:{name:"entity.name.command.eof.apl"},2:{name:"punctuation.definition.command.apl"},3:{name:"punctuation.definition.command.apl"},4:{patterns:[{include:"#comment"}]}},contentName:"text.embedded.apl",end:"(?=N)A"},{begin:"\\(",beginCaptures:{0:{name:"punctuation.round.bracket.begin.apl"}},end:"\\)",endCaptures:{0:{name:"punctuation.round.bracket.end.apl"}},name:"meta.round.bracketed.group.apl",patterns:[{include:"#main"}]},{begin:"\\[",beginCaptures:{0:{name:"punctuation.square.bracket.begin.apl"}},end:"\\]",endCaptures:{0:{name:"punctuation.square.bracket.end.apl"}},name:"meta.square.bracketed.group.apl",patterns:[{include:"#main"}]},{begin:"^\\s*((\\))\\S+)",beginCaptures:{1:{name:"entity.name.command.apl"},2:{name:"punctuation.definition.command.apl"}},end:"$",name:"meta.system.command.apl",patterns:[{include:"#command-arguments"},{include:"#command-switches"},{include:"#main"}]},{begin:"^\\s*((\\])\\S+)",beginCaptures:{1:{name:"entity.name.command.apl"},2:{name:"punctuation.definition.command.apl"}},end:"$",name:"meta.user.command.apl",patterns:[{include:"#command-arguments"},{include:"#command-switches"},{include:"#main"}]}],repository:{class:{patterns:[{begin:`(?x)
|
|
26
|
+
(?<=\\s|^)
|
|
27
|
+
((:)Class)
|
|
28
|
+
\\s+
|
|
29
|
+
(
|
|
30
|
+
'[^']*'?
|
|
31
|
+
|
|
|
32
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]
|
|
33
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*
|
|
34
|
+
)
|
|
35
|
+
\\s*
|
|
36
|
+
(
|
|
37
|
+
(:)
|
|
38
|
+
\\s*
|
|
39
|
+
(?:
|
|
40
|
+
(
|
|
41
|
+
'[^']*'?
|
|
42
|
+
|
|
|
43
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]
|
|
44
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*
|
|
45
|
+
)
|
|
46
|
+
\\s*
|
|
47
|
+
)?
|
|
48
|
+
)?
|
|
49
|
+
(.*?)$`,beginCaptures:{0:{name:"meta.class.apl"},1:{name:"keyword.control.class.apl"},2:{name:"punctuation.definition.class.apl"},3:{name:"entity.name.type.class.apl",patterns:[{include:"#strings"}]},4:{name:"entity.other.inherited-class.apl"},5:{name:"punctuation.separator.inheritance.apl"},6:{patterns:[{include:"#strings"}]},7:{name:"entity.other.class.interfaces.apl",patterns:[{include:"#csv"}]}},end:"(?<=\\s|^)((:)EndClass)(?=\\b)",endCaptures:{1:{name:"keyword.control.class.apl"},2:{name:"punctuation.definition.class.apl"}},patterns:[{begin:"(?<=\\s|^)(:)Field(?=\\s)",beginCaptures:{0:{name:"keyword.control.field.apl"},1:{name:"punctuation.definition.field.apl"}},end:"\\s*(\u2190.*)?(?:$|(?=\u235D))",endCaptures:{0:{name:"entity.other.initial-value.apl"},1:{patterns:[{include:"#main"}]}},name:"meta.field.apl",patterns:[{match:"(?<=\\s|^)Public(?=\\s|$)",name:"storage.modifier.access.public.apl"},{match:"(?<=\\s|^)Private(?=\\s|$)",name:"storage.modifier.access.private.apl"},{match:"(?<=\\s|^)Shared(?=\\s|$)",name:"storage.modifier.shared.apl"},{match:"(?<=\\s|^)Instance(?=\\s|$)",name:"storage.modifier.instance.apl"},{match:"(?<=\\s|^)ReadOnly(?=\\s|$)",name:"storage.modifier.readonly.apl"},{captures:{1:{patterns:[{include:"#strings"}]}},match:`(?x)
|
|
50
|
+
(
|
|
51
|
+
'[^']*'?
|
|
52
|
+
|
|
|
53
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]
|
|
54
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*
|
|
55
|
+
)`,name:"entity.name.type.apl"}]},{include:"$self"}]}]},"command-arguments":{patterns:[{begin:"\\b(?=\\S)",end:"\\b(?=\\s)",name:"variable.parameter.argument.apl",patterns:[{include:"#main"}]}]},"command-switches":{patterns:[{begin:`(?x)
|
|
56
|
+
(?<=\\s)(-)
|
|
57
|
+
(
|
|
58
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]
|
|
59
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*
|
|
60
|
+
)
|
|
61
|
+
(=)`,beginCaptures:{1:{name:"punctuation.delimiter.switch.apl"},2:{name:"entity.name.switch.apl"},3:{name:"punctuation.assignment.switch.apl"}},end:"\\b(?=\\s)",name:"variable.parameter.switch.apl",patterns:[{include:"#main"}]},{captures:{1:{name:"punctuation.delimiter.switch.apl"},2:{name:"entity.name.switch.apl"}},match:`(?x)
|
|
62
|
+
(?<=\\s)(-)
|
|
63
|
+
(
|
|
64
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]
|
|
65
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*
|
|
66
|
+
)
|
|
67
|
+
(?!=)`,name:"variable.parameter.switch.apl"}]},comment:{patterns:[{begin:"\u235D",captures:{0:{name:"punctuation.definition.comment.apl"}},end:"$",name:"comment.line.apl"}]},csv:{patterns:[{match:",",name:"punctuation.separator.apl"},{include:"$self"}]},definition:{patterns:[{begin:"(?x) ^\\s*? (?# 1: keyword.operator.nabla.apl) (\u2207) (?: \\s* (?: (?# 2: entity.function.return-value.apl) ( [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* ) | \\s* (?# 3: entity.function.return-value.shy.apl) ( (\\{) (?# 4: punctuation.definition.return-value.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\}) (?# 5: punctuation.definition.return-value.end.apl) | (\\() (?# 6: punctuation.definition.return-value.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\)) (?# 7: punctuation.definition.return-value.end.apl) | (\\(\\s*\\{) (?# 8: punctuation.definition.return-value.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\}\\s*\\)) (?# 9: punctuation.definition.return-value.end.apl) | (\\{\\s*\\() (?# 10: punctuation.definition.return-value.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\)\\s*\\}) (?# 11: punctuation.definition.return-value.end.apl) ) \\s* ) \\s* (?# 12: keyword.operator.assignment.apl) (\u2190) )? \\s* (?: (?# MONADIC) (?: (?# 13: entity.function.name.apl) ( [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* ) \\s* (?# 14: entity.function.axis.apl) ( (?# 15: punctuation.definition.axis.begin.apl) (\\[) \\s* (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* (?# 16: invalid.illegal.extra-characters.apl) (.*?) | (?# 17: invalid.illegal.apl) ([^\\]]*) ) \\s* (?# 18: punctuation.definition.axis.end.apl) (\\]) )? \\s*? (?# 19: entity.function.arguments.right.apl) ( (?<=\\s|\\]) [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* | (\\() (?# 20: punctuation.definition.arguments.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\)) (?# 21: punctuation.definition.arguments.end.apl) ) \\s* (?=;|$) ) | (?# DYADIC/AMBIVALENT) (?#==================) (?: (?# 22: entity.function.arguments.left.apl) ( [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s+ ) | (?# 23: entity.function.arguments.left.optional.apl) ( (\\{) (?# 24: punctuation.definition.arguments.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\}) (?# 25: punctuation.definition.arguments.end.apl) | (\\(\\s*\\{) (?# 26: punctuation.definition.arguments.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\}\\s*\\)) (?# 27: punctuation.definition.arguments.end.apl) | (\\{\\s*\\() (?# 28: punctuation.definition.arguments.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\)\\s*\\}) (?# 29: punctuation.definition.arguments.end.apl) ) )? \\s* (?: (?# 30: entity.function.name.apl) ( [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* ) \\s* (?# 31: entity.function.axis.apl) ( (?# 32: punctuation.definition.axis.begin.apl) (\\[) \\s* (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* (?# 33: invalid.illegal.extra-characters.apl) (.*?) | (?# 34: invalid.illegal.apl) ([^\\]]*) ) \\s* (?# 35: punctuation.definition.axis.end.apl) (\\]) )? | (?# 36: entity.function.operands.apl) ( (?# 37: punctuation.definition.operands.begin.apl) (\\() (?# 38: entity.function.operands.left.apl) ( \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* )? \\s* (?# 39: entity.function.name.apl) ( [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* ) \\s*? (?# 40: entity.function.axis.apl) ( (?# 41: punctuation.definition.axis.begin.apl) (\\[) \\s* (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* (?# 42: invalid.illegal.extra-characters.apl) (.*?) | (?# 43: invalid.illegal.apl) ([^\\]]*) ) \\s* (?# 44: punctuation.definition.axis.end.apl) (\\]) )? \\s* (?# 45: entity.function.operands.right.apl) ( [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )? (?# 46: punctuation.definition.operands.end.apl) (\\)) ) ) \\s* (?# 47: entity.function.arguments.right.apl) ( (?<=\\s|\\]) [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* | \\s* (\\() (?# 48: punctuation.definition.arguments.begin.apl) (?: \\s* [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )* (\\)) (?# 49: punctuation.definition.arguments.end.apl) )? (?#==================) ) \\s* (?# 50: invalid.illegal.arguments.right.apl) ([^;]+)? (?# 51: entity.function.local-variables.apl) ( (?# 52: Include \u201C;\u201D) ( (?> \\s* ; (?: \\s* [\u2395A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF] [A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]* \\s* )+ )+ ) | (?# 53: invalid.illegal.local-variables.apl) ([^\u235D]+) )? \\s* (?# 54: comment.line.apl) (\u235D.*)? $",beginCaptures:{0:{name:"entity.function.definition.apl"},1:{name:"keyword.operator.nabla.apl"},2:{name:"entity.function.return-value.apl"},3:{name:"entity.function.return-value.shy.apl"},4:{name:"punctuation.definition.return-value.begin.apl"},5:{name:"punctuation.definition.return-value.end.apl"},6:{name:"punctuation.definition.return-value.begin.apl"},7:{name:"punctuation.definition.return-value.end.apl"},8:{name:"punctuation.definition.return-value.begin.apl"},9:{name:"punctuation.definition.return-value.end.apl"},10:{name:"punctuation.definition.return-value.begin.apl"},11:{name:"punctuation.definition.return-value.end.apl"},12:{name:"keyword.operator.assignment.apl"},13:{name:"entity.function.name.apl",patterns:[{include:"#embolden"}]},14:{name:"entity.function.axis.apl"},15:{name:"punctuation.definition.axis.begin.apl"},16:{name:"invalid.illegal.extra-characters.apl"},17:{name:"invalid.illegal.apl"},18:{name:"punctuation.definition.axis.end.apl"},19:{name:"entity.function.arguments.right.apl"},20:{name:"punctuation.definition.arguments.begin.apl"},21:{name:"punctuation.definition.arguments.end.apl"},22:{name:"entity.function.arguments.left.apl"},23:{name:"entity.function.arguments.left.optional.apl"},24:{name:"punctuation.definition.arguments.begin.apl"},25:{name:"punctuation.definition.arguments.end.apl"},26:{name:"punctuation.definition.arguments.begin.apl"},27:{name:"punctuation.definition.arguments.end.apl"},28:{name:"punctuation.definition.arguments.begin.apl"},29:{name:"punctuation.definition.arguments.end.apl"},30:{name:"entity.function.name.apl",patterns:[{include:"#embolden"}]},31:{name:"entity.function.axis.apl"},32:{name:"punctuation.definition.axis.begin.apl"},33:{name:"invalid.illegal.extra-characters.apl"},34:{name:"invalid.illegal.apl"},35:{name:"punctuation.definition.axis.end.apl"},36:{name:"entity.function.operands.apl"},37:{name:"punctuation.definition.operands.begin.apl"},38:{name:"entity.function.operands.left.apl"},39:{name:"entity.function.name.apl",patterns:[{include:"#embolden"}]},40:{name:"entity.function.axis.apl"},41:{name:"punctuation.definition.axis.begin.apl"},42:{name:"invalid.illegal.extra-characters.apl"},43:{name:"invalid.illegal.apl"},44:{name:"punctuation.definition.axis.end.apl"},45:{name:"entity.function.operands.right.apl"},46:{name:"punctuation.definition.operands.end.apl"},47:{name:"entity.function.arguments.right.apl"},48:{name:"punctuation.definition.arguments.begin.apl"},49:{name:"punctuation.definition.arguments.end.apl"},50:{name:"invalid.illegal.arguments.right.apl"},51:{name:"entity.function.local-variables.apl"},52:{patterns:[{match:";",name:"punctuation.separator.apl"}]},53:{name:"invalid.illegal.local-variables.apl"},54:{name:"comment.line.apl"}},end:"^\\s*?(?:(\u2207)|(\u236B))\\s*?(\u235D.*?)?$",endCaptures:{1:{name:"keyword.operator.nabla.apl"},2:{name:"keyword.operator.lock.apl"},3:{name:"comment.line.apl"}},name:"meta.function.apl",patterns:[{captures:{0:{name:"entity.function.local-variables.apl"},1:{patterns:[{match:";",name:"punctuation.separator.apl"}]}},match:`(?x)
|
|
68
|
+
^\\s*
|
|
69
|
+
(
|
|
70
|
+
(?>
|
|
71
|
+
;
|
|
72
|
+
(?:
|
|
73
|
+
\\s*
|
|
74
|
+
[\u2395A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]
|
|
75
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*
|
|
76
|
+
\\s*
|
|
77
|
+
)+
|
|
78
|
+
)+
|
|
79
|
+
)`,name:"entity.function.definition.apl"},{include:"$self"}]}]},"embedded-apl":{patterns:[{begin:"(?i)(<(\\?|%)(?:apl(?=\\s+)|=))",beginCaptures:{1:{name:"punctuation.section.embedded.begin.apl"}},end:"(?<=\\s)(\\2>)",endCaptures:{1:{name:"punctuation.section.embedded.end.apl"}},name:"meta.embedded.block.apl",patterns:[{include:"#main"}]}]},embolden:{patterns:[{match:".+",name:"markup.bold.identifier.apl"}]},heredocs:{patterns:[{begin:`^.*?\u2395INP\\s+('|")((?i).*?HTML?.*?|END-OF-\u2395INP)\\1.*$`,beginCaptures:{0:{patterns:[{include:"#main"}]}},contentName:"text.embedded.html.basic",end:"^.*?\\2.*?$",endCaptures:{0:{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"text.html.basic"},{include:"#embedded-apl"}]},{begin:`^.*?\u2395INP\\s+('|")((?i).*?(?:XML|XSLT|SVG|RSS).*?)\\1.*$`,beginCaptures:{0:{patterns:[{include:"#main"}]}},contentName:"text.embedded.xml",end:"^.*?\\2.*?$",endCaptures:{0:{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"text.xml"},{include:"#embedded-apl"}]},{begin:`^.*?\u2395INP\\s+('|")((?i).*?(?:CSS|stylesheet).*?)\\1.*$`,beginCaptures:{0:{patterns:[{include:"#main"}]}},contentName:"source.embedded.css",end:"^.*?\\2.*?$",endCaptures:{0:{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"source.css"},{include:"#embedded-apl"}]},{begin:`^.*?\u2395INP\\s+('|")((?i).*?(?:JS(?!ON)|(?:ECMA|J|Java).?Script).*?)\\1.*$`,beginCaptures:{0:{patterns:[{include:"#main"}]}},contentName:"source.embedded.js",end:"^.*?\\2.*?$",endCaptures:{0:{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"source.js"},{include:"#embedded-apl"}]},{begin:`^.*?\u2395INP\\s+('|")((?i).*?(?:JSON).*?)\\1.*$`,beginCaptures:{0:{patterns:[{include:"#main"}]}},contentName:"source.embedded.json",end:"^.*?\\2.*?$",endCaptures:{0:{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"source.json"},{include:"#embedded-apl"}]},{begin:`^.*?\u2395INP\\s+('|")(?i)((?:Raw|Plain)?\\s*Te?xt)\\1.*$`,beginCaptures:{0:{patterns:[{include:"#main"}]}},contentName:"text.embedded.plain",end:"^.*?\\2.*?$",endCaptures:{0:{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"#embedded-apl"}]},{begin:`^.*?\u2395INP\\s+('|")(.*?)\\1.*$`,beginCaptures:{0:{patterns:[{include:"#main"}]}},end:"^.*?\\2.*?$",endCaptures:{0:{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"$self"}]}]},label:{patterns:[{captures:{1:{name:"entity.label.name.apl"},2:{name:"punctuation.definition.label.end.apl"}},match:`(?x)
|
|
80
|
+
^\\s*
|
|
81
|
+
(
|
|
82
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]
|
|
83
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*
|
|
84
|
+
)
|
|
85
|
+
(:)`,name:"meta.label.apl"}]},lambda:{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.lambda.begin.apl"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.lambda.end.apl"}},name:"meta.lambda.function.apl",patterns:[{include:"#main"},{include:"#lambda-variables"}]},"lambda-variables":{patterns:[{match:"\u237A\u237A",name:"constant.language.lambda.operands.left.apl"},{match:"\u2375\u2375",name:"constant.language.lambda.operands.right.apl"},{match:"[\u237A\u2376]",name:"constant.language.lambda.arguments.left.apl"},{match:"[\u2375\u2379]",name:"constant.language.lambda.arguments.right.apl"},{match:"\u03C7",name:"constant.language.lambda.arguments.axis.apl"},{match:"\u2207\u2207",name:"constant.language.lambda.operands.self.operator.apl"},{match:"\u2207",name:"constant.language.lambda.operands.self.function.apl"},{match:"\u03BB",name:"constant.language.lambda.symbol.apl"}]},main:{patterns:[{include:"#class"},{include:"#definition"},{include:"#comment"},{include:"#label"},{include:"#sck"},{include:"#strings"},{include:"#number"},{include:"#lambda"},{include:"#sysvars"},{include:"#symbols"},{include:"#name"}]},name:{patterns:[{match:`(?x)
|
|
86
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF]
|
|
87
|
+
[A-Z_a-z\xC0-\xD6\xD8-\xDD\xDF\xE0-\xF6\xF8-\xFC\xFE\u2206\u2359\u24B6-\u24CF\xAF0-9]*`,name:"variable.other.readwrite.apl"}]},number:{patterns:[{match:"\xAF?[0-9][\xAF0-9A-Za-z]*(?:\\.[\xAF0-9Ee][\xAF0-9A-Za-z]*)*|\xAF?\\.[0-9Ee][\xAF0-9A-Za-z]*",name:"constant.numeric.apl"}]},sck:{patterns:[{captures:{1:{name:"punctuation.definition.sck.begin.apl"}},match:"(?<=\\s|^)(:)[A-Za-z]+",name:"keyword.control.sck.apl"}]},strings:{patterns:[{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.apl"}},end:"'|$",endCaptures:{0:{name:"punctuation.definition.string.end.apl"}},name:"string.quoted.single.apl",patterns:[{match:"[^']*[^'\\n\\r\\\\]$",name:"invalid.illegal.string.apl"}]},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.apl"}},end:'"|$',endCaptures:{0:{name:"punctuation.definition.string.end.apl"}},name:"string.quoted.double.apl",patterns:[{match:'[^"]*[^"\\n\\r\\\\]$',name:"invalid.illegal.string.apl"}]}]},symbols:{patterns:[{match:"(?<=\\s)\u2190(?=\\s|$)",name:"keyword.spaced.operator.assignment.apl"},{match:"(?<=\\s)\u2192(?=\\s|$)",name:"keyword.spaced.control.goto.apl"},{match:"(?<=\\s)\u2261(?=\\s|$)",name:"keyword.spaced.operator.identical.apl"},{match:"(?<=\\s)\u2262(?=\\s|$)",name:"keyword.spaced.operator.not-identical.apl"},{match:"\\+",name:"keyword.operator.plus.apl"},{match:"[-\u2212]",name:"keyword.operator.minus.apl"},{match:"\xD7",name:"keyword.operator.times.apl"},{match:"\xF7",name:"keyword.operator.divide.apl"},{match:"\u230A",name:"keyword.operator.floor.apl"},{match:"\u2308",name:"keyword.operator.ceiling.apl"},{match:"[\u2223|]",name:"keyword.operator.absolute.apl"},{match:"[\u22C6*]",name:"keyword.operator.exponent.apl"},{match:"\u235F",name:"keyword.operator.logarithm.apl"},{match:"\u25CB",name:"keyword.operator.circle.apl"},{match:"!",name:"keyword.operator.factorial.apl"},{match:"\u2227",name:"keyword.operator.and.apl"},{match:"\u2228",name:"keyword.operator.or.apl"},{match:"\u2372",name:"keyword.operator.nand.apl"},{match:"\u2371",name:"keyword.operator.nor.apl"},{match:"<",name:"keyword.operator.less.apl"},{match:"\u2264",name:"keyword.operator.less-or-equal.apl"},{match:"=",name:"keyword.operator.equal.apl"},{match:"\u2265",name:"keyword.operator.greater-or-equal.apl"},{match:">",name:"keyword.operator.greater.apl"},{match:"\u2260",name:"keyword.operator.not-equal.apl"},{match:"[\u223C~]",name:"keyword.operator.tilde.apl"},{match:"\\?",name:"keyword.operator.random.apl"},{match:"[\u220A\u2208]",name:"keyword.operator.member-of.apl"},{match:"\u2377",name:"keyword.operator.find.apl"},{match:",",name:"keyword.operator.comma.apl"},{match:"\u236A",name:"keyword.operator.comma-bar.apl"},{match:"\u2337",name:"keyword.operator.squad.apl"},{match:"\u2373",name:"keyword.operator.iota.apl"},{match:"\u2374",name:"keyword.operator.rho.apl"},{match:"\u2191",name:"keyword.operator.take.apl"},{match:"\u2193",name:"keyword.operator.drop.apl"},{match:"\u22A3",name:"keyword.operator.left.apl"},{match:"\u22A2",name:"keyword.operator.right.apl"},{match:"\u22A4",name:"keyword.operator.encode.apl"},{match:"\u22A5",name:"keyword.operator.decode.apl"},{match:"\\/",name:"keyword.operator.slash.apl"},{match:"\u233F",name:"keyword.operator.slash-bar.apl"},{match:"\\x5C",name:"keyword.operator.backslash.apl"},{match:"\u2340",name:"keyword.operator.backslash-bar.apl"},{match:"\u233D",name:"keyword.operator.rotate-last.apl"},{match:"\u2296",name:"keyword.operator.rotate-first.apl"},{match:"\u2349",name:"keyword.operator.transpose.apl"},{match:"\u234B",name:"keyword.operator.grade-up.apl"},{match:"\u2352",name:"keyword.operator.grade-down.apl"},{match:"\u2339",name:"keyword.operator.quad-divide.apl"},{match:"\u2261",name:"keyword.operator.identical.apl"},{match:"\u2262",name:"keyword.operator.not-identical.apl"},{match:"\u2282",name:"keyword.operator.enclose.apl"},{match:"\u2283",name:"keyword.operator.pick.apl"},{match:"\u2229",name:"keyword.operator.intersection.apl"},{match:"\u222A",name:"keyword.operator.union.apl"},{match:"\u234E",name:"keyword.operator.hydrant.apl"},{match:"\u2355",name:"keyword.operator.thorn.apl"},{match:"\u2286",name:"keyword.operator.underbar-shoe-left.apl"},{match:"\u2378",name:"keyword.operator.underbar-iota.apl"},{match:"\xA8",name:"keyword.operator.each.apl"},{match:"\u2364",name:"keyword.operator.rank.apl"},{match:"\u2338",name:"keyword.operator.quad-equal.apl"},{match:"\u2368",name:"keyword.operator.commute.apl"},{match:"\u2363",name:"keyword.operator.power.apl"},{match:"\\.",name:"keyword.operator.dot.apl"},{match:"\u2218",name:"keyword.operator.jot.apl"},{match:"\u2360",name:"keyword.operator.quad-colon.apl"},{match:"&",name:"keyword.operator.ampersand.apl"},{match:"\u2336",name:"keyword.operator.i-beam.apl"},{match:"\u233A",name:"keyword.operator.quad-diamond.apl"},{match:"@",name:"keyword.operator.at.apl"},{match:"\u25CA",name:"keyword.operator.lozenge.apl"},{match:";",name:"keyword.operator.semicolon.apl"},{match:"\xAF",name:"keyword.operator.high-minus.apl"},{match:"\u2190",name:"keyword.operator.assignment.apl"},{match:"\u2192",name:"keyword.control.goto.apl"},{match:"\u236C",name:"constant.language.zilde.apl"},{match:"\u22C4",name:"keyword.operator.diamond.apl"},{match:"\u236B",name:"keyword.operator.lock.apl"},{match:"\u2395",name:"keyword.operator.quad.apl"},{match:"##",name:"constant.language.namespace.parent.apl"},{match:"#",name:"constant.language.namespace.root.apl"},{match:"\u233B",name:"keyword.operator.quad-jot.apl"},{match:"\u233C",name:"keyword.operator.quad-circle.apl"},{match:"\u233E",name:"keyword.operator.circle-jot.apl"},{match:"\u2341",name:"keyword.operator.quad-slash.apl"},{match:"\u2342",name:"keyword.operator.quad-backslash.apl"},{match:"\u2343",name:"keyword.operator.quad-less.apl"},{match:"\u2344",name:"keyword.operator.greater.apl"},{match:"\u2345",name:"keyword.operator.vane-left.apl"},{match:"\u2346",name:"keyword.operator.vane-right.apl"},{match:"\u2347",name:"keyword.operator.quad-arrow-left.apl"},{match:"\u2348",name:"keyword.operator.quad-arrow-right.apl"},{match:"\u234A",name:"keyword.operator.tack-down.apl"},{match:"\u234C",name:"keyword.operator.quad-caret-down.apl"},{match:"\u234D",name:"keyword.operator.quad-del-up.apl"},{match:"\u234F",name:"keyword.operator.vane-up.apl"},{match:"\u2350",name:"keyword.operator.quad-arrow-up.apl"},{match:"\u2351",name:"keyword.operator.tack-up.apl"},{match:"\u2353",name:"keyword.operator.quad-caret-up.apl"},{match:"\u2354",name:"keyword.operator.quad-del-down.apl"},{match:"\u2356",name:"keyword.operator.vane-down.apl"},{match:"\u2357",name:"keyword.operator.quad-arrow-down.apl"},{match:"\u2358",name:"keyword.operator.underbar-quote.apl"},{match:"\u235A",name:"keyword.operator.underbar-diamond.apl"},{match:"\u235B",name:"keyword.operator.underbar-jot.apl"},{match:"\u235C",name:"keyword.operator.underbar-circle.apl"},{match:"\u235E",name:"keyword.operator.quad-quote.apl"},{match:"\u2361",name:"keyword.operator.dotted-tack-up.apl"},{match:"\u2362",name:"keyword.operator.dotted-del.apl"},{match:"\u2365",name:"keyword.operator.dotted-circle.apl"},{match:"\u2366",name:"keyword.operator.stile-shoe-up.apl"},{match:"\u2367",name:"keyword.operator.stile-shoe-left.apl"},{match:"\u2369",name:"keyword.operator.dotted-greater.apl"},{match:"\u236D",name:"keyword.operator.stile-tilde.apl"},{match:"\u236E",name:"keyword.operator.underbar-semicolon.apl"},{match:"\u236F",name:"keyword.operator.quad-not-equal.apl"},{match:"\u2370",name:"keyword.operator.quad-question.apl"}]},sysvars:{patterns:[{captures:{1:{name:"punctuation.definition.quad.apl"},2:{name:"punctuation.definition.quad-quote.apl"}},match:"(?:(\u2395)|(\u235E))[A-Za-z]*",name:"support.system.variable.apl"}]}},scopeName:"source.apl",embeddedLangs:["html","xml","css","javascript","json"]});var r=[...a,...e,...n,...t,...u,o];export{r as default};
|