clojure-7UFW6NON.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. import "./chunk-2LSFTFF7.js";
  2. // node_modules/.pnpm/monaco-editor@0.38.0/node_modules/monaco-editor/esm/vs/basic-languages/clojure/clojure.js
  3. var conf = {
  4. comments: {
  5. lineComment: ";;"
  6. },
  7. brackets: [
  8. ["[", "]"],
  9. ["(", ")"],
  10. ["{", "}"]
  11. ],
  12. autoClosingPairs: [
  13. { open: "[", close: "]" },
  14. { open: '"', close: '"' },
  15. { open: "(", close: ")" },
  16. { open: "{", close: "}" }
  17. ],
  18. surroundingPairs: [
  19. { open: "[", close: "]" },
  20. { open: '"', close: '"' },
  21. { open: "(", close: ")" },
  22. { open: "{", close: "}" }
  23. ]
  24. };
  25. var language = {
  26. defaultToken: "",
  27. ignoreCase: true,
  28. tokenPostfix: ".clj",
  29. brackets: [
  30. { open: "[", close: "]", token: "delimiter.square" },
  31. { open: "(", close: ")", token: "delimiter.parenthesis" },
  32. { open: "{", close: "}", token: "delimiter.curly" }
  33. ],
  34. constants: ["true", "false", "nil"],
  35. numbers: /^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,
  36. characters: /^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,
  37. escapes: /^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
  38. qualifiedSymbols: /^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,
  39. specialForms: [
  40. ".",
  41. "catch",
  42. "def",
  43. "do",
  44. "if",
  45. "monitor-enter",
  46. "monitor-exit",
  47. "new",
  48. "quote",
  49. "recur",
  50. "set!",
  51. "throw",
  52. "try",
  53. "var"
  54. ],
  55. coreSymbols: [
  56. "*",
  57. "*'",
  58. "*1",
  59. "*2",
  60. "*3",
  61. "*agent*",
  62. "*allow-unresolved-vars*",
  63. "*assert*",
  64. "*clojure-version*",
  65. "*command-line-args*",
  66. "*compile-files*",
  67. "*compile-path*",
  68. "*compiler-options*",
  69. "*data-readers*",
  70. "*default-data-reader-fn*",
  71. "*e",
  72. "*err*",
  73. "*file*",
  74. "*flush-on-newline*",
  75. "*fn-loader*",
  76. "*in*",
  77. "*math-context*",
  78. "*ns*",
  79. "*out*",
  80. "*print-dup*",
  81. "*print-length*",
  82. "*print-level*",
  83. "*print-meta*",
  84. "*print-namespace-maps*",
  85. "*print-readably*",
  86. "*read-eval*",
  87. "*reader-resolver*",
  88. "*source-path*",
  89. "*suppress-read*",
  90. "*unchecked-math*",
  91. "*use-context-classloader*",
  92. "*verbose-defrecords*",
  93. "*warn-on-reflection*",
  94. "+",
  95. "+'",
  96. "-",
  97. "-'",
  98. "->",
  99. "->>",
  100. "->ArrayChunk",
  101. "->Eduction",
  102. "->Vec",
  103. "->VecNode",
  104. "->VecSeq",
  105. "-cache-protocol-fn",
  106. "-reset-methods",
  107. "..",
  108. "/",
  109. "<",
  110. "<=",
  111. "=",
  112. "==",
  113. ">",
  114. ">=",
  115. "EMPTY-NODE",
  116. "Inst",
  117. "StackTraceElement->vec",
  118. "Throwable->map",
  119. "accessor",
  120. "aclone",
  121. "add-classpath",
  122. "add-watch",
  123. "agent",
  124. "agent-error",
  125. "agent-errors",
  126. "aget",
  127. "alength",
  128. "alias",
  129. "all-ns",
  130. "alter",
  131. "alter-meta!",
  132. "alter-var-root",
  133. "amap",
  134. "ancestors",
  135. "and",
  136. "any?",
  137. "apply",
  138. "areduce",
  139. "array-map",
  140. "as->",
  141. "aset",
  142. "aset-boolean",
  143. "aset-byte",
  144. "aset-char",
  145. "aset-double",
  146. "aset-float",
  147. "aset-int",
  148. "aset-long",
  149. "aset-short",
  150. "assert",
  151. "assoc",
  152. "assoc!",
  153. "assoc-in",
  154. "associative?",
  155. "atom",
  156. "await",
  157. "await-for",
  158. "await1",
  159. "bases",
  160. "bean",
  161. "bigdec",
  162. "bigint",
  163. "biginteger",
  164. "binding",
  165. "bit-and",
  166. "bit-and-not",
  167. "bit-clear",
  168. "bit-flip",
  169. "bit-not",
  170. "bit-or",
  171. "bit-set",
  172. "bit-shift-left",
  173. "bit-shift-right",
  174. "bit-test",
  175. "bit-xor",
  176. "boolean",
  177. "boolean-array",
  178. "boolean?",
  179. "booleans",
  180. "bound-fn",
  181. "bound-fn*",
  182. "bound?",
  183. "bounded-count",
  184. "butlast",
  185. "byte",
  186. "byte-array",
  187. "bytes",
  188. "bytes?",
  189. "case",
  190. "cast",
  191. "cat",
  192. "char",
  193. "char-array",
  194. "char-escape-string",
  195. "char-name-string",
  196. "char?",
  197. "chars",
  198. "chunk",
  199. "chunk-append",
  200. "chunk-buffer",
  201. "chunk-cons",
  202. "chunk-first",
  203. "chunk-next",
  204. "chunk-rest",
  205. "chunked-seq?",
  206. "class",
  207. "class?",
  208. "clear-agent-errors",
  209. "clojure-version",
  210. "coll?",
  211. "comment",
  212. "commute",
  213. "comp",
  214. "comparator",
  215. "compare",
  216. "compare-and-set!",
  217. "compile",
  218. "complement",
  219. "completing",
  220. "concat",
  221. "cond",
  222. "cond->",
  223. "cond->>",
  224. "condp",
  225. "conj",
  226. "conj!",
  227. "cons",
  228. "constantly",
  229. "construct-proxy",
  230. "contains?",
  231. "count",
  232. "counted?",
  233. "create-ns",
  234. "create-struct",
  235. "cycle",
  236. "dec",
  237. "dec'",
  238. "decimal?",
  239. "declare",
  240. "dedupe",
  241. "default-data-readers",
  242. "definline",
  243. "definterface",
  244. "defmacro",
  245. "defmethod",
  246. "defmulti",
  247. "defn",
  248. "defn-",
  249. "defonce",
  250. "defprotocol",
  251. "defrecord",
  252. "defstruct",
  253. "deftype",
  254. "delay",
  255. "delay?",
  256. "deliver",
  257. "denominator",
  258. "deref",
  259. "derive",
  260. "descendants",
  261. "destructure",
  262. "disj",
  263. "disj!",
  264. "dissoc",
  265. "dissoc!",
  266. "distinct",
  267. "distinct?",
  268. "doall",
  269. "dorun",
  270. "doseq",
  271. "dosync",
  272. "dotimes",
  273. "doto",
  274. "double",
  275. "double-array",
  276. "double?",
  277. "doubles",
  278. "drop",
  279. "drop-last",
  280. "drop-while",
  281. "eduction",
  282. "empty",
  283. "empty?",
  284. "ensure",
  285. "ensure-reduced",
  286. "enumeration-seq",
  287. "error-handler",
  288. "error-mode",
  289. "eval",
  290. "even?",
  291. "every-pred",
  292. "every?",
  293. "ex-data",
  294. "ex-info",
  295. "extend",
  296. "extend-protocol",
  297. "extend-type",
  298. "extenders",
  299. "extends?",
  300. "false?",
  301. "ffirst",
  302. "file-seq",
  303. "filter",
  304. "filterv",
  305. "find",
  306. "find-keyword",
  307. "find-ns",
  308. "find-protocol-impl",
  309. "find-protocol-method",
  310. "find-var",
  311. "first",
  312. "flatten",
  313. "float",
  314. "float-array",
  315. "float?",
  316. "floats",
  317. "flush",
  318. "fn",
  319. "fn?",
  320. "fnext",
  321. "fnil",
  322. "for",
  323. "force",
  324. "format",
  325. "frequencies",
  326. "future",
  327. "future-call",
  328. "future-cancel",
  329. "future-cancelled?",
  330. "future-done?",
  331. "future?",
  332. "gen-class",
  333. "gen-interface",
  334. "gensym",
  335. "get",
  336. "get-in",
  337. "get-method",
  338. "get-proxy-class",
  339. "get-thread-bindings",
  340. "get-validator",
  341. "group-by",
  342. "halt-when",
  343. "hash",
  344. "hash-combine",
  345. "hash-map",
  346. "hash-ordered-coll",
  347. "hash-set",
  348. "hash-unordered-coll",
  349. "ident?",
  350. "identical?",
  351. "identity",
  352. "if-let",
  353. "if-not",
  354. "if-some",
  355. "ifn?",
  356. "import",
  357. "in-ns",
  358. "inc",
  359. "inc'",
  360. "indexed?",
  361. "init-proxy",
  362. "inst-ms",
  363. "inst-ms*",
  364. "inst?",
  365. "instance?",
  366. "int",
  367. "int-array",
  368. "int?",
  369. "integer?",
  370. "interleave",
  371. "intern",
  372. "interpose",
  373. "into",
  374. "into-array",
  375. "ints",
  376. "io!",
  377. "isa?",
  378. "iterate",
  379. "iterator-seq",
  380. "juxt",
  381. "keep",
  382. "keep-indexed",
  383. "key",
  384. "keys",
  385. "keyword",
  386. "keyword?",
  387. "last",
  388. "lazy-cat",
  389. "lazy-seq",
  390. "let",
  391. "letfn",
  392. "line-seq",
  393. "list",
  394. "list*",
  395. "list?",
  396. "load",
  397. "load-file",
  398. "load-reader",
  399. "load-string",
  400. "loaded-libs",
  401. "locking",
  402. "long",
  403. "long-array",
  404. "longs",
  405. "loop",
  406. "macroexpand",
  407. "macroexpand-1",
  408. "make-array",
  409. "make-hierarchy",
  410. "map",
  411. "map-entry?",
  412. "map-indexed",
  413. "map?",
  414. "mapcat",
  415. "mapv",
  416. "max",
  417. "max-key",
  418. "memfn",
  419. "memoize",
  420. "merge",
  421. "merge-with",
  422. "meta",
  423. "method-sig",
  424. "methods",
  425. "min",
  426. "min-key",
  427. "mix-collection-hash",
  428. "mod",
  429. "munge",
  430. "name",
  431. "namespace",
  432. "namespace-munge",
  433. "nat-int?",
  434. "neg-int?",
  435. "neg?",
  436. "newline",
  437. "next",
  438. "nfirst",
  439. "nil?",
  440. "nnext",
  441. "not",
  442. "not-any?",
  443. "not-empty",
  444. "not-every?",
  445. "not=",
  446. "ns",
  447. "ns-aliases",
  448. "ns-imports",
  449. "ns-interns",
  450. "ns-map",
  451. "ns-name",
  452. "ns-publics",
  453. "ns-refers",
  454. "ns-resolve",
  455. "ns-unalias",
  456. "ns-unmap",
  457. "nth",
  458. "nthnext",
  459. "nthrest",
  460. "num",
  461. "number?",
  462. "numerator",
  463. "object-array",
  464. "odd?",
  465. "or",
  466. "parents",
  467. "partial",
  468. "partition",
  469. "partition-all",
  470. "partition-by",
  471. "pcalls",
  472. "peek",
  473. "persistent!",
  474. "pmap",
  475. "pop",
  476. "pop!",
  477. "pop-thread-bindings",
  478. "pos-int?",
  479. "pos?",
  480. "pr",
  481. "pr-str",
  482. "prefer-method",
  483. "prefers",
  484. "primitives-classnames",
  485. "print",
  486. "print-ctor",
  487. "print-dup",
  488. "print-method",
  489. "print-simple",
  490. "print-str",
  491. "printf",
  492. "println",
  493. "println-str",
  494. "prn",
  495. "prn-str",
  496. "promise",
  497. "proxy",
  498. "proxy-call-with-super",
  499. "proxy-mappings",
  500. "proxy-name",
  501. "proxy-super",
  502. "push-thread-bindings",
  503. "pvalues",
  504. "qualified-ident?",
  505. "qualified-keyword?",
  506. "qualified-symbol?",
  507. "quot",
  508. "rand",
  509. "rand-int",
  510. "rand-nth",
  511. "random-sample",
  512. "range",
  513. "ratio?",
  514. "rational?",
  515. "rationalize",
  516. "re-find",
  517. "re-groups",
  518. "re-matcher",
  519. "re-matches",
  520. "re-pattern",
  521. "re-seq",
  522. "read",
  523. "read-line",
  524. "read-string",
  525. "reader-conditional",
  526. "reader-conditional?",
  527. "realized?",
  528. "record?",
  529. "reduce",
  530. "reduce-kv",
  531. "reduced",
  532. "reduced?",
  533. "reductions",
  534. "ref",
  535. "ref-history-count",
  536. "ref-max-history",
  537. "ref-min-history",
  538. "ref-set",
  539. "refer",
  540. "refer-clojure",
  541. "reify",
  542. "release-pending-sends",
  543. "rem",
  544. "remove",
  545. "remove-all-methods",
  546. "remove-method",
  547. "remove-ns",
  548. "remove-watch",
  549. "repeat",
  550. "repeatedly",
  551. "replace",
  552. "replicate",
  553. "require",
  554. "reset!",
  555. "reset-meta!",
  556. "reset-vals!",
  557. "resolve",
  558. "rest",
  559. "restart-agent",
  560. "resultset-seq",
  561. "reverse",
  562. "reversible?",
  563. "rseq",
  564. "rsubseq",
  565. "run!",
  566. "satisfies?",
  567. "second",
  568. "select-keys",
  569. "send",
  570. "send-off",
  571. "send-via",
  572. "seq",
  573. "seq?",
  574. "seqable?",
  575. "seque",
  576. "sequence",
  577. "sequential?",
  578. "set",
  579. "set-agent-send-executor!",
  580. "set-agent-send-off-executor!",
  581. "set-error-handler!",
  582. "set-error-mode!",
  583. "set-validator!",
  584. "set?",
  585. "short",
  586. "short-array",
  587. "shorts",
  588. "shuffle",
  589. "shutdown-agents",
  590. "simple-ident?",
  591. "simple-keyword?",
  592. "simple-symbol?",
  593. "slurp",
  594. "some",
  595. "some->",
  596. "some->>",
  597. "some-fn",
  598. "some?",
  599. "sort",
  600. "sort-by",
  601. "sorted-map",
  602. "sorted-map-by",
  603. "sorted-set",
  604. "sorted-set-by",
  605. "sorted?",
  606. "special-symbol?",
  607. "spit",
  608. "split-at",
  609. "split-with",
  610. "str",
  611. "string?",
  612. "struct",
  613. "struct-map",
  614. "subs",
  615. "subseq",
  616. "subvec",
  617. "supers",
  618. "swap!",
  619. "swap-vals!",
  620. "symbol",
  621. "symbol?",
  622. "sync",
  623. "tagged-literal",
  624. "tagged-literal?",
  625. "take",
  626. "take-last",
  627. "take-nth",
  628. "take-while",
  629. "test",
  630. "the-ns",
  631. "thread-bound?",
  632. "time",
  633. "to-array",
  634. "to-array-2d",
  635. "trampoline",
  636. "transduce",
  637. "transient",
  638. "tree-seq",
  639. "true?",
  640. "type",
  641. "unchecked-add",
  642. "unchecked-add-int",
  643. "unchecked-byte",
  644. "unchecked-char",
  645. "unchecked-dec",
  646. "unchecked-dec-int",
  647. "unchecked-divide-int",
  648. "unchecked-double",
  649. "unchecked-float",
  650. "unchecked-inc",
  651. "unchecked-inc-int",
  652. "unchecked-int",
  653. "unchecked-long",
  654. "unchecked-multiply",
  655. "unchecked-multiply-int",
  656. "unchecked-negate",
  657. "unchecked-negate-int",
  658. "unchecked-remainder-int",
  659. "unchecked-short",
  660. "unchecked-subtract",
  661. "unchecked-subtract-int",
  662. "underive",
  663. "unquote",
  664. "unquote-splicing",
  665. "unreduced",
  666. "unsigned-bit-shift-right",
  667. "update",
  668. "update-in",
  669. "update-proxy",
  670. "uri?",
  671. "use",
  672. "uuid?",
  673. "val",
  674. "vals",
  675. "var-get",
  676. "var-set",
  677. "var?",
  678. "vary-meta",
  679. "vec",
  680. "vector",
  681. "vector-of",
  682. "vector?",
  683. "volatile!",
  684. "volatile?",
  685. "vreset!",
  686. "vswap!",
  687. "when",
  688. "when-first",
  689. "when-let",
  690. "when-not",
  691. "when-some",
  692. "while",
  693. "with-bindings",
  694. "with-bindings*",
  695. "with-in-str",
  696. "with-loading-context",
  697. "with-local-vars",
  698. "with-meta",
  699. "with-open",
  700. "with-out-str",
  701. "with-precision",
  702. "with-redefs",
  703. "with-redefs-fn",
  704. "xml-seq",
  705. "zero?",
  706. "zipmap"
  707. ],
  708. tokenizer: {
  709. root: [
  710. { include: "@whitespace" },
  711. [/@numbers/, "number"],
  712. [/@characters/, "string"],
  713. { include: "@string" },
  714. [/[()\[\]{}]/, "@brackets"],
  715. [/\/#"(?:\.|(?:")|[^"\n])*"\/g/, "regexp"],
  716. [/[#'@^`~]/, "meta"],
  717. [
  718. /@qualifiedSymbols/,
  719. {
  720. cases: {
  721. "^:.+$": "constant",
  722. "@specialForms": "keyword",
  723. "@coreSymbols": "keyword",
  724. "@constants": "constant",
  725. "@default": "identifier"
  726. }
  727. }
  728. ]
  729. ],
  730. whitespace: [
  731. [/[\s,]+/, "white"],
  732. [/;.*$/, "comment"],
  733. [/\(comment\b/, "comment", "@comment"]
  734. ],
  735. comment: [
  736. [/\(/, "comment", "@push"],
  737. [/\)/, "comment", "@pop"],
  738. [/[^()]/, "comment"]
  739. ],
  740. string: [[/"/, "string", "@multiLineString"]],
  741. multiLineString: [
  742. [/"/, "string", "@popall"],
  743. [/@escapes/, "string.escape"],
  744. [/./, "string"]
  745. ]
  746. }
  747. };
  748. export {
  749. conf,
  750. language
  751. };
  752. /*! Bundled license information:
  753. monaco-editor/esm/vs/basic-languages/clojure/clojure.js:
  754. (*!-----------------------------------------------------------------------------
  755. * Copyright (c) Microsoft Corporation. All rights reserved.
  756. * Version: 0.38.0(0e330ae453813de4e6cf272460fb79c7117073d0)
  757. * Released under the MIT license
  758. * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
  759. *-----------------------------------------------------------------------------*)
  760. */
  761. //# sourceMappingURL=clojure-7UFW6NON.js.map