repl-sdk 1.0.0 → 1.0.1
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/apl-fqmucPXA.js +141 -0
- package/dist/apl-fqmucPXA.js.map +1 -0
- package/dist/asciiarmor-DucZyvP0.js +57 -0
- package/dist/asciiarmor-DucZyvP0.js.map +1 -0
- package/dist/asn1-BnOEsgAm.js +145 -0
- package/dist/asn1-BnOEsgAm.js.map +1 -0
- package/dist/assets/{tar-worker-kdkltuRC.js → tar-worker-CxTcoQcr.js} +1 -6
- package/dist/assets/{tar-worker-kdkltuRC.js.map → tar-worker-CxTcoQcr.js.map} +1 -1
- package/dist/asterisk-QAlztEwS.js +346 -0
- package/dist/asterisk-QAlztEwS.js.map +1 -0
- package/dist/brainfuck-DZVCuF_t.js +54 -0
- package/dist/brainfuck-DZVCuF_t.js.map +1 -0
- package/dist/clike-CTYGlS6x.js +800 -0
- package/dist/clike-CTYGlS6x.js.map +1 -0
- package/dist/clojure-BhXMqnxz.js +850 -0
- package/dist/clojure-BhXMqnxz.js.map +1 -0
- package/dist/cmake-BGaNd9E7.js +72 -0
- package/dist/cmake-BGaNd9E7.js.map +1 -0
- package/dist/cobol-4yqQntpt.js +121 -0
- package/dist/cobol-4yqQntpt.js.map +1 -0
- package/dist/codemirror-De3S70Np.js +2912 -0
- package/dist/codemirror-De3S70Np.js.map +1 -0
- package/dist/coffeescript-D2dXvhEc.js +309 -0
- package/dist/coffeescript-D2dXvhEc.js.map +1 -0
- package/dist/commonlisp-CF_VNHQR.js +131 -0
- package/dist/commonlisp-CF_VNHQR.js.map +1 -0
- package/dist/crystal-DyuLTqLs.js +399 -0
- package/dist/crystal-DyuLTqLs.js.map +1 -0
- package/dist/css-DkSyTW67.js +1773 -0
- package/dist/css-DkSyTW67.js.map +1 -0
- package/dist/cypher-Dlu_3r4V.js +122 -0
- package/dist/cypher-Dlu_3r4V.js.map +1 -0
- package/dist/d-UURgV0Ux.js +180 -0
- package/dist/d-UURgV0Ux.js.map +1 -0
- package/dist/diff-B_Bi2Crb.js +26 -0
- package/dist/diff-B_Bi2Crb.js.map +1 -0
- package/dist/dockerfile-Bvk733Ga.js +202 -0
- package/dist/dockerfile-Bvk733Ga.js.map +1 -0
- package/dist/dtd-Dy74G54E.js +115 -0
- package/dist/dtd-Dy74G54E.js.map +1 -0
- package/dist/dylan-TSb-Nfix.js +315 -0
- package/dist/dylan-TSb-Nfix.js.map +1 -0
- package/dist/ebnf-4fKAGW3a.js +141 -0
- package/dist/ebnf-4fKAGW3a.js.map +1 -0
- package/dist/ecl-B59qGGVg.js +179 -0
- package/dist/ecl-B59qGGVg.js.map +1 -0
- package/dist/eiffel-Dze7nlu3.js +135 -0
- package/dist/eiffel-Dze7nlu3.js.map +1 -0
- package/dist/elm-DG7jkhNZ.js +177 -0
- package/dist/elm-DG7jkhNZ.js.map +1 -0
- package/dist/erlang-BO6gOnGA.js +675 -0
- package/dist/erlang-BO6gOnGA.js.map +1 -0
- package/dist/factor-CMxFHDqz.js +66 -0
- package/dist/factor-CMxFHDqz.js.map +1 -0
- package/dist/fcl-CDDUNjTj.js +142 -0
- package/dist/fcl-CDDUNjTj.js.map +1 -0
- package/dist/forth-B9D2JCeE.js +117 -0
- package/dist/forth-B9D2JCeE.js.map +1 -0
- package/dist/fortran-CAG2BFbe.js +468 -0
- package/dist/fortran-CAG2BFbe.js.map +1 -0
- package/dist/gas-0Aw8zDr5.js +294 -0
- package/dist/gas-0Aw8zDr5.js.map +1 -0
- package/dist/gherkin-DhZlEZiy.js +116 -0
- package/dist/gherkin-DhZlEZiy.js.map +1 -0
- package/dist/{gjs-CzFzkEFv.js → gjs-DfguZDLq.js} +4 -4
- package/dist/gjs-DfguZDLq.js.map +1 -0
- package/dist/{gmd-D9OXs2v3.js → gmd-Yas-Oo8k.js} +3 -6
- package/dist/gmd-Yas-Oo8k.js.map +1 -0
- package/dist/groovy-CpwJiBl7.js +224 -0
- package/dist/groovy-CpwJiBl7.js.map +1 -0
- package/dist/haskell-ySd-OUo8.js +460 -0
- package/dist/haskell-ySd-OUo8.js.map +1 -0
- package/dist/haxe-7MlzfeYV.js +515 -0
- package/dist/haxe-7MlzfeYV.js.map +1 -0
- package/dist/{hbs-CuhWjffM.js → hbs-CxcmWxSJ.js} +2 -2
- package/dist/{hbs-CuhWjffM.js.map → hbs-CxcmWxSJ.js.map} +1 -1
- package/dist/http-BqypyemW.js +80 -0
- package/dist/http-BqypyemW.js.map +1 -0
- package/dist/idl-4HIGJlDI.js +986 -0
- package/dist/idl-4HIGJlDI.js.map +1 -0
- package/dist/index-B3Meoznj.js +118 -0
- package/dist/index-B3Meoznj.js.map +1 -0
- package/dist/index-BQyfDUUx.js +692 -0
- package/dist/index-BQyfDUUx.js.map +1 -0
- package/dist/index-BRDroAD8.js +305 -0
- package/dist/index-BRDroAD8.js.map +1 -0
- package/dist/index-BRMAzRyM.js +179 -0
- package/dist/index-BRMAzRyM.js.map +1 -0
- package/dist/index-Bb8uYQgv.js +927 -0
- package/dist/index-Bb8uYQgv.js.map +1 -0
- package/dist/index-BlOjO66K.js +17618 -0
- package/dist/index-BlOjO66K.js.map +1 -0
- package/dist/index-BoGWnSNL.js +706 -0
- package/dist/index-BoGWnSNL.js.map +1 -0
- package/dist/index-BsRrEiOu.js +98 -0
- package/dist/index-BsRrEiOu.js.map +1 -0
- package/dist/index-C2sFZMth.js +391 -0
- package/dist/index-C2sFZMth.js.map +1 -0
- package/dist/index-C7xwOjmS.js +291 -0
- package/dist/index-C7xwOjmS.js.map +1 -0
- package/dist/index-CA3lFUx6.js +315 -0
- package/dist/index-CA3lFUx6.js.map +1 -0
- package/dist/index-CB-pPTIf.js +98 -0
- package/dist/index-CB-pPTIf.js.map +1 -0
- package/dist/index-CCa6x1FE.js +386 -0
- package/dist/index-CCa6x1FE.js.map +1 -0
- package/dist/index-CD4DINI1.js +158 -0
- package/dist/index-CD4DINI1.js.map +1 -0
- package/dist/index-CE0B_fcG.js +328 -0
- package/dist/index-CE0B_fcG.js.map +1 -0
- package/dist/{index-CUWCqMoD.js → index-CVGAEPMV.js} +33 -27
- package/dist/index-CVGAEPMV.js.map +1 -0
- package/dist/index-CmaT2afn.js +332 -0
- package/dist/index-CmaT2afn.js.map +1 -0
- package/dist/index-D8sUxXp5.js +83 -0
- package/dist/index-D8sUxXp5.js.map +1 -0
- package/dist/index-DIz8Vpn-.js +737 -0
- package/dist/index-DIz8Vpn-.js.map +1 -0
- package/dist/index-DNP1xT-S.js +408 -0
- package/dist/index-DNP1xT-S.js.map +1 -0
- package/dist/index-DOAqdvnQ.js +862 -0
- package/dist/index-DOAqdvnQ.js.map +1 -0
- package/dist/index-DVUMFbgi.js +152 -0
- package/dist/index-DVUMFbgi.js.map +1 -0
- package/dist/index-VeTBKRVd.js +83 -0
- package/dist/index-VeTBKRVd.js.map +1 -0
- package/dist/index-dXZeR7Bx.js +1767 -0
- package/dist/index-dXZeR7Bx.js.map +1 -0
- package/dist/index-gtqbIb6T.js +62 -0
- package/dist/index-gtqbIb6T.js.map +1 -0
- package/dist/index-pN_pUAQ7.js +2426 -0
- package/dist/index-pN_pUAQ7.js.map +1 -0
- package/dist/index-wasu5VX0.js +1150 -0
- package/dist/index-wasu5VX0.js.map +1 -0
- package/dist/javascript-Bt8B7yTi.js +993 -0
- package/dist/javascript-Bt8B7yTi.js.map +1 -0
- package/dist/julia-Bs6JJhYG.js +408 -0
- package/dist/julia-Bs6JJhYG.js.map +1 -0
- package/dist/livescript-DmzgM3Yt.js +297 -0
- package/dist/livescript-DmzgM3Yt.js.map +1 -0
- package/dist/lua-8cJgIlqe.js +257 -0
- package/dist/lua-8cJgIlqe.js.map +1 -0
- package/dist/mathematica-DNLOL9PQ.js +111 -0
- package/dist/mathematica-DNLOL9PQ.js.map +1 -0
- package/dist/mbox-Ga7d4MMN.js +118 -0
- package/dist/mbox-Ga7d4MMN.js.map +1 -0
- package/dist/mirc-Dma3B8rS.js +108 -0
- package/dist/mirc-Dma3B8rS.js.map +1 -0
- package/dist/mllike-DHn7xckP.js +335 -0
- package/dist/mllike-DHn7xckP.js.map +1 -0
- package/dist/modelica-0d55jYY0.js +148 -0
- package/dist/modelica-0d55jYY0.js.map +1 -0
- package/dist/mscgen-DdqZYINH.js +136 -0
- package/dist/mscgen-DdqZYINH.js.map +1 -0
- package/dist/mumps-Btr8VblO.js +94 -0
- package/dist/mumps-Btr8VblO.js.map +1 -0
- package/dist/nginx-DTDtBDVN.js +142 -0
- package/dist/nginx-DTDtBDVN.js.map +1 -0
- package/dist/nsis-3zG7tgur.js +63 -0
- package/dist/nsis-3zG7tgur.js.map +1 -0
- package/dist/ntriples-CvgOYMpL.js +154 -0
- package/dist/ntriples-CvgOYMpL.js.map +1 -0
- package/dist/octave-DYBj3-tl.js +201 -0
- package/dist/octave-DYBj3-tl.js.map +1 -0
- package/dist/oz-R_e8WMIi.js +232 -0
- package/dist/oz-R_e8WMIi.js.map +1 -0
- package/dist/parse-CAqQaKsh.js +21685 -0
- package/dist/parse-CAqQaKsh.js.map +1 -0
- package/dist/pascal-GD8iposT.js +106 -0
- package/dist/pascal-GD8iposT.js.map +1 -0
- package/dist/perl-DL9mHpoi.js +1106 -0
- package/dist/perl-DL9mHpoi.js.map +1 -0
- package/dist/pig-C_4T4YIV.js +102 -0
- package/dist/pig-C_4T4YIV.js.map +1 -0
- package/dist/powershell-B0suO7Vd.js +329 -0
- package/dist/powershell-B0suO7Vd.js.map +1 -0
- package/dist/properties-BR-vP1aU.js +59 -0
- package/dist/properties-BR-vP1aU.js.map +1 -0
- package/dist/protobuf-BxgpyhoW.js +78 -0
- package/dist/protobuf-BxgpyhoW.js.map +1 -0
- package/dist/pug-vHnWR0UE.js +406 -0
- package/dist/pug-vHnWR0UE.js.map +1 -0
- package/dist/puppet-Bdao66PW.js +138 -0
- package/dist/puppet-Bdao66PW.js.map +1 -0
- package/dist/python-BFGRmuZ9.js +427 -0
- package/dist/python-BFGRmuZ9.js.map +1 -0
- package/dist/q-CrbCVq4a.js +132 -0
- package/dist/q-CrbCVq4a.js.map +1 -0
- package/dist/r-V7nswm59.js +171 -0
- package/dist/r-V7nswm59.js.map +1 -0
- package/dist/repl-sdk.js +7 -0
- package/dist/repl-sdk.js.map +1 -0
- package/dist/rpm-C-DLY-If.js +110 -0
- package/dist/rpm-C-DLY-If.js.map +1 -0
- package/dist/ruby-JDKLJNK0.js +331 -0
- package/dist/ruby-JDKLJNK0.js.map +1 -0
- package/dist/sas-D2UG-yhZ.js +208 -0
- package/dist/sas-D2UG-yhZ.js.map +1 -0
- package/dist/scheme-BKzrkGJD.js +223 -0
- package/dist/scheme-BKzrkGJD.js.map +1 -0
- package/dist/shell-BlsXDxCn.js +223 -0
- package/dist/shell-BlsXDxCn.js.map +1 -0
- package/dist/sieve-CjwBwOY5.js +136 -0
- package/dist/sieve-CjwBwOY5.js.map +1 -0
- package/dist/simple-mode-DMneyfDu.js +131 -0
- package/dist/simple-mode-DMneyfDu.js.map +1 -0
- package/dist/smalltalk-BOIGQuhN.js +122 -0
- package/dist/smalltalk-BOIGQuhN.js.map +1 -0
- package/dist/solr-CwD7U71z.js +70 -0
- package/dist/solr-CwD7U71z.js.map +1 -0
- package/dist/sparql-DYskk2vE.js +250 -0
- package/dist/sparql-DYskk2vE.js.map +1 -0
- package/dist/spreadsheet-Bgtt3oLP.js +88 -0
- package/dist/spreadsheet-Bgtt3oLP.js.map +1 -0
- package/dist/sql-Cei9CMfk.js +343 -0
- package/dist/sql-Cei9CMfk.js.map +1 -0
- package/dist/stex-C1nZSzAw.js +231 -0
- package/dist/stex-C1nZSzAw.js.map +1 -0
- package/dist/stylus-BkS-boTH.js +566 -0
- package/dist/stylus-BkS-boTH.js.map +1 -0
- package/dist/swift-FRZi1uvB.js +292 -0
- package/dist/swift-FRZi1uvB.js.map +1 -0
- package/dist/tcl-CUcaCdmq.js +115 -0
- package/dist/tcl-CUcaCdmq.js.map +1 -0
- package/dist/textile-BnFpjsrl.js +415 -0
- package/dist/textile-BnFpjsrl.js.map +1 -0
- package/dist/tiddlywiki-CjprD-Qp.js +219 -0
- package/dist/tiddlywiki-CjprD-Qp.js.map +1 -0
- package/dist/tiki-DK9DOeWn.js +269 -0
- package/dist/tiki-DK9DOeWn.js.map +1 -0
- package/dist/toml-BOuWGMcf.js +77 -0
- package/dist/toml-BOuWGMcf.js.map +1 -0
- package/dist/troff-E1bJ0PPL.js +62 -0
- package/dist/troff-E1bJ0PPL.js.map +1 -0
- package/dist/ttcn-cfg-Dc39-fIP.js +134 -0
- package/dist/ttcn-cfg-Dc39-fIP.js.map +1 -0
- package/dist/ttcn-tKd4HLu4.js +193 -0
- package/dist/ttcn-tKd4HLu4.js.map +1 -0
- package/dist/turtle-Dq7-1WAf.js +125 -0
- package/dist/turtle-Dq7-1WAf.js.map +1 -0
- package/dist/vb-Dp90gtsv.js +197 -0
- package/dist/vb-Dp90gtsv.js.map +1 -0
- package/dist/vbscript-Bfn8O8I7.js +479 -0
- package/dist/vbscript-Bfn8O8I7.js.map +1 -0
- package/dist/velocity-BwIZK1TH.js +150 -0
- package/dist/velocity-BwIZK1TH.js.map +1 -0
- package/dist/verilog-CnT9bMk0.js +430 -0
- package/dist/verilog-CnT9bMk0.js.map +1 -0
- package/dist/vhdl-DCkMIyT9.js +159 -0
- package/dist/vhdl-DCkMIyT9.js.map +1 -0
- package/dist/webidl-BTLTThCm.js +205 -0
- package/dist/webidl-BTLTThCm.js.map +1 -0
- package/dist/xquery-BrBUuxMR.js +526 -0
- package/dist/xquery-BrBUuxMR.js.map +1 -0
- package/dist/yacas-b5lAVEIl.js +131 -0
- package/dist/yacas-b5lAVEIl.js.map +1 -0
- package/dist/z80-ClgwfNdB.js +93 -0
- package/dist/z80-ClgwfNdB.js.map +1 -0
- package/package.json +10 -11
- package/src/compilers/ember/gjs.js +2 -2
- package/src/compilers/ember/gmd.js +1 -1
- package/src/compilers/markdown.js +1 -1
- package/src/compilers/react.js +15 -3
- package/dist/codemirror-D4aIVflZ.js +0 -110
- package/dist/codemirror-D4aIVflZ.js.map +0 -1
- package/dist/gjs-CzFzkEFv.js.map +0 -1
- package/dist/gmd-D9OXs2v3.js.map +0 -1
- package/dist/index-CUWCqMoD.js.map +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/parse-aBKk9rfS.js +0 -328
- package/dist/parse-aBKk9rfS.js.map +0 -1
|
@@ -0,0 +1,850 @@
|
|
|
1
|
+
var atoms = ["false", "nil", "true"];
|
|
2
|
+
var specialForms = [
|
|
3
|
+
".",
|
|
4
|
+
"catch",
|
|
5
|
+
"def",
|
|
6
|
+
"do",
|
|
7
|
+
"if",
|
|
8
|
+
"monitor-enter",
|
|
9
|
+
"monitor-exit",
|
|
10
|
+
"new",
|
|
11
|
+
"quote",
|
|
12
|
+
"recur",
|
|
13
|
+
"set!",
|
|
14
|
+
"throw",
|
|
15
|
+
"try",
|
|
16
|
+
"var"
|
|
17
|
+
];
|
|
18
|
+
var coreSymbols = [
|
|
19
|
+
"*",
|
|
20
|
+
"*'",
|
|
21
|
+
"*1",
|
|
22
|
+
"*2",
|
|
23
|
+
"*3",
|
|
24
|
+
"*agent*",
|
|
25
|
+
"*allow-unresolved-vars*",
|
|
26
|
+
"*assert*",
|
|
27
|
+
"*clojure-version*",
|
|
28
|
+
"*command-line-args*",
|
|
29
|
+
"*compile-files*",
|
|
30
|
+
"*compile-path*",
|
|
31
|
+
"*compiler-options*",
|
|
32
|
+
"*data-readers*",
|
|
33
|
+
"*default-data-reader-fn*",
|
|
34
|
+
"*e",
|
|
35
|
+
"*err*",
|
|
36
|
+
"*file*",
|
|
37
|
+
"*flush-on-newline*",
|
|
38
|
+
"*fn-loader*",
|
|
39
|
+
"*in*",
|
|
40
|
+
"*math-context*",
|
|
41
|
+
"*ns*",
|
|
42
|
+
"*out*",
|
|
43
|
+
"*print-dup*",
|
|
44
|
+
"*print-length*",
|
|
45
|
+
"*print-level*",
|
|
46
|
+
"*print-meta*",
|
|
47
|
+
"*print-namespace-maps*",
|
|
48
|
+
"*print-readably*",
|
|
49
|
+
"*read-eval*",
|
|
50
|
+
"*reader-resolver*",
|
|
51
|
+
"*source-path*",
|
|
52
|
+
"*suppress-read*",
|
|
53
|
+
"*unchecked-math*",
|
|
54
|
+
"*use-context-classloader*",
|
|
55
|
+
"*verbose-defrecords*",
|
|
56
|
+
"*warn-on-reflection*",
|
|
57
|
+
"+",
|
|
58
|
+
"+'",
|
|
59
|
+
"-",
|
|
60
|
+
"-'",
|
|
61
|
+
"->",
|
|
62
|
+
"->>",
|
|
63
|
+
"->ArrayChunk",
|
|
64
|
+
"->Eduction",
|
|
65
|
+
"->Vec",
|
|
66
|
+
"->VecNode",
|
|
67
|
+
"->VecSeq",
|
|
68
|
+
"-cache-protocol-fn",
|
|
69
|
+
"-reset-methods",
|
|
70
|
+
"..",
|
|
71
|
+
"/",
|
|
72
|
+
"<",
|
|
73
|
+
"<=",
|
|
74
|
+
"=",
|
|
75
|
+
"==",
|
|
76
|
+
">",
|
|
77
|
+
">=",
|
|
78
|
+
"EMPTY-NODE",
|
|
79
|
+
"Inst",
|
|
80
|
+
"StackTraceElement->vec",
|
|
81
|
+
"Throwable->map",
|
|
82
|
+
"accessor",
|
|
83
|
+
"aclone",
|
|
84
|
+
"add-classpath",
|
|
85
|
+
"add-watch",
|
|
86
|
+
"agent",
|
|
87
|
+
"agent-error",
|
|
88
|
+
"agent-errors",
|
|
89
|
+
"aget",
|
|
90
|
+
"alength",
|
|
91
|
+
"alias",
|
|
92
|
+
"all-ns",
|
|
93
|
+
"alter",
|
|
94
|
+
"alter-meta!",
|
|
95
|
+
"alter-var-root",
|
|
96
|
+
"amap",
|
|
97
|
+
"ancestors",
|
|
98
|
+
"and",
|
|
99
|
+
"any?",
|
|
100
|
+
"apply",
|
|
101
|
+
"areduce",
|
|
102
|
+
"array-map",
|
|
103
|
+
"as->",
|
|
104
|
+
"aset",
|
|
105
|
+
"aset-boolean",
|
|
106
|
+
"aset-byte",
|
|
107
|
+
"aset-char",
|
|
108
|
+
"aset-double",
|
|
109
|
+
"aset-float",
|
|
110
|
+
"aset-int",
|
|
111
|
+
"aset-long",
|
|
112
|
+
"aset-short",
|
|
113
|
+
"assert",
|
|
114
|
+
"assoc",
|
|
115
|
+
"assoc!",
|
|
116
|
+
"assoc-in",
|
|
117
|
+
"associative?",
|
|
118
|
+
"atom",
|
|
119
|
+
"await",
|
|
120
|
+
"await-for",
|
|
121
|
+
"await1",
|
|
122
|
+
"bases",
|
|
123
|
+
"bean",
|
|
124
|
+
"bigdec",
|
|
125
|
+
"bigint",
|
|
126
|
+
"biginteger",
|
|
127
|
+
"binding",
|
|
128
|
+
"bit-and",
|
|
129
|
+
"bit-and-not",
|
|
130
|
+
"bit-clear",
|
|
131
|
+
"bit-flip",
|
|
132
|
+
"bit-not",
|
|
133
|
+
"bit-or",
|
|
134
|
+
"bit-set",
|
|
135
|
+
"bit-shift-left",
|
|
136
|
+
"bit-shift-right",
|
|
137
|
+
"bit-test",
|
|
138
|
+
"bit-xor",
|
|
139
|
+
"boolean",
|
|
140
|
+
"boolean-array",
|
|
141
|
+
"boolean?",
|
|
142
|
+
"booleans",
|
|
143
|
+
"bound-fn",
|
|
144
|
+
"bound-fn*",
|
|
145
|
+
"bound?",
|
|
146
|
+
"bounded-count",
|
|
147
|
+
"butlast",
|
|
148
|
+
"byte",
|
|
149
|
+
"byte-array",
|
|
150
|
+
"bytes",
|
|
151
|
+
"bytes?",
|
|
152
|
+
"case",
|
|
153
|
+
"cast",
|
|
154
|
+
"cat",
|
|
155
|
+
"char",
|
|
156
|
+
"char-array",
|
|
157
|
+
"char-escape-string",
|
|
158
|
+
"char-name-string",
|
|
159
|
+
"char?",
|
|
160
|
+
"chars",
|
|
161
|
+
"chunk",
|
|
162
|
+
"chunk-append",
|
|
163
|
+
"chunk-buffer",
|
|
164
|
+
"chunk-cons",
|
|
165
|
+
"chunk-first",
|
|
166
|
+
"chunk-next",
|
|
167
|
+
"chunk-rest",
|
|
168
|
+
"chunked-seq?",
|
|
169
|
+
"class",
|
|
170
|
+
"class?",
|
|
171
|
+
"clear-agent-errors",
|
|
172
|
+
"clojure-version",
|
|
173
|
+
"coll?",
|
|
174
|
+
"comment",
|
|
175
|
+
"commute",
|
|
176
|
+
"comp",
|
|
177
|
+
"comparator",
|
|
178
|
+
"compare",
|
|
179
|
+
"compare-and-set!",
|
|
180
|
+
"compile",
|
|
181
|
+
"complement",
|
|
182
|
+
"completing",
|
|
183
|
+
"concat",
|
|
184
|
+
"cond",
|
|
185
|
+
"cond->",
|
|
186
|
+
"cond->>",
|
|
187
|
+
"condp",
|
|
188
|
+
"conj",
|
|
189
|
+
"conj!",
|
|
190
|
+
"cons",
|
|
191
|
+
"constantly",
|
|
192
|
+
"construct-proxy",
|
|
193
|
+
"contains?",
|
|
194
|
+
"count",
|
|
195
|
+
"counted?",
|
|
196
|
+
"create-ns",
|
|
197
|
+
"create-struct",
|
|
198
|
+
"cycle",
|
|
199
|
+
"dec",
|
|
200
|
+
"dec'",
|
|
201
|
+
"decimal?",
|
|
202
|
+
"declare",
|
|
203
|
+
"dedupe",
|
|
204
|
+
"default-data-readers",
|
|
205
|
+
"definline",
|
|
206
|
+
"definterface",
|
|
207
|
+
"defmacro",
|
|
208
|
+
"defmethod",
|
|
209
|
+
"defmulti",
|
|
210
|
+
"defn",
|
|
211
|
+
"defn-",
|
|
212
|
+
"defonce",
|
|
213
|
+
"defprotocol",
|
|
214
|
+
"defrecord",
|
|
215
|
+
"defstruct",
|
|
216
|
+
"deftype",
|
|
217
|
+
"delay",
|
|
218
|
+
"delay?",
|
|
219
|
+
"deliver",
|
|
220
|
+
"denominator",
|
|
221
|
+
"deref",
|
|
222
|
+
"derive",
|
|
223
|
+
"descendants",
|
|
224
|
+
"destructure",
|
|
225
|
+
"disj",
|
|
226
|
+
"disj!",
|
|
227
|
+
"dissoc",
|
|
228
|
+
"dissoc!",
|
|
229
|
+
"distinct",
|
|
230
|
+
"distinct?",
|
|
231
|
+
"doall",
|
|
232
|
+
"dorun",
|
|
233
|
+
"doseq",
|
|
234
|
+
"dosync",
|
|
235
|
+
"dotimes",
|
|
236
|
+
"doto",
|
|
237
|
+
"double",
|
|
238
|
+
"double-array",
|
|
239
|
+
"double?",
|
|
240
|
+
"doubles",
|
|
241
|
+
"drop",
|
|
242
|
+
"drop-last",
|
|
243
|
+
"drop-while",
|
|
244
|
+
"eduction",
|
|
245
|
+
"empty",
|
|
246
|
+
"empty?",
|
|
247
|
+
"ensure",
|
|
248
|
+
"ensure-reduced",
|
|
249
|
+
"enumeration-seq",
|
|
250
|
+
"error-handler",
|
|
251
|
+
"error-mode",
|
|
252
|
+
"eval",
|
|
253
|
+
"even?",
|
|
254
|
+
"every-pred",
|
|
255
|
+
"every?",
|
|
256
|
+
"ex-data",
|
|
257
|
+
"ex-info",
|
|
258
|
+
"extend",
|
|
259
|
+
"extend-protocol",
|
|
260
|
+
"extend-type",
|
|
261
|
+
"extenders",
|
|
262
|
+
"extends?",
|
|
263
|
+
"false?",
|
|
264
|
+
"ffirst",
|
|
265
|
+
"file-seq",
|
|
266
|
+
"filter",
|
|
267
|
+
"filterv",
|
|
268
|
+
"find",
|
|
269
|
+
"find-keyword",
|
|
270
|
+
"find-ns",
|
|
271
|
+
"find-protocol-impl",
|
|
272
|
+
"find-protocol-method",
|
|
273
|
+
"find-var",
|
|
274
|
+
"first",
|
|
275
|
+
"flatten",
|
|
276
|
+
"float",
|
|
277
|
+
"float-array",
|
|
278
|
+
"float?",
|
|
279
|
+
"floats",
|
|
280
|
+
"flush",
|
|
281
|
+
"fn",
|
|
282
|
+
"fn?",
|
|
283
|
+
"fnext",
|
|
284
|
+
"fnil",
|
|
285
|
+
"for",
|
|
286
|
+
"force",
|
|
287
|
+
"format",
|
|
288
|
+
"frequencies",
|
|
289
|
+
"future",
|
|
290
|
+
"future-call",
|
|
291
|
+
"future-cancel",
|
|
292
|
+
"future-cancelled?",
|
|
293
|
+
"future-done?",
|
|
294
|
+
"future?",
|
|
295
|
+
"gen-class",
|
|
296
|
+
"gen-interface",
|
|
297
|
+
"gensym",
|
|
298
|
+
"get",
|
|
299
|
+
"get-in",
|
|
300
|
+
"get-method",
|
|
301
|
+
"get-proxy-class",
|
|
302
|
+
"get-thread-bindings",
|
|
303
|
+
"get-validator",
|
|
304
|
+
"group-by",
|
|
305
|
+
"halt-when",
|
|
306
|
+
"hash",
|
|
307
|
+
"hash-combine",
|
|
308
|
+
"hash-map",
|
|
309
|
+
"hash-ordered-coll",
|
|
310
|
+
"hash-set",
|
|
311
|
+
"hash-unordered-coll",
|
|
312
|
+
"ident?",
|
|
313
|
+
"identical?",
|
|
314
|
+
"identity",
|
|
315
|
+
"if-let",
|
|
316
|
+
"if-not",
|
|
317
|
+
"if-some",
|
|
318
|
+
"ifn?",
|
|
319
|
+
"import",
|
|
320
|
+
"in-ns",
|
|
321
|
+
"inc",
|
|
322
|
+
"inc'",
|
|
323
|
+
"indexed?",
|
|
324
|
+
"init-proxy",
|
|
325
|
+
"inst-ms",
|
|
326
|
+
"inst-ms*",
|
|
327
|
+
"inst?",
|
|
328
|
+
"instance?",
|
|
329
|
+
"int",
|
|
330
|
+
"int-array",
|
|
331
|
+
"int?",
|
|
332
|
+
"integer?",
|
|
333
|
+
"interleave",
|
|
334
|
+
"intern",
|
|
335
|
+
"interpose",
|
|
336
|
+
"into",
|
|
337
|
+
"into-array",
|
|
338
|
+
"ints",
|
|
339
|
+
"io!",
|
|
340
|
+
"isa?",
|
|
341
|
+
"iterate",
|
|
342
|
+
"iterator-seq",
|
|
343
|
+
"juxt",
|
|
344
|
+
"keep",
|
|
345
|
+
"keep-indexed",
|
|
346
|
+
"key",
|
|
347
|
+
"keys",
|
|
348
|
+
"keyword",
|
|
349
|
+
"keyword?",
|
|
350
|
+
"last",
|
|
351
|
+
"lazy-cat",
|
|
352
|
+
"lazy-seq",
|
|
353
|
+
"let",
|
|
354
|
+
"letfn",
|
|
355
|
+
"line-seq",
|
|
356
|
+
"list",
|
|
357
|
+
"list*",
|
|
358
|
+
"list?",
|
|
359
|
+
"load",
|
|
360
|
+
"load-file",
|
|
361
|
+
"load-reader",
|
|
362
|
+
"load-string",
|
|
363
|
+
"loaded-libs",
|
|
364
|
+
"locking",
|
|
365
|
+
"long",
|
|
366
|
+
"long-array",
|
|
367
|
+
"longs",
|
|
368
|
+
"loop",
|
|
369
|
+
"macroexpand",
|
|
370
|
+
"macroexpand-1",
|
|
371
|
+
"make-array",
|
|
372
|
+
"make-hierarchy",
|
|
373
|
+
"map",
|
|
374
|
+
"map-entry?",
|
|
375
|
+
"map-indexed",
|
|
376
|
+
"map?",
|
|
377
|
+
"mapcat",
|
|
378
|
+
"mapv",
|
|
379
|
+
"max",
|
|
380
|
+
"max-key",
|
|
381
|
+
"memfn",
|
|
382
|
+
"memoize",
|
|
383
|
+
"merge",
|
|
384
|
+
"merge-with",
|
|
385
|
+
"meta",
|
|
386
|
+
"method-sig",
|
|
387
|
+
"methods",
|
|
388
|
+
"min",
|
|
389
|
+
"min-key",
|
|
390
|
+
"mix-collection-hash",
|
|
391
|
+
"mod",
|
|
392
|
+
"munge",
|
|
393
|
+
"name",
|
|
394
|
+
"namespace",
|
|
395
|
+
"namespace-munge",
|
|
396
|
+
"nat-int?",
|
|
397
|
+
"neg-int?",
|
|
398
|
+
"neg?",
|
|
399
|
+
"newline",
|
|
400
|
+
"next",
|
|
401
|
+
"nfirst",
|
|
402
|
+
"nil?",
|
|
403
|
+
"nnext",
|
|
404
|
+
"not",
|
|
405
|
+
"not-any?",
|
|
406
|
+
"not-empty",
|
|
407
|
+
"not-every?",
|
|
408
|
+
"not=",
|
|
409
|
+
"ns",
|
|
410
|
+
"ns-aliases",
|
|
411
|
+
"ns-imports",
|
|
412
|
+
"ns-interns",
|
|
413
|
+
"ns-map",
|
|
414
|
+
"ns-name",
|
|
415
|
+
"ns-publics",
|
|
416
|
+
"ns-refers",
|
|
417
|
+
"ns-resolve",
|
|
418
|
+
"ns-unalias",
|
|
419
|
+
"ns-unmap",
|
|
420
|
+
"nth",
|
|
421
|
+
"nthnext",
|
|
422
|
+
"nthrest",
|
|
423
|
+
"num",
|
|
424
|
+
"number?",
|
|
425
|
+
"numerator",
|
|
426
|
+
"object-array",
|
|
427
|
+
"odd?",
|
|
428
|
+
"or",
|
|
429
|
+
"parents",
|
|
430
|
+
"partial",
|
|
431
|
+
"partition",
|
|
432
|
+
"partition-all",
|
|
433
|
+
"partition-by",
|
|
434
|
+
"pcalls",
|
|
435
|
+
"peek",
|
|
436
|
+
"persistent!",
|
|
437
|
+
"pmap",
|
|
438
|
+
"pop",
|
|
439
|
+
"pop!",
|
|
440
|
+
"pop-thread-bindings",
|
|
441
|
+
"pos-int?",
|
|
442
|
+
"pos?",
|
|
443
|
+
"pr",
|
|
444
|
+
"pr-str",
|
|
445
|
+
"prefer-method",
|
|
446
|
+
"prefers",
|
|
447
|
+
"primitives-classnames",
|
|
448
|
+
"print",
|
|
449
|
+
"print-ctor",
|
|
450
|
+
"print-dup",
|
|
451
|
+
"print-method",
|
|
452
|
+
"print-simple",
|
|
453
|
+
"print-str",
|
|
454
|
+
"printf",
|
|
455
|
+
"println",
|
|
456
|
+
"println-str",
|
|
457
|
+
"prn",
|
|
458
|
+
"prn-str",
|
|
459
|
+
"promise",
|
|
460
|
+
"proxy",
|
|
461
|
+
"proxy-call-with-super",
|
|
462
|
+
"proxy-mappings",
|
|
463
|
+
"proxy-name",
|
|
464
|
+
"proxy-super",
|
|
465
|
+
"push-thread-bindings",
|
|
466
|
+
"pvalues",
|
|
467
|
+
"qualified-ident?",
|
|
468
|
+
"qualified-keyword?",
|
|
469
|
+
"qualified-symbol?",
|
|
470
|
+
"quot",
|
|
471
|
+
"rand",
|
|
472
|
+
"rand-int",
|
|
473
|
+
"rand-nth",
|
|
474
|
+
"random-sample",
|
|
475
|
+
"range",
|
|
476
|
+
"ratio?",
|
|
477
|
+
"rational?",
|
|
478
|
+
"rationalize",
|
|
479
|
+
"re-find",
|
|
480
|
+
"re-groups",
|
|
481
|
+
"re-matcher",
|
|
482
|
+
"re-matches",
|
|
483
|
+
"re-pattern",
|
|
484
|
+
"re-seq",
|
|
485
|
+
"read",
|
|
486
|
+
"read-line",
|
|
487
|
+
"read-string",
|
|
488
|
+
"reader-conditional",
|
|
489
|
+
"reader-conditional?",
|
|
490
|
+
"realized?",
|
|
491
|
+
"record?",
|
|
492
|
+
"reduce",
|
|
493
|
+
"reduce-kv",
|
|
494
|
+
"reduced",
|
|
495
|
+
"reduced?",
|
|
496
|
+
"reductions",
|
|
497
|
+
"ref",
|
|
498
|
+
"ref-history-count",
|
|
499
|
+
"ref-max-history",
|
|
500
|
+
"ref-min-history",
|
|
501
|
+
"ref-set",
|
|
502
|
+
"refer",
|
|
503
|
+
"refer-clojure",
|
|
504
|
+
"reify",
|
|
505
|
+
"release-pending-sends",
|
|
506
|
+
"rem",
|
|
507
|
+
"remove",
|
|
508
|
+
"remove-all-methods",
|
|
509
|
+
"remove-method",
|
|
510
|
+
"remove-ns",
|
|
511
|
+
"remove-watch",
|
|
512
|
+
"repeat",
|
|
513
|
+
"repeatedly",
|
|
514
|
+
"replace",
|
|
515
|
+
"replicate",
|
|
516
|
+
"require",
|
|
517
|
+
"reset!",
|
|
518
|
+
"reset-meta!",
|
|
519
|
+
"reset-vals!",
|
|
520
|
+
"resolve",
|
|
521
|
+
"rest",
|
|
522
|
+
"restart-agent",
|
|
523
|
+
"resultset-seq",
|
|
524
|
+
"reverse",
|
|
525
|
+
"reversible?",
|
|
526
|
+
"rseq",
|
|
527
|
+
"rsubseq",
|
|
528
|
+
"run!",
|
|
529
|
+
"satisfies?",
|
|
530
|
+
"second",
|
|
531
|
+
"select-keys",
|
|
532
|
+
"send",
|
|
533
|
+
"send-off",
|
|
534
|
+
"send-via",
|
|
535
|
+
"seq",
|
|
536
|
+
"seq?",
|
|
537
|
+
"seqable?",
|
|
538
|
+
"seque",
|
|
539
|
+
"sequence",
|
|
540
|
+
"sequential?",
|
|
541
|
+
"set",
|
|
542
|
+
"set-agent-send-executor!",
|
|
543
|
+
"set-agent-send-off-executor!",
|
|
544
|
+
"set-error-handler!",
|
|
545
|
+
"set-error-mode!",
|
|
546
|
+
"set-validator!",
|
|
547
|
+
"set?",
|
|
548
|
+
"short",
|
|
549
|
+
"short-array",
|
|
550
|
+
"shorts",
|
|
551
|
+
"shuffle",
|
|
552
|
+
"shutdown-agents",
|
|
553
|
+
"simple-ident?",
|
|
554
|
+
"simple-keyword?",
|
|
555
|
+
"simple-symbol?",
|
|
556
|
+
"slurp",
|
|
557
|
+
"some",
|
|
558
|
+
"some->",
|
|
559
|
+
"some->>",
|
|
560
|
+
"some-fn",
|
|
561
|
+
"some?",
|
|
562
|
+
"sort",
|
|
563
|
+
"sort-by",
|
|
564
|
+
"sorted-map",
|
|
565
|
+
"sorted-map-by",
|
|
566
|
+
"sorted-set",
|
|
567
|
+
"sorted-set-by",
|
|
568
|
+
"sorted?",
|
|
569
|
+
"special-symbol?",
|
|
570
|
+
"spit",
|
|
571
|
+
"split-at",
|
|
572
|
+
"split-with",
|
|
573
|
+
"str",
|
|
574
|
+
"string?",
|
|
575
|
+
"struct",
|
|
576
|
+
"struct-map",
|
|
577
|
+
"subs",
|
|
578
|
+
"subseq",
|
|
579
|
+
"subvec",
|
|
580
|
+
"supers",
|
|
581
|
+
"swap!",
|
|
582
|
+
"swap-vals!",
|
|
583
|
+
"symbol",
|
|
584
|
+
"symbol?",
|
|
585
|
+
"sync",
|
|
586
|
+
"tagged-literal",
|
|
587
|
+
"tagged-literal?",
|
|
588
|
+
"take",
|
|
589
|
+
"take-last",
|
|
590
|
+
"take-nth",
|
|
591
|
+
"take-while",
|
|
592
|
+
"test",
|
|
593
|
+
"the-ns",
|
|
594
|
+
"thread-bound?",
|
|
595
|
+
"time",
|
|
596
|
+
"to-array",
|
|
597
|
+
"to-array-2d",
|
|
598
|
+
"trampoline",
|
|
599
|
+
"transduce",
|
|
600
|
+
"transient",
|
|
601
|
+
"tree-seq",
|
|
602
|
+
"true?",
|
|
603
|
+
"type",
|
|
604
|
+
"unchecked-add",
|
|
605
|
+
"unchecked-add-int",
|
|
606
|
+
"unchecked-byte",
|
|
607
|
+
"unchecked-char",
|
|
608
|
+
"unchecked-dec",
|
|
609
|
+
"unchecked-dec-int",
|
|
610
|
+
"unchecked-divide-int",
|
|
611
|
+
"unchecked-double",
|
|
612
|
+
"unchecked-float",
|
|
613
|
+
"unchecked-inc",
|
|
614
|
+
"unchecked-inc-int",
|
|
615
|
+
"unchecked-int",
|
|
616
|
+
"unchecked-long",
|
|
617
|
+
"unchecked-multiply",
|
|
618
|
+
"unchecked-multiply-int",
|
|
619
|
+
"unchecked-negate",
|
|
620
|
+
"unchecked-negate-int",
|
|
621
|
+
"unchecked-remainder-int",
|
|
622
|
+
"unchecked-short",
|
|
623
|
+
"unchecked-subtract",
|
|
624
|
+
"unchecked-subtract-int",
|
|
625
|
+
"underive",
|
|
626
|
+
"unquote",
|
|
627
|
+
"unquote-splicing",
|
|
628
|
+
"unreduced",
|
|
629
|
+
"unsigned-bit-shift-right",
|
|
630
|
+
"update",
|
|
631
|
+
"update-in",
|
|
632
|
+
"update-proxy",
|
|
633
|
+
"uri?",
|
|
634
|
+
"use",
|
|
635
|
+
"uuid?",
|
|
636
|
+
"val",
|
|
637
|
+
"vals",
|
|
638
|
+
"var-get",
|
|
639
|
+
"var-set",
|
|
640
|
+
"var?",
|
|
641
|
+
"vary-meta",
|
|
642
|
+
"vec",
|
|
643
|
+
"vector",
|
|
644
|
+
"vector-of",
|
|
645
|
+
"vector?",
|
|
646
|
+
"volatile!",
|
|
647
|
+
"volatile?",
|
|
648
|
+
"vreset!",
|
|
649
|
+
"vswap!",
|
|
650
|
+
"when",
|
|
651
|
+
"when-first",
|
|
652
|
+
"when-let",
|
|
653
|
+
"when-not",
|
|
654
|
+
"when-some",
|
|
655
|
+
"while",
|
|
656
|
+
"with-bindings",
|
|
657
|
+
"with-bindings*",
|
|
658
|
+
"with-in-str",
|
|
659
|
+
"with-loading-context",
|
|
660
|
+
"with-local-vars",
|
|
661
|
+
"with-meta",
|
|
662
|
+
"with-open",
|
|
663
|
+
"with-out-str",
|
|
664
|
+
"with-precision",
|
|
665
|
+
"with-redefs",
|
|
666
|
+
"with-redefs-fn",
|
|
667
|
+
"xml-seq",
|
|
668
|
+
"zero?",
|
|
669
|
+
"zipmap"
|
|
670
|
+
];
|
|
671
|
+
var haveBodyParameter = [
|
|
672
|
+
"->",
|
|
673
|
+
"->>",
|
|
674
|
+
"as->",
|
|
675
|
+
"binding",
|
|
676
|
+
"bound-fn",
|
|
677
|
+
"case",
|
|
678
|
+
"catch",
|
|
679
|
+
"comment",
|
|
680
|
+
"cond",
|
|
681
|
+
"cond->",
|
|
682
|
+
"cond->>",
|
|
683
|
+
"condp",
|
|
684
|
+
"def",
|
|
685
|
+
"definterface",
|
|
686
|
+
"defmethod",
|
|
687
|
+
"defn",
|
|
688
|
+
"defmacro",
|
|
689
|
+
"defprotocol",
|
|
690
|
+
"defrecord",
|
|
691
|
+
"defstruct",
|
|
692
|
+
"deftype",
|
|
693
|
+
"do",
|
|
694
|
+
"doseq",
|
|
695
|
+
"dotimes",
|
|
696
|
+
"doto",
|
|
697
|
+
"extend",
|
|
698
|
+
"extend-protocol",
|
|
699
|
+
"extend-type",
|
|
700
|
+
"fn",
|
|
701
|
+
"for",
|
|
702
|
+
"future",
|
|
703
|
+
"if",
|
|
704
|
+
"if-let",
|
|
705
|
+
"if-not",
|
|
706
|
+
"if-some",
|
|
707
|
+
"let",
|
|
708
|
+
"letfn",
|
|
709
|
+
"locking",
|
|
710
|
+
"loop",
|
|
711
|
+
"ns",
|
|
712
|
+
"proxy",
|
|
713
|
+
"reify",
|
|
714
|
+
"struct-map",
|
|
715
|
+
"some->",
|
|
716
|
+
"some->>",
|
|
717
|
+
"try",
|
|
718
|
+
"when",
|
|
719
|
+
"when-first",
|
|
720
|
+
"when-let",
|
|
721
|
+
"when-not",
|
|
722
|
+
"when-some",
|
|
723
|
+
"while",
|
|
724
|
+
"with-bindings",
|
|
725
|
+
"with-bindings*",
|
|
726
|
+
"with-in-str",
|
|
727
|
+
"with-loading-context",
|
|
728
|
+
"with-local-vars",
|
|
729
|
+
"with-meta",
|
|
730
|
+
"with-open",
|
|
731
|
+
"with-out-str",
|
|
732
|
+
"with-precision",
|
|
733
|
+
"with-redefs",
|
|
734
|
+
"with-redefs-fn"
|
|
735
|
+
];
|
|
736
|
+
var atom = createLookupMap(atoms);
|
|
737
|
+
var specialForm = createLookupMap(specialForms);
|
|
738
|
+
var coreSymbol = createLookupMap(coreSymbols);
|
|
739
|
+
var hasBodyParameter = createLookupMap(haveBodyParameter);
|
|
740
|
+
var delimiter = /^(?:[\\\[\]\s"(),;@^`{}~]|$)/;
|
|
741
|
+
var numberLiteral = /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/;
|
|
742
|
+
var characterLiteral = /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/;
|
|
743
|
+
var qualifiedSymbol = /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;
|
|
744
|
+
function base(stream, state) {
|
|
745
|
+
if (stream.eatSpace() || stream.eat(",")) return ["space", null];
|
|
746
|
+
if (stream.match(numberLiteral)) return [null, "number"];
|
|
747
|
+
if (stream.match(characterLiteral)) return [null, "string.special"];
|
|
748
|
+
if (stream.eat(/^"/)) return (state.tokenize = inString)(stream, state);
|
|
749
|
+
if (stream.eat(/^[(\[{]/)) return ["open", "bracket"];
|
|
750
|
+
if (stream.eat(/^[)\]}]/)) return ["close", "bracket"];
|
|
751
|
+
if (stream.eat(/^;/)) {
|
|
752
|
+
stream.skipToEnd();
|
|
753
|
+
return ["space", "comment"];
|
|
754
|
+
}
|
|
755
|
+
if (stream.eat(/^[#'@^`~]/)) return [null, "meta"];
|
|
756
|
+
var matches = stream.match(qualifiedSymbol);
|
|
757
|
+
var symbol = matches && matches[0];
|
|
758
|
+
if (!symbol) {
|
|
759
|
+
stream.next();
|
|
760
|
+
stream.eatWhile(function(c) {
|
|
761
|
+
return !is(c, delimiter);
|
|
762
|
+
});
|
|
763
|
+
return [null, "error"];
|
|
764
|
+
}
|
|
765
|
+
if (symbol === "comment" && state.lastToken === "(")
|
|
766
|
+
return (state.tokenize = inComment)(stream, state);
|
|
767
|
+
if (is(symbol, atom) || symbol.charAt(0) === ":") return ["symbol", "atom"];
|
|
768
|
+
if (is(symbol, specialForm) || is(symbol, coreSymbol)) return ["symbol", "keyword"];
|
|
769
|
+
if (state.lastToken === "(") return ["symbol", "builtin"];
|
|
770
|
+
return ["symbol", "variable"];
|
|
771
|
+
}
|
|
772
|
+
function inString(stream, state) {
|
|
773
|
+
var escaped = false, next;
|
|
774
|
+
while (next = stream.next()) {
|
|
775
|
+
if (next === '"' && !escaped) {
|
|
776
|
+
state.tokenize = base;
|
|
777
|
+
break;
|
|
778
|
+
}
|
|
779
|
+
escaped = !escaped && next === "\\";
|
|
780
|
+
}
|
|
781
|
+
return [null, "string"];
|
|
782
|
+
}
|
|
783
|
+
function inComment(stream, state) {
|
|
784
|
+
var parenthesisCount = 1;
|
|
785
|
+
var next;
|
|
786
|
+
while (next = stream.next()) {
|
|
787
|
+
if (next === ")") parenthesisCount--;
|
|
788
|
+
if (next === "(") parenthesisCount++;
|
|
789
|
+
if (parenthesisCount === 0) {
|
|
790
|
+
stream.backUp(1);
|
|
791
|
+
state.tokenize = base;
|
|
792
|
+
break;
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
return ["space", "comment"];
|
|
796
|
+
}
|
|
797
|
+
function createLookupMap(words) {
|
|
798
|
+
var obj = {};
|
|
799
|
+
for (var i = 0; i < words.length; ++i) obj[words[i]] = true;
|
|
800
|
+
return obj;
|
|
801
|
+
}
|
|
802
|
+
function is(value, test) {
|
|
803
|
+
if (test instanceof RegExp) return test.test(value);
|
|
804
|
+
if (test instanceof Object) return test.propertyIsEnumerable(value);
|
|
805
|
+
}
|
|
806
|
+
const clojure = {
|
|
807
|
+
name: "clojure",
|
|
808
|
+
startState: function() {
|
|
809
|
+
return {
|
|
810
|
+
ctx: { prev: null, start: 0, indentTo: 0 },
|
|
811
|
+
lastToken: null,
|
|
812
|
+
tokenize: base
|
|
813
|
+
};
|
|
814
|
+
},
|
|
815
|
+
token: function(stream, state) {
|
|
816
|
+
if (stream.sol() && typeof state.ctx.indentTo !== "number")
|
|
817
|
+
state.ctx.indentTo = state.ctx.start + 1;
|
|
818
|
+
var typeStylePair = state.tokenize(stream, state);
|
|
819
|
+
var type = typeStylePair[0];
|
|
820
|
+
var style = typeStylePair[1];
|
|
821
|
+
var current = stream.current();
|
|
822
|
+
if (type !== "space") {
|
|
823
|
+
if (state.lastToken === "(" && state.ctx.indentTo === null) {
|
|
824
|
+
if (type === "symbol" && is(current, hasBodyParameter))
|
|
825
|
+
state.ctx.indentTo = state.ctx.start + stream.indentUnit;
|
|
826
|
+
else state.ctx.indentTo = "next";
|
|
827
|
+
} else if (state.ctx.indentTo === "next") {
|
|
828
|
+
state.ctx.indentTo = stream.column();
|
|
829
|
+
}
|
|
830
|
+
state.lastToken = current;
|
|
831
|
+
}
|
|
832
|
+
if (type === "open")
|
|
833
|
+
state.ctx = { prev: state.ctx, start: stream.column(), indentTo: null };
|
|
834
|
+
else if (type === "close") state.ctx = state.ctx.prev || state.ctx;
|
|
835
|
+
return style;
|
|
836
|
+
},
|
|
837
|
+
indent: function(state) {
|
|
838
|
+
var i = state.ctx.indentTo;
|
|
839
|
+
return typeof i === "number" ? i : state.ctx.start + 1;
|
|
840
|
+
},
|
|
841
|
+
languageData: {
|
|
842
|
+
closeBrackets: { brackets: ["(", "[", "{", '"'] },
|
|
843
|
+
commentTokens: { line: ";;" },
|
|
844
|
+
autocomplete: [].concat(atoms, specialForms, coreSymbols)
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
export {
|
|
848
|
+
clojure
|
|
849
|
+
};
|
|
850
|
+
//# sourceMappingURL=clojure-BhXMqnxz.js.map
|