@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,165 @@
|
|
|
1
|
+
import { g as y } from "./index-Sj89RFCY.js";
|
|
2
|
+
function h(i, p) {
|
|
3
|
+
for (var a = 0; a < p.length; a++) {
|
|
4
|
+
const t = p[a];
|
|
5
|
+
if (typeof t != "string" && !Array.isArray(t)) {
|
|
6
|
+
for (const n in t)
|
|
7
|
+
if (n !== "default" && !(n in i)) {
|
|
8
|
+
const s = Object.getOwnPropertyDescriptor(t, n);
|
|
9
|
+
s && Object.defineProperty(i, n, s.get ? s : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => t[n]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var d, f;
|
|
19
|
+
function b() {
|
|
20
|
+
if (f) return d;
|
|
21
|
+
f = 1, d = i, i.displayName = "naniscript", i.aliases = [];
|
|
22
|
+
function i(p) {
|
|
23
|
+
(function(a) {
|
|
24
|
+
var t = /\{[^\r\n\[\]{}]*\}/, n = {
|
|
25
|
+
"quoted-string": {
|
|
26
|
+
pattern: /"(?:[^"\\]|\\.)*"/,
|
|
27
|
+
alias: "operator"
|
|
28
|
+
},
|
|
29
|
+
"command-param-id": {
|
|
30
|
+
pattern: /(\s)\w+:/,
|
|
31
|
+
lookbehind: !0,
|
|
32
|
+
alias: "property"
|
|
33
|
+
},
|
|
34
|
+
"command-param-value": [
|
|
35
|
+
{
|
|
36
|
+
pattern: t,
|
|
37
|
+
alias: "selector"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
pattern: /([\t ])\S+/,
|
|
41
|
+
lookbehind: !0,
|
|
42
|
+
greedy: !0,
|
|
43
|
+
alias: "operator"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
pattern: /\S(?:.*\S)?/,
|
|
47
|
+
alias: "operator"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
};
|
|
51
|
+
a.languages.naniscript = {
|
|
52
|
+
// ; ...
|
|
53
|
+
comment: {
|
|
54
|
+
pattern: /^([\t ]*);.*/m,
|
|
55
|
+
lookbehind: !0
|
|
56
|
+
},
|
|
57
|
+
// > ...
|
|
58
|
+
// Define is a control line starting with '>' followed by a word, a space and a text.
|
|
59
|
+
define: {
|
|
60
|
+
pattern: /^>.+/m,
|
|
61
|
+
alias: "tag",
|
|
62
|
+
inside: {
|
|
63
|
+
value: {
|
|
64
|
+
pattern: /(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,
|
|
65
|
+
lookbehind: !0,
|
|
66
|
+
alias: "operator"
|
|
67
|
+
},
|
|
68
|
+
key: {
|
|
69
|
+
pattern: /(^>)\w+/,
|
|
70
|
+
lookbehind: !0
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
// # ...
|
|
75
|
+
label: {
|
|
76
|
+
pattern: /^([\t ]*)#[\t ]*\w+[\t ]*$/m,
|
|
77
|
+
lookbehind: !0,
|
|
78
|
+
alias: "regex"
|
|
79
|
+
},
|
|
80
|
+
command: {
|
|
81
|
+
pattern: /^([\t ]*)@\w+(?=[\t ]|$).*/m,
|
|
82
|
+
lookbehind: !0,
|
|
83
|
+
alias: "function",
|
|
84
|
+
inside: {
|
|
85
|
+
"command-name": /^@\w+/,
|
|
86
|
+
expression: {
|
|
87
|
+
pattern: t,
|
|
88
|
+
greedy: !0,
|
|
89
|
+
alias: "selector"
|
|
90
|
+
},
|
|
91
|
+
"command-params": {
|
|
92
|
+
pattern: /\s*\S[\s\S]*/,
|
|
93
|
+
inside: n
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
// Generic is any line that doesn't start with operators: ;>#@
|
|
98
|
+
"generic-text": {
|
|
99
|
+
pattern: /(^[ \t]*)[^#@>;\s].*/m,
|
|
100
|
+
lookbehind: !0,
|
|
101
|
+
alias: "punctuation",
|
|
102
|
+
inside: {
|
|
103
|
+
// \{ ... \} ... \[ ... \] ... \"
|
|
104
|
+
"escaped-char": /\\[{}\[\]"]/,
|
|
105
|
+
expression: {
|
|
106
|
+
pattern: t,
|
|
107
|
+
greedy: !0,
|
|
108
|
+
alias: "selector"
|
|
109
|
+
},
|
|
110
|
+
"inline-command": {
|
|
111
|
+
pattern: /\[[\t ]*\w[^\r\n\[\]]*\]/,
|
|
112
|
+
greedy: !0,
|
|
113
|
+
alias: "function",
|
|
114
|
+
inside: {
|
|
115
|
+
"command-params": {
|
|
116
|
+
pattern: /(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,
|
|
117
|
+
lookbehind: !0,
|
|
118
|
+
inside: n
|
|
119
|
+
},
|
|
120
|
+
"command-param-name": {
|
|
121
|
+
pattern: /^(\[[\t ]*)\w+/,
|
|
122
|
+
lookbehind: !0,
|
|
123
|
+
alias: "name"
|
|
124
|
+
},
|
|
125
|
+
"start-stop-char": /[\[\]]/
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}, a.languages.nani = a.languages.naniscript, a.hooks.add("after-tokenize", function(e) {
|
|
131
|
+
var u = e.tokens;
|
|
132
|
+
u.forEach(function(r) {
|
|
133
|
+
if (typeof r != "string" && r.type === "generic-text") {
|
|
134
|
+
var o = c(r);
|
|
135
|
+
s(o) || (r.type = "bad-line", r.content = o);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
function s(e) {
|
|
140
|
+
for (var u = "[]{}", r = [], o = 0; o < e.length; o++) {
|
|
141
|
+
var g = e[o], l = u.indexOf(g);
|
|
142
|
+
if (l !== -1) {
|
|
143
|
+
if (l % 2 === 0)
|
|
144
|
+
r.push(l + 1);
|
|
145
|
+
else if (r.pop() !== l)
|
|
146
|
+
return !1;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return r.length === 0;
|
|
150
|
+
}
|
|
151
|
+
function c(e) {
|
|
152
|
+
return typeof e == "string" ? e : Array.isArray(e) ? e.map(c).join("") : c(e.content);
|
|
153
|
+
}
|
|
154
|
+
})(p);
|
|
155
|
+
}
|
|
156
|
+
return d;
|
|
157
|
+
}
|
|
158
|
+
var m = b();
|
|
159
|
+
const v = /* @__PURE__ */ y(m), k = /* @__PURE__ */ h({
|
|
160
|
+
__proto__: null,
|
|
161
|
+
default: v
|
|
162
|
+
}, [m]);
|
|
163
|
+
export {
|
|
164
|
+
k as n
|
|
165
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { g as m } from "./index-Sj89RFCY.js";
|
|
2
|
+
function f(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 s = Object.getOwnPropertyDescriptor(r, t);
|
|
9
|
+
s && Object.defineProperty(e, t, s.get ? s : {
|
|
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 o, d;
|
|
19
|
+
function l() {
|
|
20
|
+
if (d) return o;
|
|
21
|
+
d = 1, o = e, e.displayName = "nasm", e.aliases = [];
|
|
22
|
+
function e(a) {
|
|
23
|
+
a.languages.nasm = {
|
|
24
|
+
comment: /;.*$/m,
|
|
25
|
+
string: /(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
26
|
+
label: {
|
|
27
|
+
pattern: /(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,
|
|
28
|
+
lookbehind: !0,
|
|
29
|
+
alias: "function"
|
|
30
|
+
},
|
|
31
|
+
keyword: [
|
|
32
|
+
/\[?BITS (?:16|32|64)\]?/,
|
|
33
|
+
{
|
|
34
|
+
pattern: /(^\s*)section\s*[a-z.]+:?/im,
|
|
35
|
+
lookbehind: !0
|
|
36
|
+
},
|
|
37
|
+
/(?:extern|global)[^;\r\n]*/i,
|
|
38
|
+
/(?:CPU|DEFAULT|FLOAT).*$/m
|
|
39
|
+
],
|
|
40
|
+
register: {
|
|
41
|
+
pattern: /\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,
|
|
42
|
+
alias: "variable"
|
|
43
|
+
},
|
|
44
|
+
number: /(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,
|
|
45
|
+
operator: /[\[\]*+\-\/%<>=&|$!]/
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return o;
|
|
49
|
+
}
|
|
50
|
+
var i = l();
|
|
51
|
+
const b = /* @__PURE__ */ m(i), u = /* @__PURE__ */ f({
|
|
52
|
+
__proto__: null,
|
|
53
|
+
default: b
|
|
54
|
+
}, [i]);
|
|
55
|
+
export {
|
|
56
|
+
u as n
|
|
57
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { g as u } from "./index-Sj89RFCY.js";
|
|
2
|
+
function l(e, n) {
|
|
3
|
+
for (var o = 0; o < n.length; o++) {
|
|
4
|
+
const t = n[o];
|
|
5
|
+
if (typeof t != "string" && !Array.isArray(t)) {
|
|
6
|
+
for (const r in t)
|
|
7
|
+
if (r !== "default" && !(r in e)) {
|
|
8
|
+
const s = Object.getOwnPropertyDescriptor(t, r);
|
|
9
|
+
s && Object.defineProperty(e, r, s.get ? s : {
|
|
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 a, d;
|
|
19
|
+
function p() {
|
|
20
|
+
if (d) return a;
|
|
21
|
+
d = 1, a = e, e.displayName = "neon", e.aliases = [];
|
|
22
|
+
function e(n) {
|
|
23
|
+
n.languages.neon = {
|
|
24
|
+
comment: {
|
|
25
|
+
pattern: /#.*/,
|
|
26
|
+
greedy: !0
|
|
27
|
+
},
|
|
28
|
+
datetime: {
|
|
29
|
+
pattern: /(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,
|
|
30
|
+
lookbehind: !0,
|
|
31
|
+
alias: "number"
|
|
32
|
+
},
|
|
33
|
+
key: {
|
|
34
|
+
pattern: /(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,
|
|
35
|
+
lookbehind: !0,
|
|
36
|
+
alias: "atrule"
|
|
37
|
+
},
|
|
38
|
+
number: {
|
|
39
|
+
pattern: /(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,
|
|
40
|
+
lookbehind: !0
|
|
41
|
+
},
|
|
42
|
+
boolean: {
|
|
43
|
+
pattern: /(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,
|
|
44
|
+
lookbehind: !0
|
|
45
|
+
},
|
|
46
|
+
null: {
|
|
47
|
+
pattern: /(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,
|
|
48
|
+
lookbehind: !0,
|
|
49
|
+
alias: "keyword"
|
|
50
|
+
},
|
|
51
|
+
string: {
|
|
52
|
+
pattern: /(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,
|
|
53
|
+
lookbehind: !0,
|
|
54
|
+
greedy: !0
|
|
55
|
+
},
|
|
56
|
+
literal: {
|
|
57
|
+
pattern: /(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,
|
|
58
|
+
lookbehind: !0,
|
|
59
|
+
alias: "string"
|
|
60
|
+
},
|
|
61
|
+
punctuation: /[,:=[\]{}()-]/
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return a;
|
|
65
|
+
}
|
|
66
|
+
var i = p();
|
|
67
|
+
const f = /* @__PURE__ */ u(i), c = /* @__PURE__ */ l({
|
|
68
|
+
__proto__: null,
|
|
69
|
+
default: f
|
|
70
|
+
}, [i]);
|
|
71
|
+
export {
|
|
72
|
+
c as n
|
|
73
|
+
};
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { g as l } from "./index-Sj89RFCY.js";
|
|
2
|
+
function d(a, n) {
|
|
3
|
+
for (var r = 0; r < n.length; r++) {
|
|
4
|
+
const e = n[r];
|
|
5
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const t in e)
|
|
7
|
+
if (t !== "default" && !(t in a)) {
|
|
8
|
+
const s = Object.getOwnPropertyDescriptor(e, t);
|
|
9
|
+
s && Object.defineProperty(a, t, s.get ? s : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => e[t]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var i, o;
|
|
19
|
+
function u() {
|
|
20
|
+
if (o) return i;
|
|
21
|
+
o = 1, i = a, a.displayName = "nevod", a.aliases = [];
|
|
22
|
+
function a(n) {
|
|
23
|
+
n.languages.nevod = {
|
|
24
|
+
comment: /\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,
|
|
25
|
+
string: {
|
|
26
|
+
pattern: /(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,
|
|
27
|
+
greedy: !0,
|
|
28
|
+
inside: {
|
|
29
|
+
"string-attrs": /!$|!\*$|\*$/
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
namespace: {
|
|
33
|
+
pattern: /(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,
|
|
34
|
+
lookbehind: !0
|
|
35
|
+
},
|
|
36
|
+
pattern: {
|
|
37
|
+
pattern: /(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,
|
|
38
|
+
lookbehind: !0,
|
|
39
|
+
inside: {
|
|
40
|
+
"pattern-name": {
|
|
41
|
+
pattern: /^#?[a-zA-Z0-9\-.]+/,
|
|
42
|
+
alias: "class-name"
|
|
43
|
+
},
|
|
44
|
+
fields: {
|
|
45
|
+
pattern: /\(.*\)/,
|
|
46
|
+
inside: {
|
|
47
|
+
"field-name": {
|
|
48
|
+
pattern: /[a-zA-Z0-9\-.]+/,
|
|
49
|
+
alias: "variable"
|
|
50
|
+
},
|
|
51
|
+
punctuation: /[,()]/,
|
|
52
|
+
operator: {
|
|
53
|
+
pattern: /~/,
|
|
54
|
+
alias: "field-hidden-mark"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
search: {
|
|
61
|
+
pattern: /(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,
|
|
62
|
+
alias: "function",
|
|
63
|
+
lookbehind: !0
|
|
64
|
+
},
|
|
65
|
+
keyword: /@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,
|
|
66
|
+
"standard-pattern": {
|
|
67
|
+
pattern: /\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,
|
|
68
|
+
inside: {
|
|
69
|
+
"standard-pattern-name": {
|
|
70
|
+
pattern: /^[a-zA-Z0-9\-.]+/,
|
|
71
|
+
alias: "builtin"
|
|
72
|
+
},
|
|
73
|
+
quantifier: {
|
|
74
|
+
pattern: /\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,
|
|
75
|
+
alias: "number"
|
|
76
|
+
},
|
|
77
|
+
"standard-pattern-attr": {
|
|
78
|
+
pattern: /[a-zA-Z0-9\-.]+/,
|
|
79
|
+
alias: "builtin"
|
|
80
|
+
},
|
|
81
|
+
punctuation: /[,()]/
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
quantifier: {
|
|
85
|
+
pattern: /\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,
|
|
86
|
+
alias: "number"
|
|
87
|
+
},
|
|
88
|
+
operator: [
|
|
89
|
+
{
|
|
90
|
+
pattern: /=/,
|
|
91
|
+
alias: "pattern-def"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
pattern: /&/,
|
|
95
|
+
alias: "conjunction"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
pattern: /~/,
|
|
99
|
+
alias: "exception"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
pattern: /\?/,
|
|
103
|
+
alias: "optionality"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
pattern: /[[\]]/,
|
|
107
|
+
alias: "repetition"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
pattern: /[{}]/,
|
|
111
|
+
alias: "variation"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
pattern: /[+_]/,
|
|
115
|
+
alias: "sequence"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
pattern: /\.{2,3}/,
|
|
119
|
+
alias: "span"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"field-capture": [
|
|
123
|
+
{
|
|
124
|
+
pattern: /([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,
|
|
125
|
+
lookbehind: !0,
|
|
126
|
+
inside: {
|
|
127
|
+
"field-name": {
|
|
128
|
+
pattern: /[a-zA-Z0-9\-.]+/,
|
|
129
|
+
alias: "variable"
|
|
130
|
+
},
|
|
131
|
+
colon: /:/
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
pattern: /[a-zA-Z0-9\-.]+\s*:/,
|
|
136
|
+
inside: {
|
|
137
|
+
"field-name": {
|
|
138
|
+
pattern: /[a-zA-Z0-9\-.]+/,
|
|
139
|
+
alias: "variable"
|
|
140
|
+
},
|
|
141
|
+
colon: /:/
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
punctuation: /[:;,()]/,
|
|
146
|
+
name: /[a-zA-Z0-9\-.]+/
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
return i;
|
|
150
|
+
}
|
|
151
|
+
var p = u();
|
|
152
|
+
const c = /* @__PURE__ */ l(p), m = /* @__PURE__ */ d({
|
|
153
|
+
__proto__: null,
|
|
154
|
+
default: c
|
|
155
|
+
}, [p]);
|
|
156
|
+
export {
|
|
157
|
+
m as n
|
|
158
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { g } from "./index-Sj89RFCY.js";
|
|
2
|
+
function d(t, i) {
|
|
3
|
+
for (var r = 0; r < i.length; r++) {
|
|
4
|
+
const e = i[r];
|
|
5
|
+
if (typeof e != "string" && !Array.isArray(e)) {
|
|
6
|
+
for (const n in e)
|
|
7
|
+
if (n !== "default" && !(n in t)) {
|
|
8
|
+
const o = Object.getOwnPropertyDescriptor(e, n);
|
|
9
|
+
o && Object.defineProperty(t, n, o.get ? o : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => e[n]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var a, s;
|
|
19
|
+
function l() {
|
|
20
|
+
if (s) return a;
|
|
21
|
+
s = 1, a = t, t.displayName = "nginx", t.aliases = [];
|
|
22
|
+
function t(i) {
|
|
23
|
+
(function(r) {
|
|
24
|
+
var e = /\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;
|
|
25
|
+
r.languages.nginx = {
|
|
26
|
+
comment: {
|
|
27
|
+
pattern: /(^|[\s{};])#.*/,
|
|
28
|
+
lookbehind: !0,
|
|
29
|
+
greedy: !0
|
|
30
|
+
},
|
|
31
|
+
directive: {
|
|
32
|
+
pattern: /(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,
|
|
33
|
+
lookbehind: !0,
|
|
34
|
+
greedy: !0,
|
|
35
|
+
inside: {
|
|
36
|
+
string: {
|
|
37
|
+
pattern: /((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,
|
|
38
|
+
lookbehind: !0,
|
|
39
|
+
greedy: !0,
|
|
40
|
+
inside: {
|
|
41
|
+
escape: {
|
|
42
|
+
pattern: /\\["'\\nrt]/,
|
|
43
|
+
alias: "entity"
|
|
44
|
+
},
|
|
45
|
+
variable: e
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
comment: {
|
|
49
|
+
pattern: /(\s)#.*/,
|
|
50
|
+
lookbehind: !0,
|
|
51
|
+
greedy: !0
|
|
52
|
+
},
|
|
53
|
+
keyword: {
|
|
54
|
+
pattern: /^\S+/,
|
|
55
|
+
greedy: !0
|
|
56
|
+
},
|
|
57
|
+
// other patterns
|
|
58
|
+
boolean: {
|
|
59
|
+
pattern: /(\s)(?:off|on)(?!\S)/,
|
|
60
|
+
lookbehind: !0
|
|
61
|
+
},
|
|
62
|
+
number: {
|
|
63
|
+
pattern: /(\s)\d+[a-z]*(?!\S)/i,
|
|
64
|
+
lookbehind: !0
|
|
65
|
+
},
|
|
66
|
+
variable: e
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
punctuation: /[{};]/
|
|
70
|
+
};
|
|
71
|
+
})(i);
|
|
72
|
+
}
|
|
73
|
+
return a;
|
|
74
|
+
}
|
|
75
|
+
var u = l();
|
|
76
|
+
const p = /* @__PURE__ */ g(u), f = /* @__PURE__ */ d({
|
|
77
|
+
__proto__: null,
|
|
78
|
+
default: p
|
|
79
|
+
}, [u]);
|
|
80
|
+
export {
|
|
81
|
+
f as n
|
|
82
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { g as c } from "./index-Sj89RFCY.js";
|
|
2
|
+
function u(e, n) {
|
|
3
|
+
for (var i = 0; i < n.length; i++) {
|
|
4
|
+
const t = n[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 a, d;
|
|
19
|
+
function f() {
|
|
20
|
+
if (d) return a;
|
|
21
|
+
d = 1, a = e, e.displayName = "nim", e.aliases = [];
|
|
22
|
+
function e(n) {
|
|
23
|
+
n.languages.nim = {
|
|
24
|
+
comment: {
|
|
25
|
+
pattern: /#.*/,
|
|
26
|
+
greedy: !0
|
|
27
|
+
},
|
|
28
|
+
string: {
|
|
29
|
+
// Double-quoted strings can be prefixed by an identifier (Generalized raw string literals)
|
|
30
|
+
pattern: /(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,
|
|
31
|
+
greedy: !0
|
|
32
|
+
},
|
|
33
|
+
char: {
|
|
34
|
+
// Character literals are handled specifically to prevent issues with numeric type suffixes
|
|
35
|
+
pattern: /'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,
|
|
36
|
+
greedy: !0
|
|
37
|
+
},
|
|
38
|
+
function: {
|
|
39
|
+
pattern: /(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,
|
|
40
|
+
greedy: !0,
|
|
41
|
+
inside: {
|
|
42
|
+
operator: /\*$/
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
// We don't want to highlight operators (and anything really) inside backticks
|
|
46
|
+
identifier: {
|
|
47
|
+
pattern: /`[^`\r\n]+`/,
|
|
48
|
+
greedy: !0,
|
|
49
|
+
inside: {
|
|
50
|
+
punctuation: /`/
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
// The negative look ahead prevents wrong highlighting of the .. operator
|
|
54
|
+
number: /\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,
|
|
55
|
+
keyword: /\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,
|
|
56
|
+
operator: {
|
|
57
|
+
// Look behind and look ahead prevent wrong highlighting of punctuations [. .] {. .} (. .)
|
|
58
|
+
// but allow the slice operator .. to take precedence over them
|
|
59
|
+
// One can define his own operators in Nim so all combination of operators might be an operator.
|
|
60
|
+
pattern: /(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,
|
|
61
|
+
lookbehind: !0
|
|
62
|
+
},
|
|
63
|
+
punctuation: /[({\[]\.|\.[)}\]]|[`(){}\[\],:]/
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return a;
|
|
67
|
+
}
|
|
68
|
+
var s = f();
|
|
69
|
+
const p = /* @__PURE__ */ c(s), l = /* @__PURE__ */ u({
|
|
70
|
+
__proto__: null,
|
|
71
|
+
default: p
|
|
72
|
+
}, [s]);
|
|
73
|
+
export {
|
|
74
|
+
l as n
|
|
75
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { g as u } from "./index-Sj89RFCY.js";
|
|
2
|
+
function g(t, e) {
|
|
3
|
+
for (var i = 0; i < e.length; i++) {
|
|
4
|
+
const r = e[i];
|
|
5
|
+
if (typeof r != "string" && !Array.isArray(r)) {
|
|
6
|
+
for (const n in r)
|
|
7
|
+
if (n !== "default" && !(n in t)) {
|
|
8
|
+
const a = Object.getOwnPropertyDescriptor(r, n);
|
|
9
|
+
a && Object.defineProperty(t, n, a.get ? a : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => r[n]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var s, o;
|
|
19
|
+
function p() {
|
|
20
|
+
if (o) return s;
|
|
21
|
+
o = 1, s = t, t.displayName = "nix", t.aliases = [];
|
|
22
|
+
function t(e) {
|
|
23
|
+
e.languages.nix = {
|
|
24
|
+
comment: {
|
|
25
|
+
pattern: /\/\*[\s\S]*?\*\/|#.*/,
|
|
26
|
+
greedy: !0
|
|
27
|
+
},
|
|
28
|
+
string: {
|
|
29
|
+
pattern: /"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,
|
|
30
|
+
greedy: !0,
|
|
31
|
+
inside: {
|
|
32
|
+
interpolation: {
|
|
33
|
+
// The lookbehind ensures the ${} is not preceded by \ or ''
|
|
34
|
+
pattern: /(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,
|
|
35
|
+
lookbehind: !0,
|
|
36
|
+
inside: null
|
|
37
|
+
// see below
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
url: [
|
|
42
|
+
/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,
|
|
43
|
+
{
|
|
44
|
+
pattern: /([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,
|
|
45
|
+
lookbehind: !0
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
antiquotation: {
|
|
49
|
+
pattern: /\$(?=\{)/,
|
|
50
|
+
alias: "important"
|
|
51
|
+
},
|
|
52
|
+
number: /\b\d+\b/,
|
|
53
|
+
keyword: /\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,
|
|
54
|
+
function: /\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,
|
|
55
|
+
boolean: /\b(?:false|true)\b/,
|
|
56
|
+
operator: /[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,
|
|
57
|
+
punctuation: /[{}()[\].,:;]/
|
|
58
|
+
}, e.languages.nix.string.inside.interpolation.inside = e.languages.nix;
|
|
59
|
+
}
|
|
60
|
+
return s;
|
|
61
|
+
}
|
|
62
|
+
var l = p();
|
|
63
|
+
const c = /* @__PURE__ */ u(l), f = /* @__PURE__ */ g({
|
|
64
|
+
__proto__: null,
|
|
65
|
+
default: c
|
|
66
|
+
}, [l]);
|
|
67
|
+
export {
|
|
68
|
+
f as n
|
|
69
|
+
};
|