@oscloudlab/knowledge-card 0.0.1 → 0.0.2
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-bNFqRLO1.js +84 -0
- package/dist/abnf-hvXtkKLY.js +87 -0
- package/dist/actionscript-6i80VbAv.js +43 -0
- package/dist/ada-CiSKRw34.js +52 -0
- package/dist/agda-BELchEdZ.js +56 -0
- package/dist/al-DkPZllof.js +56 -0
- package/dist/antlr4-D6U2qvIr.js +96 -0
- package/dist/apacheconf-DoADUQkC.js +80 -0
- package/dist/apex-Dwxgykqz.js +104 -0
- package/dist/apl-n43gQAL3.js +65 -0
- package/dist/applescript-DUNzhl2t.js +50 -0
- package/dist/aql-BNnsomU8.js +82 -0
- package/dist/arduino-Ctiiir5A.js +41 -0
- package/dist/arff-CF3A9Ff-.js +43 -0
- package/dist/asciidoc-BORHAu3L.js +240 -0
- package/dist/asm6502-OhJaS22O.js +62 -0
- package/dist/asmatmel-CG3mJBJs.js +74 -0
- package/dist/aspnet-Bgu9cVxS.js +83 -0
- package/dist/autohotkey-BMzF8w3W.js +64 -0
- package/dist/autoit-BUz7W_A-.js +67 -0
- package/dist/avisynth-D_5DsX9W.js +195 -0
- package/dist/avro-idl-DXBF-8pT.js +74 -0
- package/dist/bash-0-vitIuH.js +223 -0
- package/dist/bash-CmPTK8K6.js +26 -0
- package/dist/basic-CBrKUqQp.js +28 -0
- package/dist/basic-CgjK_kM4.js +26 -0
- package/dist/batch-DDuJqYDJ.js +125 -0
- package/dist/bbcode-BBBJW4h9.js +60 -0
- package/dist/bicep-B7Vet2aR.js +102 -0
- package/dist/birb-DPs12VRI.js +53 -0
- package/dist/bison-BKvEoKEG.js +73 -0
- package/dist/bnf-CaE0Bt3T.js +52 -0
- package/dist/brainfuck-GdsepcND.js +53 -0
- package/dist/brightscript-CaQ-B4pE.js +76 -0
- package/dist/bro-C_rmjGgn.js +60 -0
- package/dist/bsl-DQhyt9j4.js +101 -0
- package/dist/c-D8-laUL_.js +26 -0
- package/dist/c-b2c4WJSm.js +83 -0
- package/dist/cfscript-DcwVkFDX.js +71 -0
- package/dist/chaiscript-C1jdPAs0.js +89 -0
- package/dist/cil-C54xDxMg.js +52 -0
- package/dist/clike-D8ff3B0t.js +61 -0
- package/dist/clojure-BtKUzyKV.js +63 -0
- package/dist/cmake-CcFmEv5M.js +62 -0
- package/dist/cobol-SnYz3b9P.js +82 -0
- package/dist/coffeescript-CKJzYVhc.js +110 -0
- package/dist/concurnas-C6YKMKIG.js +90 -0
- package/dist/coq-AH1nKVcq.js +81 -0
- package/dist/core-CcwoL92f.js +1712 -0
- package/dist/cpp-Bh1PKWEj.js +26 -0
- package/dist/cpp-C0j-5811.js +115 -0
- package/dist/crystal-ByWjq0Om.js +87 -0
- package/dist/csharp-BmDeN1AH.js +388 -0
- package/dist/csharp-C-RIlwgF.js +26 -0
- package/dist/cshtml-BX2903vs.js +134 -0
- package/dist/csp-BKqyZN9w.js +90 -0
- package/dist/css-9KZNpeR_.js +90 -0
- package/dist/css-extras-DWWoGQa1.js +139 -0
- package/dist/csv-6jawsFvm.js +37 -0
- package/dist/cypher-GT5Ln_K4.js +65 -0
- package/dist/d-DQuNeOB7.js +109 -0
- package/dist/dart-CHER8X1l.js +101 -0
- package/dist/dataweave-DL_Y2LqP.js +73 -0
- package/dist/dax-D27J9qU6.js +60 -0
- package/dist/dhall-C-Dtjrdj.js +95 -0
- package/dist/diff-Dg1kV9wC.js +78 -0
- package/dist/django-LEJ_YyjH.js +81 -0
- package/dist/dns-zone-file-CX7rXdX2.js +64 -0
- package/dist/docker-CtY3JCLx.js +127 -0
- package/dist/dot-od_DZdpT.js +102 -0
- package/dist/ebnf-DIuzViAe.js +53 -0
- package/dist/editorconfig-CX02cRV5.js +60 -0
- package/dist/eiffel-D3XUiBw2.js +67 -0
- package/dist/ejs-2AfMOM5A.js +58 -0
- package/dist/elixir-722y_YPp.js +129 -0
- package/dist/elm-CIyhdE5y.js +78 -0
- package/dist/erb-B4chbVqA.js +60 -0
- package/dist/erlang-DxizlpkP.js +76 -0
- package/dist/etlua-D_9hun9v.js +58 -0
- package/dist/excel-formula-CmpI_82m.js +95 -0
- package/dist/factor-krg_8lb-.js +949 -0
- package/dist/false-B2gdCewG.js +60 -0
- package/dist/firestore-security-rules-xige90gq.js +67 -0
- package/dist/flow-bpD4sbhm.js +57 -0
- package/dist/fortran-B4crZzNk.js +73 -0
- package/dist/fsharp-BnvVN9HC.js +105 -0
- package/dist/ftl-BoWDVp6s.js +146 -0
- package/dist/gap-DxJ82BxA.js +78 -0
- package/dist/gcode-u6kBGAFD.js +49 -0
- package/dist/gdscript-DvuFm0WL.js +60 -0
- package/dist/gedcom-D6YNHC5R.js +61 -0
- package/dist/gherkin-DhC07ENE.js +115 -0
- package/dist/git-5vwNu_fL.js +96 -0
- package/dist/glsl-BGzQvWQa.js +39 -0
- package/dist/gml-DQQsqa0X.js +40 -0
- package/dist/gn-Bz3fehJS.js +76 -0
- package/dist/go-DQVNbr0F.js +57 -0
- package/dist/go-module-DAdBkEV6.js +55 -0
- package/dist/graphql-b5aI1fau.js +154 -0
- package/dist/groovy-C4Zi8h0f.js +82 -0
- package/dist/haml-B9jL77OH.js +172 -0
- package/dist/handlebars-BWszzUxR.js +74 -0
- package/dist/haskell-BrIvnyGx.js +26 -0
- package/dist/haskell-DR6jYji5.js +75 -0
- package/dist/haxe-DUpmVd5P.js +105 -0
- package/dist/hcl-CLqVpYtA.js +93 -0
- package/dist/hlsl-CsYJVSWg.js +55 -0
- package/dist/hoon-D0TgxHvB.js +47 -0
- package/dist/hpkp-BiU-mQjG.js +41 -0
- package/dist/hsts-DE54dR1b.js +41 -0
- package/dist/http-CfgOm4UI.js +155 -0
- package/dist/ichigojam-CVZ6Aj_t.js +46 -0
- package/dist/icon-CekiVVmc.js +53 -0
- package/dist/icu-message-format-CJA9loKb.js +165 -0
- package/dist/idris-KG9ztadM.js +51 -0
- package/dist/iecst-wFMMjMpf.js +65 -0
- package/dist/ignore-Byv4NN_B.js +51 -0
- package/dist/index-Sj89RFCY.js +136569 -0
- package/dist/index.esm.js +2 -683
- package/dist/index.umd.js +1611 -15
- package/dist/inform7-YsL-LiaC.js +90 -0
- package/dist/ini-ChNiYeuM.js +73 -0
- package/dist/io-BzLClKN_.js +55 -0
- package/dist/j-BuLAn7Gf.js +61 -0
- package/dist/java-3PJ6FLyt.js +26 -0
- package/dist/java-DYIb7l3j.js +98 -0
- package/dist/javadoc-BnSaiIyg.js +118 -0
- package/dist/javadoclike-BSqXhy54.js +26 -0
- package/dist/javadoclike-CHbTYI14.js +59 -0
- package/dist/javascript-Cl708kfq.js +152 -0
- package/dist/javastacktrace-DVGIqwxN.js +167 -0
- package/dist/jexl-DMjq6Vaw.js +47 -0
- package/dist/jolie-DXoSR52A.js +72 -0
- package/dist/jq-Dp1c5kuj.js +100 -0
- package/dist/js-extras-DJfB1MC8.js +150 -0
- package/dist/js-templates--GrCX2F1.js +197 -0
- package/dist/jsdoc-vErSu9Cr.js +116 -0
- package/dist/json-BW8KBIeJ.js +35 -0
- package/dist/json-BefNJCW-.js +26 -0
- package/dist/json5-CsdIXkOZ.js +56 -0
- package/dist/jsonp-Dz_5Lt-E.js +41 -0
- package/dist/jsstacktrace-DbBQ3Cv7.js +74 -0
- package/dist/jsx-Bv5_R7Yd.js +26 -0
- package/dist/jsx-FTe7XA1B.js +77 -0
- package/dist/julia-CoYGw2IR.js +68 -0
- package/dist/keepalived-CPWdwddz.js +81 -0
- package/dist/keyman-DNslP0Yy.js +76 -0
- package/dist/kotlin-CbZgjbyh.js +108 -0
- package/dist/kumir-Q_jLwxfZ.js +120 -0
- package/dist/kusto-dM9uOfWk.js +71 -0
- package/dist/latex-Bfeq39tO.js +92 -0
- package/dist/latte-CFxOlcdj.js +101 -0
- package/dist/less-DwfFB3qp.js +75 -0
- package/dist/lilypond-DaH_baew.js +104 -0
- package/dist/liquid-5rAVI9Ad.js +97 -0
- package/dist/lisp-Btc3xid7.js +194 -0
- package/dist/livescript-DQvJc3cA.js +150 -0
- package/dist/llvm-B7k0U20m.js +52 -0
- package/dist/log-B7ulCZCI.js +133 -0
- package/dist/lolcode-BEEMlfuU.js +81 -0
- package/dist/lua-BggcDXQp.js +31 -0
- package/dist/lua-D-T62TZ5.js +26 -0
- package/dist/magma-DAN3ZGAI.js +63 -0
- package/dist/makefile-Bjl-N6S3.js +63 -0
- package/dist/markdown-6Q2QSFJe.js +355 -0
- package/dist/markup-Bwuswjib.js +194 -0
- package/dist/markup-templating-BLspI5oq.js +26 -0
- package/dist/markup-templating-CVTxtFGH.js +77 -0
- package/dist/matlab-Bim6HLuO.js +46 -0
- package/dist/maxscript-BJqnafAC.js +97 -0
- package/dist/mel-C4iJe_aZ.js +74 -0
- package/dist/mermaid-DbKsw5IU.js +137 -0
- package/dist/mizar-DdUuEnQ0.js +45 -0
- package/dist/mongodb-C7OZqIiL.js +321 -0
- package/dist/monkey-CFQNpGhn.js +61 -0
- package/dist/moonscript-BDdCZd5M.js +87 -0
- package/dist/n1ql-C-ll6pgt.js +55 -0
- package/dist/n4js-DCLtuFdY.js +43 -0
- package/dist/nand2tetris-hdl-DJsK5r3l.js +42 -0
- package/dist/naniscript-DtHo8Sfl.js +165 -0
- package/dist/nasm-gJZT8LPh.js +57 -0
- package/dist/neon-SaMGcsnU.js +73 -0
- package/dist/nevod-Dqvto6vw.js +158 -0
- package/dist/nginx-Cp89qRQy.js +82 -0
- package/dist/nim-CdGVC6Mb.js +75 -0
- package/dist/nix-jnfiSyYI.js +69 -0
- package/dist/nsis-BZ4yPak6.js +58 -0
- package/dist/objectivec-B9lo2Gq2.js +44 -0
- package/dist/ocaml-DtZ_IyiS.js +88 -0
- package/dist/opencl-CtUznKol.js +83 -0
- package/dist/openqasm-BAmjbx7B.js +50 -0
- package/dist/oz-mvOvhn7u.js +61 -0
- package/dist/parigp-B5Xdmiju.js +81 -0
- package/dist/parser-Ct77dMe3.js +106 -0
- package/dist/pascal-Dwf-aqDs.js +95 -0
- package/dist/pascaligo-DWTvG1fw.js +115 -0
- package/dist/pcaxis-BUnNg5h_.js +84 -0
- package/dist/peoplecode-CewkQs1u.js +74 -0
- package/dist/perl-CmRi-uRU.js +164 -0
- package/dist/php-C_FrOCG4.js +334 -0
- package/dist/php-e7f7GtZ8.js +26 -0
- package/dist/php-extras-ATZDccPm.js +50 -0
- package/dist/phpdoc-uba1O-5-.js +61 -0
- package/dist/plsql-BLNilzVM.js +51 -0
- package/dist/powerquery-CddEWH0P.js +83 -0
- package/dist/powershell-SimxvdWh.js +88 -0
- package/dist/processing-IeXhsRmw.js +46 -0
- package/dist/prolog-CnTr7enQ.js +52 -0
- package/dist/promql-DpmXmCiA.js +120 -0
- package/dist/properties-BraQbkIL.js +42 -0
- package/dist/protobuf-BKmtm9wI.js +71 -0
- package/dist/psl-DfJLNMzA.js +68 -0
- package/dist/pug-C7olXkyh.js +212 -0
- package/dist/puppet-DMdAuQ_Z.js +167 -0
- package/dist/pure-BVQraXQo.js +111 -0
- package/dist/purebasic-DnAwivDW.js +87 -0
- package/dist/purescript-BBcUX3cf.js +62 -0
- package/dist/python-C9JXUpy2.js +94 -0
- package/dist/q-Ct9Ut4C4.js +83 -0
- package/dist/qml-DubjWeE3.js +103 -0
- package/dist/qore-CDjxpVlT.js +53 -0
- package/dist/qsharp-Dyr5mrma.js +128 -0
- package/dist/r-B4F2KUJL.js +55 -0
- package/dist/racket-D5k9UW-t.js +50 -0
- package/dist/reason-Cs82zJO7.js +54 -0
- package/dist/regex-Z8MvaNEm.js +124 -0
- package/dist/rego-CcGrxeab.js +58 -0
- package/dist/renpy-mByYQWSM.js +51 -0
- package/dist/rest-BoR9ZMoX.js +231 -0
- package/dist/rip-C3Bf4Bpl.js +62 -0
- package/dist/roboconf-1MYmsJJ7.js +60 -0
- package/dist/robotframework-fBSrPGHK.js +122 -0
- package/dist/ruby-BQlisu6i.js +182 -0
- package/dist/ruby-DRrUXRqW.js +26 -0
- package/dist/rust-DhUR7ICB.js +149 -0
- package/dist/sas-D7DM5vmM.js +362 -0
- package/dist/sass-B-3W9xmk.js +96 -0
- package/dist/scala-DmHnWeTz.js +80 -0
- package/dist/scheme-B-TWMKN_.js +122 -0
- package/dist/scheme-egHBLRqV.js +26 -0
- package/dist/scss-BU4D1BLj.js +106 -0
- package/dist/shell-session-6QFBv7G6.js +93 -0
- package/dist/smali-B48Y4QYt.js +112 -0
- package/dist/smalltalk-w59b04aF.js +71 -0
- package/dist/smarty-CnWvL-Ef.js +147 -0
- package/dist/sml-cUUD1qMQ.js +91 -0
- package/dist/solidity-Drt__SLk.js +49 -0
- package/dist/solution-file-CYG1BOQK.js +79 -0
- package/dist/soy-BZNQzgkB.js +112 -0
- package/dist/sparql-BQDndvZG.js +49 -0
- package/dist/splunk-spl-ezOLCJwA.js +57 -0
- package/dist/sqf-C83ezg-4.js +63 -0
- package/dist/sql-CVBSuRzU.js +26 -0
- package/dist/sql-qhcRp-Km.js +44 -0
- package/dist/squirrel-2r-3bEO_.js +74 -0
- package/dist/stan-D2wLHzr8.js +86 -0
- package/dist/style.css +1 -1
- package/dist/stylus-KkSvURTJ.js +165 -0
- package/dist/swift-c7528WsQ.js +152 -0
- package/dist/systemd-DWsV0AtP.js +88 -0
- package/dist/t4-cs-D7NmzTCB.js +38 -0
- package/dist/t4-templating-Bc9GyRcs.js +26 -0
- package/dist/t4-templating-yxm91MEk.js +56 -0
- package/dist/t4-vb-Df3tMe1Q.js +38 -0
- package/dist/tap-wFXvu_No.js +56 -0
- package/dist/tcl-BZqzhUcQ.js +79 -0
- package/dist/textile-DrTKyn7T.js +289 -0
- package/dist/toml-LVQpNmZe.js +86 -0
- package/dist/tremor-A_cxX8C4.js +90 -0
- package/dist/tsx-CQKNNLzi.js +46 -0
- package/dist/tt2-CPOtfoBh.js +78 -0
- package/dist/turtle-BjRE9oBS.js +26 -0
- package/dist/turtle-z6QfbtiY.js +61 -0
- package/dist/twig-Cz25rowk.js +72 -0
- package/dist/typescript--VNBoLO-.js +56 -0
- package/dist/typescript-Bx2QMcny.js +26 -0
- package/dist/typoscript-BdH7x5a4.js +109 -0
- package/dist/unrealscript-Cb8322pT.js +71 -0
- package/dist/uorazor-CHv0VHYn.js +81 -0
- package/dist/uri-ci9M926F.js +116 -0
- package/dist/v-DL4z_kNT.js +106 -0
- package/dist/vala-CPIzd5en.js +113 -0
- package/dist/vbnet-BoCvq106.js +26 -0
- package/dist/vbnet-ClfmYufs.js +36 -0
- package/dist/velocity-CBXhMUrK.js +99 -0
- package/dist/verilog-C1ZX-Tr8.js +59 -0
- package/dist/vhdl-CLlMgFjz.js +56 -0
- package/dist/vim-BuFUFT06.js +43 -0
- package/dist/visual-basic-CzPES6jG.js +59 -0
- package/dist/warpscript-C5YvStKz.js +54 -0
- package/dist/wasm-txCKMkgE.js +64 -0
- package/dist/web-idl-B4OgJf1y.js +118 -0
- package/dist/wiki-C6_DR7WK.js +110 -0
- package/dist/wolfram-D9ETP9M6.js +58 -0
- package/dist/wren-CkhJWcmB.js +121 -0
- package/dist/xeora-Cg3OrGlT.js +147 -0
- package/dist/xml-doc-C0mFvWUS.js +56 -0
- package/dist/xojo-CW6K9MHL.js +51 -0
- package/dist/xquery-B0ssbj_m.js +118 -0
- package/dist/yaml-S0xfBtlT.js +26 -0
- package/dist/yaml-hxc7aP7n.js +92 -0
- package/dist/yang-Dg6OSQ6Y.js +53 -0
- package/dist/zig-xuUtE8Pe.js +117 -0
- package/package.json +30 -4
- package/dist/index.d.ts +0 -2
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { g } from "./index-Sj89RFCY.js";
|
|
2
|
+
import { r as d } from "./sql-qhcRp-Km.js";
|
|
3
|
+
function b(a, r) {
|
|
4
|
+
for (var n = 0; n < r.length; n++) {
|
|
5
|
+
const e = r[n];
|
|
6
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
7
|
+
for (const t in e)
|
|
8
|
+
if (t !== "default" && !(t in a)) {
|
|
9
|
+
const i = Object.getOwnPropertyDescriptor(e, t);
|
|
10
|
+
i && Object.defineProperty(a, t, i.get ? i : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => e[t]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var l, c;
|
|
20
|
+
function f() {
|
|
21
|
+
if (c) return l;
|
|
22
|
+
c = 1;
|
|
23
|
+
var a = d();
|
|
24
|
+
l = r, r.displayName = "apex", r.aliases = [];
|
|
25
|
+
function r(n) {
|
|
26
|
+
n.register(a), function(e) {
|
|
27
|
+
var t = /\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i, i = /\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(
|
|
28
|
+
/<keyword>/g,
|
|
29
|
+
function() {
|
|
30
|
+
return t.source;
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
function s(p) {
|
|
34
|
+
return RegExp(
|
|
35
|
+
p.replace(/<CLASS-NAME>/g, function() {
|
|
36
|
+
return i;
|
|
37
|
+
}),
|
|
38
|
+
"i"
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
var o = {
|
|
42
|
+
keyword: t,
|
|
43
|
+
punctuation: /[()\[\]{};,:.<>]/
|
|
44
|
+
};
|
|
45
|
+
e.languages.apex = {
|
|
46
|
+
comment: e.languages.clike.comment,
|
|
47
|
+
string: e.languages.clike.string,
|
|
48
|
+
sql: {
|
|
49
|
+
pattern: /((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,
|
|
50
|
+
lookbehind: !0,
|
|
51
|
+
greedy: !0,
|
|
52
|
+
alias: "language-sql",
|
|
53
|
+
inside: e.languages.sql
|
|
54
|
+
},
|
|
55
|
+
annotation: {
|
|
56
|
+
pattern: /@\w+\b/,
|
|
57
|
+
alias: "punctuation"
|
|
58
|
+
},
|
|
59
|
+
"class-name": [
|
|
60
|
+
{
|
|
61
|
+
pattern: s(
|
|
62
|
+
/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source
|
|
63
|
+
),
|
|
64
|
+
lookbehind: !0,
|
|
65
|
+
inside: o
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
// cast
|
|
69
|
+
pattern: s(
|
|
70
|
+
/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source
|
|
71
|
+
),
|
|
72
|
+
lookbehind: !0,
|
|
73
|
+
inside: o
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
// variable/parameter declaration and return types
|
|
77
|
+
pattern: s(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),
|
|
78
|
+
inside: o
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
trigger: {
|
|
82
|
+
pattern: /(\btrigger\s+)\w+\b/i,
|
|
83
|
+
lookbehind: !0,
|
|
84
|
+
alias: "class-name"
|
|
85
|
+
},
|
|
86
|
+
keyword: t,
|
|
87
|
+
function: /\b[a-z_]\w*(?=\s*\()/i,
|
|
88
|
+
boolean: /\b(?:false|true)\b/i,
|
|
89
|
+
number: /(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,
|
|
90
|
+
operator: /[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,
|
|
91
|
+
punctuation: /[()\[\]{};,.]/
|
|
92
|
+
};
|
|
93
|
+
}(n);
|
|
94
|
+
}
|
|
95
|
+
return l;
|
|
96
|
+
}
|
|
97
|
+
var u = f();
|
|
98
|
+
const m = /* @__PURE__ */ g(u), y = /* @__PURE__ */ b({
|
|
99
|
+
__proto__: null,
|
|
100
|
+
default: m
|
|
101
|
+
}, [u]);
|
|
102
|
+
export {
|
|
103
|
+
y as a
|
|
104
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { g as l } from "./index-Sj89RFCY.js";
|
|
2
|
+
function u(t, a) {
|
|
3
|
+
for (var n = 0; n < a.length; n++) {
|
|
4
|
+
const e = a[n];
|
|
5
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const r in e)
|
|
7
|
+
if (r !== "default" && !(r in t)) {
|
|
8
|
+
const o = Object.getOwnPropertyDescriptor(e, r);
|
|
9
|
+
o && Object.defineProperty(t, r, o.get ? o : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => e[r]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var i, p;
|
|
19
|
+
function c() {
|
|
20
|
+
if (p) return i;
|
|
21
|
+
p = 1, i = t, t.displayName = "apl", t.aliases = [];
|
|
22
|
+
function t(a) {
|
|
23
|
+
a.languages.apl = {
|
|
24
|
+
comment: /(?:⍝|#[! ]).*$/m,
|
|
25
|
+
string: {
|
|
26
|
+
pattern: /'(?:[^'\r\n]|'')*'/,
|
|
27
|
+
greedy: !0
|
|
28
|
+
},
|
|
29
|
+
number: /¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
|
|
30
|
+
statement: /:[A-Z][a-z][A-Za-z]*\b/,
|
|
31
|
+
"system-function": {
|
|
32
|
+
pattern: /⎕[A-Z]+/i,
|
|
33
|
+
alias: "function"
|
|
34
|
+
},
|
|
35
|
+
constant: /[⍬⌾#⎕⍞]/,
|
|
36
|
+
function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
|
|
37
|
+
"monadic-operator": {
|
|
38
|
+
pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
|
|
39
|
+
alias: "operator"
|
|
40
|
+
},
|
|
41
|
+
"dyadic-operator": {
|
|
42
|
+
pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
|
|
43
|
+
alias: "operator"
|
|
44
|
+
},
|
|
45
|
+
assignment: {
|
|
46
|
+
pattern: /←/,
|
|
47
|
+
alias: "keyword"
|
|
48
|
+
},
|
|
49
|
+
punctuation: /[\[;\]()◇⋄]/,
|
|
50
|
+
dfn: {
|
|
51
|
+
pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
|
|
52
|
+
alias: "builtin"
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
return i;
|
|
57
|
+
}
|
|
58
|
+
var s = c();
|
|
59
|
+
const d = /* @__PURE__ */ l(s), g = /* @__PURE__ */ u({
|
|
60
|
+
__proto__: null,
|
|
61
|
+
default: d
|
|
62
|
+
}, [s]);
|
|
63
|
+
export {
|
|
64
|
+
g as a
|
|
65
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { g as l } from "./index-Sj89RFCY.js";
|
|
2
|
+
function u(e, s) {
|
|
3
|
+
for (var i = 0; i < s.length; i++) {
|
|
4
|
+
const t = s[i];
|
|
5
|
+
if (typeof t != "string" && !Array.isArray(t)) {
|
|
6
|
+
for (const r in t)
|
|
7
|
+
if (r !== "default" && !(r in e)) {
|
|
8
|
+
const o = Object.getOwnPropertyDescriptor(t, r);
|
|
9
|
+
o && Object.defineProperty(e, r, o.get ? o : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => t[r]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var n, a;
|
|
19
|
+
function p() {
|
|
20
|
+
if (a) return n;
|
|
21
|
+
a = 1, n = e, e.displayName = "applescript", e.aliases = [];
|
|
22
|
+
function e(s) {
|
|
23
|
+
s.languages.applescript = {
|
|
24
|
+
comment: [
|
|
25
|
+
// Allow one level of nesting
|
|
26
|
+
/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,
|
|
27
|
+
/--.+/,
|
|
28
|
+
/#.+/
|
|
29
|
+
],
|
|
30
|
+
string: /"(?:\\.|[^"\\\r\n])*"/,
|
|
31
|
+
number: /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,
|
|
32
|
+
operator: [
|
|
33
|
+
/[&=≠≤≥*+\-\/÷^]|[<>]=?/,
|
|
34
|
+
/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/
|
|
35
|
+
],
|
|
36
|
+
keyword: /\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,
|
|
37
|
+
"class-name": /\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,
|
|
38
|
+
punctuation: /[{}():,¬«»《》]/
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return n;
|
|
42
|
+
}
|
|
43
|
+
var c = p();
|
|
44
|
+
const d = /* @__PURE__ */ l(c), m = /* @__PURE__ */ u({
|
|
45
|
+
__proto__: null,
|
|
46
|
+
default: d
|
|
47
|
+
}, [c]);
|
|
48
|
+
export {
|
|
49
|
+
m as a
|
|
50
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { g as s } from "./index-Sj89RFCY.js";
|
|
2
|
+
function u(e, a) {
|
|
3
|
+
for (var n = 0; n < a.length; n++) {
|
|
4
|
+
const r = a[n];
|
|
5
|
+
if (typeof r != "string" && !Array.isArray(r)) {
|
|
6
|
+
for (const t in r)
|
|
7
|
+
if (t !== "default" && !(t in e)) {
|
|
8
|
+
const o = Object.getOwnPropertyDescriptor(r, t);
|
|
9
|
+
o && Object.defineProperty(e, t, o.get ? o : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => r[t]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var i, l;
|
|
19
|
+
function b() {
|
|
20
|
+
if (l) return i;
|
|
21
|
+
l = 1, i = e, e.displayName = "aql", e.aliases = [];
|
|
22
|
+
function e(a) {
|
|
23
|
+
a.languages.aql = {
|
|
24
|
+
comment: /\/\/.*|\/\*[\s\S]*?\*\//,
|
|
25
|
+
property: {
|
|
26
|
+
pattern: /([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,
|
|
27
|
+
lookbehind: !0,
|
|
28
|
+
greedy: !0
|
|
29
|
+
},
|
|
30
|
+
string: {
|
|
31
|
+
pattern: /(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,
|
|
32
|
+
greedy: !0
|
|
33
|
+
},
|
|
34
|
+
identifier: {
|
|
35
|
+
pattern: /([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,
|
|
36
|
+
greedy: !0
|
|
37
|
+
},
|
|
38
|
+
variable: /@@?\w+/,
|
|
39
|
+
keyword: [
|
|
40
|
+
{
|
|
41
|
+
pattern: /(\bWITH\s+)COUNT(?=\s+INTO\b)/i,
|
|
42
|
+
lookbehind: !0
|
|
43
|
+
},
|
|
44
|
+
/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,
|
|
45
|
+
// pseudo keywords get a lookbehind to avoid false positives
|
|
46
|
+
{
|
|
47
|
+
pattern: /(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,
|
|
48
|
+
lookbehind: !0
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
pattern: /(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,
|
|
52
|
+
lookbehind: !0
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
pattern: /\bOPTIONS(?=\s*\{)/i
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
function: /\b(?!\d)\w+(?=\s*\()/,
|
|
59
|
+
boolean: /\b(?:false|true)\b/i,
|
|
60
|
+
range: {
|
|
61
|
+
pattern: /\.\./,
|
|
62
|
+
alias: "operator"
|
|
63
|
+
},
|
|
64
|
+
number: [
|
|
65
|
+
/\b0b[01]+/i,
|
|
66
|
+
/\b0x[0-9a-f]+/i,
|
|
67
|
+
/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i
|
|
68
|
+
],
|
|
69
|
+
operator: /\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,
|
|
70
|
+
punctuation: /::|[?.:,;()[\]{}]/
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
return i;
|
|
74
|
+
}
|
|
75
|
+
var T = b();
|
|
76
|
+
const E = /* @__PURE__ */ s(T), O = /* @__PURE__ */ u({
|
|
77
|
+
__proto__: null,
|
|
78
|
+
default: E
|
|
79
|
+
}, [T]);
|
|
80
|
+
export {
|
|
81
|
+
O as a
|
|
82
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { g as d } from "./index-Sj89RFCY.js";
|
|
2
|
+
import { r as c } from "./cpp-C0j-5811.js";
|
|
3
|
+
function u(t, r) {
|
|
4
|
+
for (var e = 0; e < r.length; e++) {
|
|
5
|
+
const o = r[e];
|
|
6
|
+
if (typeof o != "string" && !Array.isArray(o)) {
|
|
7
|
+
for (const i in o)
|
|
8
|
+
if (i !== "default" && !(i in t)) {
|
|
9
|
+
const n = Object.getOwnPropertyDescriptor(o, i);
|
|
10
|
+
n && Object.defineProperty(t, i, n.get ? n : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => o[i]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var a, s;
|
|
20
|
+
function g() {
|
|
21
|
+
if (s) return a;
|
|
22
|
+
s = 1;
|
|
23
|
+
var t = c();
|
|
24
|
+
a = r, r.displayName = "arduino", r.aliases = ["ino"];
|
|
25
|
+
function r(e) {
|
|
26
|
+
e.register(t), e.languages.arduino = e.languages.extend("cpp", {
|
|
27
|
+
keyword: /\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,
|
|
28
|
+
constant: /\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,
|
|
29
|
+
builtin: /\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/
|
|
30
|
+
}), e.languages.ino = e.languages.arduino;
|
|
31
|
+
}
|
|
32
|
+
return a;
|
|
33
|
+
}
|
|
34
|
+
var l = g();
|
|
35
|
+
const S = /* @__PURE__ */ d(l), y = /* @__PURE__ */ u({
|
|
36
|
+
__proto__: null,
|
|
37
|
+
default: S
|
|
38
|
+
}, [l]);
|
|
39
|
+
export {
|
|
40
|
+
y as a
|
|
41
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { g as s } from "./index-Sj89RFCY.js";
|
|
2
|
+
function c(r, a) {
|
|
3
|
+
for (var f = 0; f < a.length; f++) {
|
|
4
|
+
const e = a[f];
|
|
5
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const t in e)
|
|
7
|
+
if (t !== "default" && !(t in r)) {
|
|
8
|
+
const n = Object.getOwnPropertyDescriptor(e, t);
|
|
9
|
+
n && Object.defineProperty(r, t, n.get ? n : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => e[t]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var o, i;
|
|
19
|
+
function d() {
|
|
20
|
+
if (i) return o;
|
|
21
|
+
i = 1, o = r, r.displayName = "arff", r.aliases = [];
|
|
22
|
+
function r(a) {
|
|
23
|
+
a.languages.arff = {
|
|
24
|
+
comment: /%.*/,
|
|
25
|
+
string: {
|
|
26
|
+
pattern: /(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
27
|
+
greedy: !0
|
|
28
|
+
},
|
|
29
|
+
keyword: /@(?:attribute|data|end|relation)\b/i,
|
|
30
|
+
number: /\b\d+(?:\.\d+)?\b/,
|
|
31
|
+
punctuation: /[{},]/
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
return o;
|
|
35
|
+
}
|
|
36
|
+
var u = d();
|
|
37
|
+
const g = /* @__PURE__ */ s(u), p = /* @__PURE__ */ c({
|
|
38
|
+
__proto__: null,
|
|
39
|
+
default: g
|
|
40
|
+
}, [u]);
|
|
41
|
+
export {
|
|
42
|
+
p as a
|
|
43
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { g as b } from "./index-Sj89RFCY.js";
|
|
2
|
+
function m(a, o) {
|
|
3
|
+
for (var r = 0; r < o.length; r++) {
|
|
4
|
+
const n = o[r];
|
|
5
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
6
|
+
for (const t in n)
|
|
7
|
+
if (t !== "default" && !(t in a)) {
|
|
8
|
+
const e = Object.getOwnPropertyDescriptor(n, t);
|
|
9
|
+
e && Object.defineProperty(a, t, e.get ? e : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => n[t]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var l, u;
|
|
19
|
+
function $() {
|
|
20
|
+
if (u) return l;
|
|
21
|
+
u = 1, l = a, a.displayName = "asciidoc", a.aliases = ["adoc"];
|
|
22
|
+
function a(o) {
|
|
23
|
+
(function(r) {
|
|
24
|
+
var n = {
|
|
25
|
+
pattern: /(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,
|
|
26
|
+
lookbehind: !0,
|
|
27
|
+
inside: {
|
|
28
|
+
quoted: {
|
|
29
|
+
pattern: /([$`])(?:(?!\1)[^\\]|\\.)*\1/,
|
|
30
|
+
inside: {
|
|
31
|
+
punctuation: /^[$`]|[$`]$/
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
interpreted: {
|
|
35
|
+
pattern: /'(?:[^'\\]|\\.)*'/,
|
|
36
|
+
inside: {
|
|
37
|
+
punctuation: /^'|'$/
|
|
38
|
+
// See rest below
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
string: /"(?:[^"\\]|\\.)*"/,
|
|
42
|
+
variable: /\w+(?==)/,
|
|
43
|
+
punctuation: /^\[|\]$|,/,
|
|
44
|
+
operator: /=/,
|
|
45
|
+
// The negative look-ahead prevents blank matches
|
|
46
|
+
"attr-value": /(?!^\s+$).+/
|
|
47
|
+
}
|
|
48
|
+
}, t = r.languages.asciidoc = {
|
|
49
|
+
"comment-block": {
|
|
50
|
+
pattern: /^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,
|
|
51
|
+
alias: "comment"
|
|
52
|
+
},
|
|
53
|
+
table: {
|
|
54
|
+
pattern: /^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,
|
|
55
|
+
inside: {
|
|
56
|
+
specifiers: {
|
|
57
|
+
pattern: /(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,
|
|
58
|
+
alias: "attr-value"
|
|
59
|
+
},
|
|
60
|
+
punctuation: {
|
|
61
|
+
pattern: /(^|[^\\])[|!]=*/,
|
|
62
|
+
lookbehind: !0
|
|
63
|
+
}
|
|
64
|
+
// See rest below
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"passthrough-block": {
|
|
68
|
+
pattern: /^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
|
|
69
|
+
inside: {
|
|
70
|
+
punctuation: /^\++|\++$/
|
|
71
|
+
// See rest below
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
// Literal blocks and listing blocks
|
|
75
|
+
"literal-block": {
|
|
76
|
+
pattern: /^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
|
|
77
|
+
inside: {
|
|
78
|
+
punctuation: /^(?:-+|\.+)|(?:-+|\.+)$/
|
|
79
|
+
// See rest below
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
// Sidebar blocks, quote blocks, example blocks and open blocks
|
|
83
|
+
"other-block": {
|
|
84
|
+
pattern: /^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,
|
|
85
|
+
inside: {
|
|
86
|
+
punctuation: /^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/
|
|
87
|
+
// See rest below
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
// list-punctuation and list-label must appear before indented-block
|
|
91
|
+
"list-punctuation": {
|
|
92
|
+
pattern: /(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,
|
|
93
|
+
lookbehind: !0,
|
|
94
|
+
alias: "punctuation"
|
|
95
|
+
},
|
|
96
|
+
"list-label": {
|
|
97
|
+
pattern: /(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,
|
|
98
|
+
lookbehind: !0,
|
|
99
|
+
alias: "symbol"
|
|
100
|
+
},
|
|
101
|
+
"indented-block": {
|
|
102
|
+
pattern: /((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,
|
|
103
|
+
lookbehind: !0
|
|
104
|
+
},
|
|
105
|
+
comment: /^\/\/.*/m,
|
|
106
|
+
title: {
|
|
107
|
+
pattern: /^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,
|
|
108
|
+
alias: "important",
|
|
109
|
+
inside: {
|
|
110
|
+
punctuation: /^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/
|
|
111
|
+
// See rest below
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"attribute-entry": {
|
|
115
|
+
pattern: /^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,
|
|
116
|
+
alias: "tag"
|
|
117
|
+
},
|
|
118
|
+
attributes: n,
|
|
119
|
+
hr: {
|
|
120
|
+
pattern: /^'{3,}$/m,
|
|
121
|
+
alias: "punctuation"
|
|
122
|
+
},
|
|
123
|
+
"page-break": {
|
|
124
|
+
pattern: /^<{3,}$/m,
|
|
125
|
+
alias: "punctuation"
|
|
126
|
+
},
|
|
127
|
+
admonition: {
|
|
128
|
+
pattern: /^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,
|
|
129
|
+
alias: "keyword"
|
|
130
|
+
},
|
|
131
|
+
callout: [
|
|
132
|
+
{
|
|
133
|
+
pattern: /(^[ \t]*)<?\d*>/m,
|
|
134
|
+
lookbehind: !0,
|
|
135
|
+
alias: "symbol"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
pattern: /<\d+>/,
|
|
139
|
+
alias: "symbol"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
macro: {
|
|
143
|
+
pattern: /\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,
|
|
144
|
+
inside: {
|
|
145
|
+
function: /^[a-z\d-]+(?=:)/,
|
|
146
|
+
punctuation: /^::?/,
|
|
147
|
+
attributes: {
|
|
148
|
+
pattern: /(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,
|
|
149
|
+
inside: n.inside
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
inline: {
|
|
154
|
+
/*
|
|
155
|
+
The initial look-behind prevents the highlighting of escaped quoted text.
|
|
156
|
+
Quoted text can be multi-line but cannot span an empty line.
|
|
157
|
+
All quoted text can have attributes before [foobar, 'foobar', baz="bar"].
|
|
158
|
+
First, we handle the constrained quotes.
|
|
159
|
+
Those must be bounded by non-word chars and cannot have spaces between the delimiter and the first char.
|
|
160
|
+
They are, in order: _emphasis_, ``double quotes'', `single quotes', `monospace`, 'emphasis', *strong*, +monospace+ and #unquoted#
|
|
161
|
+
Then we handle the unconstrained quotes.
|
|
162
|
+
Those do not have the restrictions of the constrained quotes.
|
|
163
|
+
They are, in order: __emphasis__, **strong**, ++monospace++, +++passthrough+++, ##unquoted##, $$passthrough$$, ~subscript~, ^superscript^, {attribute-reference}, [[anchor]], [[[bibliography anchor]]], <<xref>>, (((indexes))) and ((indexes))
|
|
164
|
+
*/
|
|
165
|
+
pattern: /(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,
|
|
166
|
+
lookbehind: !0,
|
|
167
|
+
inside: {
|
|
168
|
+
attributes: n,
|
|
169
|
+
url: {
|
|
170
|
+
pattern: /^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,
|
|
171
|
+
inside: {
|
|
172
|
+
punctuation: /^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"attribute-ref": {
|
|
176
|
+
pattern: /^\{.+\}$/,
|
|
177
|
+
inside: {
|
|
178
|
+
variable: {
|
|
179
|
+
pattern: /(^\{)[a-z\d,+_-]+/,
|
|
180
|
+
lookbehind: !0
|
|
181
|
+
},
|
|
182
|
+
operator: /^[=?!#%@$]|!(?=[:}])/,
|
|
183
|
+
punctuation: /^\{|\}$|::?/
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
italic: {
|
|
187
|
+
pattern: /^(['_])[\s\S]+\1$/,
|
|
188
|
+
inside: {
|
|
189
|
+
punctuation: /^(?:''?|__?)|(?:''?|__?)$/
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
bold: {
|
|
193
|
+
pattern: /^\*[\s\S]+\*$/,
|
|
194
|
+
inside: {
|
|
195
|
+
punctuation: /^\*\*?|\*\*?$/
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
punctuation: /^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
replacement: {
|
|
202
|
+
pattern: /\((?:C|R|TM)\)/,
|
|
203
|
+
alias: "builtin"
|
|
204
|
+
},
|
|
205
|
+
entity: /&#?[\da-z]{1,8};/i,
|
|
206
|
+
"line-continuation": {
|
|
207
|
+
pattern: /(^| )\+$/m,
|
|
208
|
+
lookbehind: !0,
|
|
209
|
+
alias: "punctuation"
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
function e(i) {
|
|
213
|
+
i = i.split(" ");
|
|
214
|
+
for (var c = {}, s = 0, d = i.length; s < d; s++)
|
|
215
|
+
c[i[s]] = t[i[s]];
|
|
216
|
+
return c;
|
|
217
|
+
}
|
|
218
|
+
n.inside.interpreted.inside.rest = e(
|
|
219
|
+
"macro inline replacement entity"
|
|
220
|
+
), t["passthrough-block"].inside.rest = e("macro"), t["literal-block"].inside.rest = e("callout"), t.table.inside.rest = e(
|
|
221
|
+
"comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"
|
|
222
|
+
), t["other-block"].inside.rest = e(
|
|
223
|
+
"table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"
|
|
224
|
+
), t.title.inside.rest = e(
|
|
225
|
+
"macro inline replacement entity"
|
|
226
|
+
), r.hooks.add("wrap", function(i) {
|
|
227
|
+
i.type === "entity" && (i.attributes.title = i.content.value.replace(/&/, "&"));
|
|
228
|
+
}), r.languages.adoc = r.languages.asciidoc;
|
|
229
|
+
})(o);
|
|
230
|
+
}
|
|
231
|
+
return l;
|
|
232
|
+
}
|
|
233
|
+
var p = $();
|
|
234
|
+
const f = /* @__PURE__ */ b(p), h = /* @__PURE__ */ m({
|
|
235
|
+
__proto__: null,
|
|
236
|
+
default: f
|
|
237
|
+
}, [p]);
|
|
238
|
+
export {
|
|
239
|
+
h as a
|
|
240
|
+
};
|