@milkdown/crepe 7.3.3

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.
Files changed (241) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/lib/apl-p0IPP13W.js +76 -0
  4. package/lib/asciiarmor-lJsBxlJJ.js +34 -0
  5. package/lib/asn1-Q9v1zIy5.js +102 -0
  6. package/lib/asterisk-foNkeTjy.js +273 -0
  7. package/lib/brainfuck-0XqyXpNS.js +35 -0
  8. package/lib/clike-ak6Z6Yhe.js +639 -0
  9. package/lib/clojure-iYO8U8Sg.js +810 -0
  10. package/lib/clsx-7d8NmkQq.js +21 -0
  11. package/lib/cmake-SVzjkxV_.js +28 -0
  12. package/lib/cobol-APHEnAOX.js +74 -0
  13. package/lib/coffeescript-KqQa0SYG.js +182 -0
  14. package/lib/commonlisp-bwqNqR5V.js +79 -0
  15. package/lib/core/crepe.d.ts +21 -0
  16. package/lib/core/crepe.d.ts.map +1 -0
  17. package/lib/core/index.d.ts +3 -0
  18. package/lib/core/index.d.ts.map +1 -0
  19. package/lib/core/slice.d.ts +12 -0
  20. package/lib/core/slice.d.ts.map +1 -0
  21. package/lib/crystal-BViWuDpA.js +217 -0
  22. package/lib/css-KHXHXfXg.js +1572 -0
  23. package/lib/cypher-XpTt4zQ3.js +69 -0
  24. package/lib/d-fLig6yqY.js +139 -0
  25. package/lib/diff-WoKGLpy6.js +18 -0
  26. package/lib/dockerfile-u6f6Vw2s.js +194 -0
  27. package/lib/dtd-SIJRUW6K.js +91 -0
  28. package/lib/dylan-4HCLhpWP.js +238 -0
  29. package/lib/ebnf-h_0lged5.js +77 -0
  30. package/lib/ecl-Lf4FF0lf.js +133 -0
  31. package/lib/eiffel-qlw8KUyf.js +112 -0
  32. package/lib/elm-QRnB3zXs.js +108 -0
  33. package/lib/erlang-fyVKb7eK.js +488 -0
  34. package/lib/factor-BEeN4upY.js +65 -0
  35. package/lib/fcl-lRek3hEb.js +106 -0
  36. package/lib/feature/block-edit/handle/component.d.ts +9 -0
  37. package/lib/feature/block-edit/handle/component.d.ts.map +1 -0
  38. package/lib/feature/block-edit/handle/index.d.ts +12 -0
  39. package/lib/feature/block-edit/handle/index.d.ts.map +1 -0
  40. package/lib/feature/block-edit/index.d.ts +3 -0
  41. package/lib/feature/block-edit/index.d.ts.map +1 -0
  42. package/lib/feature/block-edit/menu/component.d.ts +14 -0
  43. package/lib/feature/block-edit/menu/component.d.ts.map +1 -0
  44. package/lib/feature/block-edit/menu/config.d.ts +21 -0
  45. package/lib/feature/block-edit/menu/config.d.ts.map +1 -0
  46. package/lib/feature/block-edit/menu/icons.d.ts +14 -0
  47. package/lib/feature/block-edit/menu/icons.d.ts.map +1 -0
  48. package/lib/feature/block-edit/menu/index.d.ts +9 -0
  49. package/lib/feature/block-edit/menu/index.d.ts.map +1 -0
  50. package/lib/feature/code-mirror/index.d.ts +3 -0
  51. package/lib/feature/code-mirror/index.d.ts.map +1 -0
  52. package/lib/feature/gap-cursor/index.d.ts +3 -0
  53. package/lib/feature/gap-cursor/index.d.ts.map +1 -0
  54. package/lib/feature/image-block/index.d.ts +3 -0
  55. package/lib/feature/image-block/index.d.ts.map +1 -0
  56. package/lib/feature/index.d.ts +18 -0
  57. package/lib/feature/index.d.ts.map +1 -0
  58. package/lib/feature/link-tooltip/consts.d.ts +5 -0
  59. package/lib/feature/link-tooltip/consts.d.ts.map +1 -0
  60. package/lib/feature/link-tooltip/index.d.ts +3 -0
  61. package/lib/feature/link-tooltip/index.d.ts.map +1 -0
  62. package/lib/feature/list-item/consts.d.ts +2 -0
  63. package/lib/feature/list-item/consts.d.ts.map +1 -0
  64. package/lib/feature/list-item/index.d.ts +3 -0
  65. package/lib/feature/list-item/index.d.ts.map +1 -0
  66. package/lib/feature/placeholder/index.d.ts +10 -0
  67. package/lib/feature/placeholder/index.d.ts.map +1 -0
  68. package/lib/feature/shared.d.ts +3 -0
  69. package/lib/feature/shared.d.ts.map +1 -0
  70. package/lib/feature/toolbar/component.d.ts +13 -0
  71. package/lib/feature/toolbar/component.d.ts.map +1 -0
  72. package/lib/feature/toolbar/consts.d.ts +5 -0
  73. package/lib/feature/toolbar/consts.d.ts.map +1 -0
  74. package/lib/feature/toolbar/index.d.ts +3 -0
  75. package/lib/feature/toolbar/index.d.ts.map +1 -0
  76. package/lib/forth-ua2bRd8T.js +60 -0
  77. package/lib/fortran-WnF7znuN.js +443 -0
  78. package/lib/gas-wowve1o7.js +183 -0
  79. package/lib/gherkin-m7GIChu3.js +34 -0
  80. package/lib/go-th443Dhb.js +158 -0
  81. package/lib/groovy-tR4RiZnc.js +161 -0
  82. package/lib/haskell-jxVBofv5.js +375 -0
  83. package/lib/haxe-kWPI2tq3.js +390 -0
  84. package/lib/hooks-82sqkbtE.js +21 -0
  85. package/lib/http-3GIFWUlG.js +45 -0
  86. package/lib/icons-HYkfuR-O.js +50 -0
  87. package/lib/idl-PvpMZg-l.js +947 -0
  88. package/lib/index-0RbcZMbq.js +8 -0
  89. package/lib/index-4afXjFMY.js +517 -0
  90. package/lib/index-7MeyepDG.js +78 -0
  91. package/lib/index-7QgQq3x3.js +551 -0
  92. package/lib/index-7pgP6qYs.js +107 -0
  93. package/lib/index-8DvtgRVa.js +19511 -0
  94. package/lib/index-8Gg-jEP4.js +288 -0
  95. package/lib/index-8S8qcncB.js +507 -0
  96. package/lib/index-9A_GmGh4.js +1039 -0
  97. package/lib/index-EJJfYLzA.js +928 -0
  98. package/lib/index-Eg39w5kL.js +984 -0
  99. package/lib/index-FIk_7oPb.js +168 -0
  100. package/lib/index-LlbrXb_n.js +368 -0
  101. package/lib/index-MovKtgMG.js +121 -0
  102. package/lib/index-N9GtIS4X.js +64 -0
  103. package/lib/index-Pwn25-kf.js +8 -0
  104. package/lib/index-SdFSDosa.js +1295 -0
  105. package/lib/index-W5Th22-Z.js +1744 -0
  106. package/lib/index-XiXSFLmI.js +20975 -0
  107. package/lib/index-bknOViGv.js +47 -0
  108. package/lib/index-bkuIUPFS.js +275 -0
  109. package/lib/index-jPA8J9Eo.js +8 -0
  110. package/lib/index-lsG76a9s.js +552 -0
  111. package/lib/index-oTRzPo3B.js +146 -0
  112. package/lib/index-rrf6_6DC.js +317 -0
  113. package/lib/index-vJbZIHYF.js +81 -0
  114. package/lib/index-vPRh55CO.js +137 -0
  115. package/lib/index-vxy63hib.js +323 -0
  116. package/lib/index-wn1_LgCS.js +99 -0
  117. package/lib/index-xHADmDT3.js +12 -0
  118. package/lib/index-yt2EpMtv.js +141 -0
  119. package/lib/index.d.ts +4 -0
  120. package/lib/index.d.ts.map +1 -0
  121. package/lib/index.es.js +7 -0
  122. package/lib/javascript-8ZHqHagw.js +758 -0
  123. package/lib/jinja2-vsOFe0qD.js +154 -0
  124. package/lib/julia-dlp_pbN1.js +241 -0
  125. package/lib/livescript-Gf5R-LT6.js +273 -0
  126. package/lib/lua-c5Y_JsBp.js +221 -0
  127. package/lib/mathematica-iiGTGmUs.js +35 -0
  128. package/lib/mbox-ZJh86H8B.js +78 -0
  129. package/lib/meta-tAGyVRPE.js +511 -0
  130. package/lib/mirc-i0qkCa0y.js +73 -0
  131. package/lib/mllike-Dy551fZW.js +275 -0
  132. package/lib/modelica-n6tGqUT9.js +94 -0
  133. package/lib/mscgen-aKSbB7D9.js +104 -0
  134. package/lib/mumps-lNiKA6sp.js +25 -0
  135. package/lib/nginx--YmuCfDj.js +93 -0
  136. package/lib/nsis-zhS8iA09.js +62 -0
  137. package/lib/ntriples-E3jQl3MC.js +79 -0
  138. package/lib/octave-EQvkGIeG.js +144 -0
  139. package/lib/oz-W2cpqFf6.js +152 -0
  140. package/lib/pascal-lCh6ouNZ.js +79 -0
  141. package/lib/perl-PxEQBX0B.js +915 -0
  142. package/lib/pig-Y_bNcrzS.js +56 -0
  143. package/lib/powershell-GaQP-TZr.js +249 -0
  144. package/lib/properties-mbRyn54L.js +26 -0
  145. package/lib/prosemirror-noTDkx-k.js +4 -0
  146. package/lib/protobuf-8CJideyJ.js +49 -0
  147. package/lib/puppet-ABBaChNZ.js +45 -0
  148. package/lib/python-sKdHg3Ka.js +321 -0
  149. package/lib/q-_1yG40Nm.js +89 -0
  150. package/lib/r-Ziz56bHT.js +108 -0
  151. package/lib/rpm-ORjGOHaQ.js +57 -0
  152. package/lib/ruby-jlbYq0dT.js +233 -0
  153. package/lib/sas-2n7xeUuO.js +107 -0
  154. package/lib/schema-tKk3m1fu.js +62 -0
  155. package/lib/scheme-XCs-NPeU.js +126 -0
  156. package/lib/shell-0_1Um7Dq.js +184 -0
  157. package/lib/sieve-7uyJD1x1.js +73 -0
  158. package/lib/simple-mode--HIzBxba.js +95 -0
  159. package/lib/smalltalk-PEFzrlQ-.js +48 -0
  160. package/lib/solr-BLBaHahN.js +41 -0
  161. package/lib/sparql-4F9ZWf1b.js +204 -0
  162. package/lib/spreadsheet-SGSo6blj.js +49 -0
  163. package/lib/sql-tebLBzN0.js +291 -0
  164. package/lib/stex-SFJcFGOO.js +130 -0
  165. package/lib/stylus-rwwWYWFm.js +256 -0
  166. package/lib/swift-eorJ0tCv.js +238 -0
  167. package/lib/tcl-IwXMB8U4.js +82 -0
  168. package/lib/textile-ok2VyjwC.js +299 -0
  169. package/lib/theme/classic/index.d.ts +3 -0
  170. package/lib/theme/classic/index.d.ts.map +1 -0
  171. package/lib/theme/classic-dark/index.d.ts +3 -0
  172. package/lib/theme/classic-dark/index.d.ts.map +1 -0
  173. package/lib/theme/headless/index.d.ts +3 -0
  174. package/lib/theme/headless/index.d.ts.map +1 -0
  175. package/lib/theme/index.d.ts +8 -0
  176. package/lib/theme/index.d.ts.map +1 -0
  177. package/lib/theme/shared.d.ts +3 -0
  178. package/lib/theme/shared.d.ts.map +1 -0
  179. package/lib/tiddlywiki-DLhz8_pc.js +156 -0
  180. package/lib/tiki-DFAqFElY.js +183 -0
  181. package/lib/tippy.esm-MZ2vxByW.js +1813 -0
  182. package/lib/toml-ryxpTZEV.js +49 -0
  183. package/lib/tooltip-plugin-gcwyQdiT.js +119 -0
  184. package/lib/troff-ZzZyvNct.js +36 -0
  185. package/lib/ttcn-6gvkqqpW.js +136 -0
  186. package/lib/ttcn-cfg-oSu-Dq5C.js +98 -0
  187. package/lib/turtle-10ofr5au.js +87 -0
  188. package/lib/use-css-light-dom-EKWZDmbJ.js +82 -0
  189. package/lib/utils/index.d.ts +4 -0
  190. package/lib/utils/index.d.ts.map +1 -0
  191. package/lib/vb-a6n6fzrD.js +74 -0
  192. package/lib/vbscript-dgvo8jPt.js +324 -0
  193. package/lib/velocity-CBncCrwO.js +97 -0
  194. package/lib/verilog-KlcACt6C.js +271 -0
  195. package/lib/vhdl-NMd7Gf35.js +117 -0
  196. package/lib/webidl-z1UE5DN_.js +160 -0
  197. package/lib/xquery-hDt5jWTp.js +431 -0
  198. package/lib/yacas-ftgh_qwr.js +74 -0
  199. package/lib/yaml-DnNTfjXK.js +53 -0
  200. package/lib/z80-dA1PqWe1.js +62 -0
  201. package/package.json +87 -0
  202. package/src/core/crepe.ts +98 -0
  203. package/src/core/index.ts +4 -0
  204. package/src/core/slice.ts +44 -0
  205. package/src/feature/block-edit/handle/component.ts +68 -0
  206. package/src/feature/block-edit/handle/index.ts +81 -0
  207. package/src/feature/block-edit/index.ts +17 -0
  208. package/src/feature/block-edit/menu/component.ts +210 -0
  209. package/src/feature/block-edit/menu/config.ts +335 -0
  210. package/src/feature/block-edit/menu/icons.ts +171 -0
  211. package/src/feature/block-edit/menu/index.ts +113 -0
  212. package/src/feature/block-edit/style.css +126 -0
  213. package/src/feature/code-mirror/index.ts +60 -0
  214. package/src/feature/code-mirror/style.css +159 -0
  215. package/src/feature/gap-cursor/index.ts +31 -0
  216. package/src/feature/image-block/index.ts +59 -0
  217. package/src/feature/image-block/style.css +215 -0
  218. package/src/feature/index.ts +66 -0
  219. package/src/feature/link-tooltip/consts.ts +47 -0
  220. package/src/feature/link-tooltip/index.ts +22 -0
  221. package/src/feature/link-tooltip/style.css +107 -0
  222. package/src/feature/list-item/consts.ts +15 -0
  223. package/src/feature/list-item/index.ts +30 -0
  224. package/src/feature/list-item/style.css +23 -0
  225. package/src/feature/placeholder/index.ts +87 -0
  226. package/src/feature/placeholder/style.css +9 -0
  227. package/src/feature/shared.ts +4 -0
  228. package/src/feature/toolbar/component.ts +101 -0
  229. package/src/feature/toolbar/consts.ts +26 -0
  230. package/src/feature/toolbar/index.ts +92 -0
  231. package/src/feature/toolbar/style.css +37 -0
  232. package/src/index.ts +5 -0
  233. package/src/theme/classic/index.ts +12 -0
  234. package/src/theme/classic/style.css +192 -0
  235. package/src/theme/classic-dark/index.ts +12 -0
  236. package/src/theme/classic-dark/style.css +197 -0
  237. package/src/theme/headless/index.ts +9 -0
  238. package/src/theme/index.ts +26 -0
  239. package/src/theme/shared.ts +4 -0
  240. package/src/utils/index.ts +12 -0
  241. package/src/vite-env.d.ts +2 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020-present Mirone
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @milkdown/crepe
2
+
3
+ The crêpe editor of [milkdown](https://milkdown.dev/).
4
+
5
+ # Official Documentation
6
+
7
+ Documentation can be found on the [Milkdown website](https://milkdown.dev/docs/api/crepe).
8
+
9
+ # License
10
+
11
+ Milkdown is open sourced software licensed under [MIT license](https://github.com/Milkdown/milkdown/blob/main/LICENSE).
@@ -0,0 +1,76 @@
1
+ var l = {
2
+ "+": ["conjugate", "add"],
3
+ "−": ["negate", "subtract"],
4
+ "×": ["signOf", "multiply"],
5
+ "÷": ["reciprocal", "divide"],
6
+ "⌈": ["ceiling", "greaterOf"],
7
+ "⌊": ["floor", "lesserOf"],
8
+ "∣": ["absolute", "residue"],
9
+ "⍳": ["indexGenerate", "indexOf"],
10
+ "?": ["roll", "deal"],
11
+ "⋆": ["exponentiate", "toThePowerOf"],
12
+ "⍟": ["naturalLog", "logToTheBase"],
13
+ "○": ["piTimes", "circularFuncs"],
14
+ "!": ["factorial", "binomial"],
15
+ "⌹": ["matrixInverse", "matrixDivide"],
16
+ "<": [null, "lessThan"],
17
+ "≤": [null, "lessThanOrEqual"],
18
+ "=": [null, "equals"],
19
+ ">": [null, "greaterThan"],
20
+ "≥": [null, "greaterThanOrEqual"],
21
+ "≠": [null, "notEqual"],
22
+ "≡": ["depth", "match"],
23
+ "≢": [null, "notMatch"],
24
+ "∈": ["enlist", "membership"],
25
+ "⍷": [null, "find"],
26
+ "∪": ["unique", "union"],
27
+ "∩": [null, "intersection"],
28
+ "∼": ["not", "without"],
29
+ "∨": [null, "or"],
30
+ "∧": [null, "and"],
31
+ "⍱": [null, "nor"],
32
+ "⍲": [null, "nand"],
33
+ "⍴": ["shapeOf", "reshape"],
34
+ ",": ["ravel", "catenate"],
35
+ "⍪": [null, "firstAxisCatenate"],
36
+ "⌽": ["reverse", "rotate"],
37
+ "⊖": ["axis1Reverse", "axis1Rotate"],
38
+ "⍉": ["transpose", null],
39
+ "↑": ["first", "take"],
40
+ "↓": [null, "drop"],
41
+ "⊂": ["enclose", "partitionWithAxis"],
42
+ "⊃": ["diclose", "pick"],
43
+ "⌷": [null, "index"],
44
+ "⍋": ["gradeUp", null],
45
+ "⍒": ["gradeDown", null],
46
+ "⊤": ["encode", null],
47
+ "⊥": ["decode", null],
48
+ "⍕": ["format", "formatByExample"],
49
+ "⍎": ["execute", null],
50
+ "⊣": ["stop", "left"],
51
+ "⊢": ["pass", "right"]
52
+ }, t = /[\.\/⌿⍀¨⍣]/, a = /⍬/, i = /[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/, u = /←/, o = /[⍝#].*$/, s = function(r) {
53
+ var n;
54
+ return n = !1, function(e) {
55
+ return n = e, e === r ? n === "\\" : !0;
56
+ };
57
+ };
58
+ const f = {
59
+ name: "apl",
60
+ startState: function() {
61
+ return {
62
+ prev: !1,
63
+ func: !1,
64
+ op: !1,
65
+ string: !1,
66
+ escape: !1
67
+ };
68
+ },
69
+ token: function(r, n) {
70
+ var e;
71
+ return r.eatSpace() ? null : (e = r.next(), e === '"' || e === "'" ? (r.eatWhile(s(e)), r.next(), n.prev = !0, "string") : /[\[{\(]/.test(e) ? (n.prev = !1, null) : /[\]}\)]/.test(e) ? (n.prev = !0, null) : a.test(e) ? (n.prev = !1, "atom") : /[¯\d]/.test(e) ? (n.func ? (n.func = !1, n.prev = !1) : n.prev = !0, r.eatWhile(/[\w\.]/), "number") : t.test(e) || u.test(e) ? "operator" : i.test(e) ? (n.func = !0, n.prev = !1, l[e] ? "variableName.function.standard" : "variableName.function") : o.test(e) ? (r.skipToEnd(), "comment") : e === "∘" && r.peek() === "." ? (r.next(), "variableName.function") : (r.eatWhile(/[\w\$_]/), n.prev = !0, "keyword"));
72
+ }
73
+ };
74
+ export {
75
+ f as apl
76
+ };
@@ -0,0 +1,34 @@
1
+ function t(e) {
2
+ var r = e.match(/^\s*\S/);
3
+ return e.skipToEnd(), r ? "error" : null;
4
+ }
5
+ const i = {
6
+ name: "asciiarmor",
7
+ token: function(e, r) {
8
+ var n;
9
+ if (r.state == "top")
10
+ return e.sol() && (n = e.match(/^-----BEGIN (.*)?-----\s*$/)) ? (r.state = "headers", r.type = n[1], "tag") : t(e);
11
+ if (r.state == "headers") {
12
+ if (e.sol() && e.match(/^\w+:/))
13
+ return r.state = "header", "atom";
14
+ var o = t(e);
15
+ return o && (r.state = "body"), o;
16
+ } else {
17
+ if (r.state == "header")
18
+ return e.skipToEnd(), r.state = "headers", "string";
19
+ if (r.state == "body")
20
+ return e.sol() && (n = e.match(/^-----END (.*)?-----\s*$/)) ? n[1] != r.type ? "error" : (r.state = "end", "tag") : e.eatWhile(/[A-Za-z0-9+\/=]/) ? null : (e.next(), "error");
21
+ if (r.state == "end")
22
+ return t(e);
23
+ }
24
+ },
25
+ blankLine: function(e) {
26
+ e.state == "headers" && (e.state = "body");
27
+ },
28
+ startState: function() {
29
+ return { state: "top", type: null };
30
+ }
31
+ };
32
+ export {
33
+ i as asciiArmor
34
+ };
@@ -0,0 +1,102 @@
1
+ function u(i) {
2
+ for (var s = {}, c = i.split(" "), T = 0; T < c.length; ++T)
3
+ s[c[T]] = !0;
4
+ return s;
5
+ }
6
+ const o = {
7
+ keywords: u("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),
8
+ cmipVerbs: u("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),
9
+ compareTypes: u("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),
10
+ status: u("current deprecated mandatory obsolete"),
11
+ tags: u("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),
12
+ storage: u("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),
13
+ modifier: u("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),
14
+ accessTypes: u("not-accessible accessible-for-notify read-only read-create read-write"),
15
+ multiLineStrings: !0
16
+ };
17
+ function L(i) {
18
+ var s = i.keywords || o.keywords, c = i.cmipVerbs || o.cmipVerbs, T = i.compareTypes || o.compareTypes, N = i.status || o.status, d = i.tags || o.tags, f = i.storage || o.storage, m = i.modifier || o.modifier, C = i.accessTypes || o.accessTypes, R = i.multiLineStrings || o.multiLineStrings, y = i.indentStatements !== !1, A = /[\|\^]/, E;
19
+ function D(e, n) {
20
+ var t = e.next();
21
+ if (t == '"' || t == "'")
22
+ return n.tokenize = g(t), n.tokenize(e, n);
23
+ if (/[\[\]\(\){}:=,;]/.test(t))
24
+ return E = t, "punctuation";
25
+ if (t == "-" && e.eat("-"))
26
+ return e.skipToEnd(), "comment";
27
+ if (/\d/.test(t))
28
+ return e.eatWhile(/[\w\.]/), "number";
29
+ if (A.test(t))
30
+ return e.eatWhile(A), "operator";
31
+ e.eatWhile(/[\w\-]/);
32
+ var r = e.current();
33
+ return s.propertyIsEnumerable(r) ? "keyword" : c.propertyIsEnumerable(r) ? "variableName" : T.propertyIsEnumerable(r) ? "atom" : N.propertyIsEnumerable(r) ? "comment" : d.propertyIsEnumerable(r) ? "typeName" : f.propertyIsEnumerable(r) || m.propertyIsEnumerable(r) || C.propertyIsEnumerable(r) ? "modifier" : "variableName";
34
+ }
35
+ function g(e) {
36
+ return function(n, t) {
37
+ for (var r = !1, l, O = !1; (l = n.next()) != null; ) {
38
+ if (l == e && !r) {
39
+ var I = n.peek();
40
+ I && (I = I.toLowerCase(), (I == "b" || I == "h" || I == "o") && n.next()), O = !0;
41
+ break;
42
+ }
43
+ r = !r && l == "\\";
44
+ }
45
+ return (O || !(r || R)) && (t.tokenize = null), "string";
46
+ };
47
+ }
48
+ function p(e, n, t, r, l) {
49
+ this.indented = e, this.column = n, this.type = t, this.align = r, this.prev = l;
50
+ }
51
+ function a(e, n, t) {
52
+ var r = e.indented;
53
+ return e.context && e.context.type == "statement" && (r = e.context.indented), e.context = new p(r, n, t, null, e.context);
54
+ }
55
+ function S(e) {
56
+ var n = e.context.type;
57
+ return (n == ")" || n == "]" || n == "}") && (e.indented = e.context.indented), e.context = e.context.prev;
58
+ }
59
+ return {
60
+ name: "asn1",
61
+ startState: function() {
62
+ return {
63
+ tokenize: null,
64
+ context: new p(-2, 0, "top", !1),
65
+ indented: 0,
66
+ startOfLine: !0
67
+ };
68
+ },
69
+ token: function(e, n) {
70
+ var t = n.context;
71
+ if (e.sol() && (t.align == null && (t.align = !1), n.indented = e.indentation(), n.startOfLine = !0), e.eatSpace())
72
+ return null;
73
+ E = null;
74
+ var r = (n.tokenize || D)(e, n);
75
+ if (r == "comment")
76
+ return r;
77
+ if (t.align == null && (t.align = !0), (E == ";" || E == ":" || E == ",") && t.type == "statement")
78
+ S(n);
79
+ else if (E == "{")
80
+ a(n, e.column(), "}");
81
+ else if (E == "[")
82
+ a(n, e.column(), "]");
83
+ else if (E == "(")
84
+ a(n, e.column(), ")");
85
+ else if (E == "}") {
86
+ for (; t.type == "statement"; )
87
+ t = S(n);
88
+ for (t.type == "}" && (t = S(n)); t.type == "statement"; )
89
+ t = S(n);
90
+ } else
91
+ E == t.type ? S(n) : y && ((t.type == "}" || t.type == "top") && E != ";" || t.type == "statement" && E == "newstatement") && a(n, e.column(), "statement");
92
+ return n.startOfLine = !1, r;
93
+ },
94
+ languageData: {
95
+ indentOnInput: /^\s*[{}]$/,
96
+ commentTokens: { line: "--" }
97
+ }
98
+ };
99
+ }
100
+ export {
101
+ L as asn1
102
+ };
@@ -0,0 +1,273 @@
1
+ var t = ["exten", "same", "include", "ignorepat", "switch"], o = ["#include", "#exec"], c = [
2
+ "addqueuemember",
3
+ "adsiprog",
4
+ "aelsub",
5
+ "agentlogin",
6
+ "agentmonitoroutgoing",
7
+ "agi",
8
+ "alarmreceiver",
9
+ "amd",
10
+ "answer",
11
+ "authenticate",
12
+ "background",
13
+ "backgrounddetect",
14
+ "bridge",
15
+ "busy",
16
+ "callcompletioncancel",
17
+ "callcompletionrequest",
18
+ "celgenuserevent",
19
+ "changemonitor",
20
+ "chanisavail",
21
+ "channelredirect",
22
+ "chanspy",
23
+ "clearhash",
24
+ "confbridge",
25
+ "congestion",
26
+ "continuewhile",
27
+ "controlplayback",
28
+ "dahdiacceptr2call",
29
+ "dahdibarge",
30
+ "dahdiras",
31
+ "dahdiscan",
32
+ "dahdisendcallreroutingfacility",
33
+ "dahdisendkeypadfacility",
34
+ "datetime",
35
+ "dbdel",
36
+ "dbdeltree",
37
+ "deadagi",
38
+ "dial",
39
+ "dictate",
40
+ "directory",
41
+ "disa",
42
+ "dumpchan",
43
+ "eagi",
44
+ "echo",
45
+ "endwhile",
46
+ "exec",
47
+ "execif",
48
+ "execiftime",
49
+ "exitwhile",
50
+ "extenspy",
51
+ "externalivr",
52
+ "festival",
53
+ "flash",
54
+ "followme",
55
+ "forkcdr",
56
+ "getcpeid",
57
+ "gosub",
58
+ "gosubif",
59
+ "goto",
60
+ "gotoif",
61
+ "gotoiftime",
62
+ "hangup",
63
+ "iax2provision",
64
+ "ices",
65
+ "importvar",
66
+ "incomplete",
67
+ "ivrdemo",
68
+ "jabberjoin",
69
+ "jabberleave",
70
+ "jabbersend",
71
+ "jabbersendgroup",
72
+ "jabberstatus",
73
+ "jack",
74
+ "log",
75
+ "macro",
76
+ "macroexclusive",
77
+ "macroexit",
78
+ "macroif",
79
+ "mailboxexists",
80
+ "meetme",
81
+ "meetmeadmin",
82
+ "meetmechanneladmin",
83
+ "meetmecount",
84
+ "milliwatt",
85
+ "minivmaccmess",
86
+ "minivmdelete",
87
+ "minivmgreet",
88
+ "minivmmwi",
89
+ "minivmnotify",
90
+ "minivmrecord",
91
+ "mixmonitor",
92
+ "monitor",
93
+ "morsecode",
94
+ "mp3player",
95
+ "mset",
96
+ "musiconhold",
97
+ "nbscat",
98
+ "nocdr",
99
+ "noop",
100
+ "odbc",
101
+ "odbc",
102
+ "odbcfinish",
103
+ "originate",
104
+ "ospauth",
105
+ "ospfinish",
106
+ "osplookup",
107
+ "ospnext",
108
+ "page",
109
+ "park",
110
+ "parkandannounce",
111
+ "parkedcall",
112
+ "pausemonitor",
113
+ "pausequeuemember",
114
+ "pickup",
115
+ "pickupchan",
116
+ "playback",
117
+ "playtones",
118
+ "privacymanager",
119
+ "proceeding",
120
+ "progress",
121
+ "queue",
122
+ "queuelog",
123
+ "raiseexception",
124
+ "read",
125
+ "readexten",
126
+ "readfile",
127
+ "receivefax",
128
+ "receivefax",
129
+ "receivefax",
130
+ "record",
131
+ "removequeuemember",
132
+ "resetcdr",
133
+ "retrydial",
134
+ "return",
135
+ "ringing",
136
+ "sayalpha",
137
+ "saycountedadj",
138
+ "saycountednoun",
139
+ "saycountpl",
140
+ "saydigits",
141
+ "saynumber",
142
+ "sayphonetic",
143
+ "sayunixtime",
144
+ "senddtmf",
145
+ "sendfax",
146
+ "sendfax",
147
+ "sendfax",
148
+ "sendimage",
149
+ "sendtext",
150
+ "sendurl",
151
+ "set",
152
+ "setamaflags",
153
+ "setcallerpres",
154
+ "setmusiconhold",
155
+ "sipaddheader",
156
+ "sipdtmfmode",
157
+ "sipremoveheader",
158
+ "skel",
159
+ "slastation",
160
+ "slatrunk",
161
+ "sms",
162
+ "softhangup",
163
+ "speechactivategrammar",
164
+ "speechbackground",
165
+ "speechcreate",
166
+ "speechdeactivategrammar",
167
+ "speechdestroy",
168
+ "speechloadgrammar",
169
+ "speechprocessingsound",
170
+ "speechstart",
171
+ "speechunloadgrammar",
172
+ "stackpop",
173
+ "startmusiconhold",
174
+ "stopmixmonitor",
175
+ "stopmonitor",
176
+ "stopmusiconhold",
177
+ "stopplaytones",
178
+ "system",
179
+ "testclient",
180
+ "testserver",
181
+ "transfer",
182
+ "tryexec",
183
+ "trysystem",
184
+ "unpausemonitor",
185
+ "unpausequeuemember",
186
+ "userevent",
187
+ "verbose",
188
+ "vmauthenticate",
189
+ "vmsayname",
190
+ "voicemail",
191
+ "voicemailmain",
192
+ "wait",
193
+ "waitexten",
194
+ "waitfornoise",
195
+ "waitforring",
196
+ "waitforsilence",
197
+ "waitmusiconhold",
198
+ "waituntil",
199
+ "while",
200
+ "zapateller"
201
+ ];
202
+ function l(e, n) {
203
+ var i = "", a = e.next();
204
+ if (n.blockComment)
205
+ return a == "-" && e.match("-;", !0) ? n.blockComment = !1 : e.skipTo("--;") ? (e.next(), e.next(), e.next(), n.blockComment = !1) : e.skipToEnd(), "comment";
206
+ if (a == ";")
207
+ return e.match("--", !0) && !e.match("-", !1) ? (n.blockComment = !0, "comment") : (e.skipToEnd(), "comment");
208
+ if (a == "[")
209
+ return e.skipTo("]"), e.eat("]"), "header";
210
+ if (a == '"')
211
+ return e.skipTo('"'), "string";
212
+ if (a == "'")
213
+ return e.skipTo("'"), "string.special";
214
+ if (a == "#" && (e.eatWhile(/\w/), i = e.current(), o.indexOf(i) !== -1))
215
+ return e.skipToEnd(), "strong";
216
+ if (a == "$") {
217
+ var r = e.peek();
218
+ if (r == "{")
219
+ return e.skipTo("}"), e.eat("}"), "variableName.special";
220
+ }
221
+ if (e.eatWhile(/\w/), i = e.current(), t.indexOf(i) !== -1) {
222
+ switch (n.extenStart = !0, i) {
223
+ case "same":
224
+ n.extenSame = !0;
225
+ break;
226
+ case "include":
227
+ case "switch":
228
+ case "ignorepat":
229
+ n.extenInclude = !0;
230
+ break;
231
+ }
232
+ return "atom";
233
+ }
234
+ }
235
+ const s = {
236
+ name: "asterisk",
237
+ startState: function() {
238
+ return {
239
+ blockComment: !1,
240
+ extenStart: !1,
241
+ extenSame: !1,
242
+ extenInclude: !1,
243
+ extenExten: !1,
244
+ extenPriority: !1,
245
+ extenApplication: !1
246
+ };
247
+ },
248
+ token: function(e, n) {
249
+ var i = "";
250
+ if (e.eatSpace())
251
+ return null;
252
+ if (n.extenStart)
253
+ return e.eatWhile(/[^\s]/), i = e.current(), /^=>?$/.test(i) ? (n.extenExten = !0, n.extenStart = !1, "strong") : (n.extenStart = !1, e.skipToEnd(), "error");
254
+ if (n.extenExten)
255
+ return n.extenExten = !1, n.extenPriority = !0, e.eatWhile(/[^,]/), n.extenInclude && (e.skipToEnd(), n.extenPriority = !1, n.extenInclude = !1), n.extenSame && (n.extenPriority = !1, n.extenSame = !1, n.extenApplication = !0), "tag";
256
+ if (n.extenPriority)
257
+ return n.extenPriority = !1, n.extenApplication = !0, e.next(), n.extenSame ? null : (e.eatWhile(/[^,]/), "number");
258
+ if (n.extenApplication) {
259
+ if (e.eatWhile(/,/), i = e.current(), i === ",")
260
+ return null;
261
+ if (e.eatWhile(/\w/), i = e.current().toLowerCase(), n.extenApplication = !1, c.indexOf(i) !== -1)
262
+ return "def";
263
+ } else
264
+ return l(e, n);
265
+ return null;
266
+ },
267
+ languageData: {
268
+ commentTokens: { line: ";", block: { open: ";--", close: "--;" } }
269
+ }
270
+ };
271
+ export {
272
+ s as asterisk
273
+ };
@@ -0,0 +1,35 @@
1
+ var f = "><+-.,[]".split("");
2
+ const r = {
3
+ name: "brainfuck",
4
+ startState: function() {
5
+ return {
6
+ commentLine: !1,
7
+ left: 0,
8
+ right: 0,
9
+ commentLoop: !1
10
+ };
11
+ },
12
+ token: function(i, n) {
13
+ if (i.eatSpace())
14
+ return null;
15
+ i.sol() && (n.commentLine = !1);
16
+ var e = i.next().toString();
17
+ if (f.indexOf(e) !== -1) {
18
+ if (n.commentLine === !0)
19
+ return i.eol() && (n.commentLine = !1), "comment";
20
+ if (e === "]" || e === "[")
21
+ return e === "[" ? n.left++ : n.right++, "bracket";
22
+ if (e === "+" || e === "-")
23
+ return "keyword";
24
+ if (e === "<" || e === ">")
25
+ return "atom";
26
+ if (e === "." || e === ",")
27
+ return "def";
28
+ } else
29
+ return n.commentLine = !0, i.eol() && (n.commentLine = !1), "comment";
30
+ i.eol() && (n.commentLine = !1);
31
+ }
32
+ };
33
+ export {
34
+ r as brainfuck
35
+ };