@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
@@ -0,0 +1,256 @@
1
+ var B = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "bgsound", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "nobr", "noframes", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "var", "video"], $ = ["domain", "regexp", "url-prefix", "url"], I = ["all", "aural", "braille", "handheld", "print", "projection", "screen", "tty", "tv", "embossed"], R = ["width", "min-width", "max-width", "height", "min-height", "max-height", "device-width", "min-device-width", "max-device-width", "device-height", "min-device-height", "max-device-height", "aspect-ratio", "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio", "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color", "max-color", "color-index", "min-color-index", "max-color-index", "monochrome", "min-monochrome", "max-monochrome", "resolution", "min-resolution", "max-resolution", "scan", "grid", "dynamic-range", "video-dynamic-range"], O = ["align-content", "align-items", "align-self", "alignment-adjust", "alignment-baseline", "anchor-point", "animation", "animation-delay", "animation-direction", "animation-duration", "animation-fill-mode", "animation-iteration-count", "animation-name", "animation-play-state", "animation-timing-function", "appearance", "azimuth", "backface-visibility", "background", "background-attachment", "background-clip", "background-color", "background-image", "background-origin", "background-position", "background-repeat", "background-size", "baseline-shift", "binding", "bleed", "bookmark-label", "bookmark-level", "bookmark-state", "bookmark-target", "border", "border-bottom", "border-bottom-color", "border-bottom-left-radius", "border-bottom-right-radius", "border-bottom-style", "border-bottom-width", "border-collapse", "border-color", "border-image", "border-image-outset", "border-image-repeat", "border-image-slice", "border-image-source", "border-image-width", "border-left", "border-left-color", "border-left-style", "border-left-width", "border-radius", "border-right", "border-right-color", "border-right-style", "border-right-width", "border-spacing", "border-style", "border-top", "border-top-color", "border-top-left-radius", "border-top-right-radius", "border-top-style", "border-top-width", "border-width", "bottom", "box-decoration-break", "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", "caption-side", "clear", "clip", "color", "color-profile", "column-count", "column-fill", "column-gap", "column-rule", "column-rule-color", "column-rule-style", "column-rule-width", "column-span", "column-width", "columns", "content", "counter-increment", "counter-reset", "crop", "cue", "cue-after", "cue-before", "cursor", "direction", "display", "dominant-baseline", "drop-initial-after-adjust", "drop-initial-after-align", "drop-initial-before-adjust", "drop-initial-before-align", "drop-initial-size", "drop-initial-value", "elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis", "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap", "float", "float-offset", "flow-from", "flow-into", "font", "font-feature-settings", "font-family", "font-kerning", "font-language-override", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-synthesis", "font-variant", "font-variant-alternates", "font-variant-caps", "font-variant-east-asian", "font-variant-ligatures", "font-variant-numeric", "font-variant-position", "font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow", "grid-auto-position", "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-start", "grid-row", "grid-row-end", "grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns", "grid-template-rows", "hanging-punctuation", "height", "hyphens", "icon", "image-orientation", "image-rendering", "image-resolution", "inline-box-align", "justify-content", "left", "letter-spacing", "line-break", "line-height", "line-stacking", "line-stacking-ruby", "line-stacking-shift", "line-stacking-strategy", "list-style", "list-style-image", "list-style-position", "list-style-type", "margin", "margin-bottom", "margin-left", "margin-right", "margin-top", "marker-offset", "marks", "marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed", "marquee-style", "max-height", "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index", "nav-left", "nav-right", "nav-up", "object-fit", "object-position", "opacity", "order", "orphans", "outline", "outline-color", "outline-offset", "outline-style", "outline-width", "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y", "padding", "padding-bottom", "padding-left", "padding-right", "padding-top", "page", "page-break-after", "page-break-before", "page-break-inside", "page-policy", "pause", "pause-after", "pause-before", "perspective", "perspective-origin", "pitch", "pitch-range", "play-during", "position", "presentation-level", "punctuation-trim", "quotes", "region-break-after", "region-break-before", "region-break-inside", "region-fragment", "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness", "right", "rotation", "rotation-point", "ruby-align", "ruby-overhang", "ruby-position", "ruby-span", "shape-image-threshold", "shape-inside", "shape-margin", "shape-outside", "size", "speak", "speak-as", "speak-header", "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set", "tab-size", "table-layout", "target", "target-name", "target-new", "target-position", "text-align", "text-align-last", "text-decoration", "text-decoration-color", "text-decoration-line", "text-decoration-skip", "text-decoration-style", "text-emphasis", "text-emphasis-color", "text-emphasis-position", "text-emphasis-style", "text-height", "text-indent", "text-justify", "text-outline", "text-overflow", "text-shadow", "text-size-adjust", "text-space-collapse", "text-transform", "text-underline-position", "text-wrap", "top", "transform", "transform-origin", "transform-style", "transition", "transition-delay", "transition-duration", "transition-property", "transition-timing-function", "unicode-bidi", "vertical-align", "visibility", "voice-balance", "voice-duration", "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", "voice-volume", "volume", "white-space", "widows", "width", "will-change", "word-break", "word-spacing", "word-wrap", "z-index", "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color", "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events", "color-interpolation", "color-interpolation-filters", "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering", "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "stroke", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering", "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal", "glyph-orientation-vertical", "text-anchor", "writing-mode", "font-smoothing", "osx-font-smoothing"], W = ["scrollbar-arrow-color", "scrollbar-base-color", "scrollbar-dark-shadow-color", "scrollbar-face-color", "scrollbar-highlight-color", "scrollbar-shadow-color", "scrollbar-3d-light-color", "scrollbar-track-color", "shape-inside", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "zoom"], N = ["font-family", "src", "unicode-range", "font-variant", "font-feature-settings", "font-stretch", "font-weight", "font-style"], S = ["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"], T = ["above", "absolute", "activeborder", "additive", "activecaption", "afar", "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", "arabic-indic", "armenian", "asterisks", "attr", "auto", "avoid", "avoid-column", "avoid-page", "avoid-region", "background", "backwards", "baseline", "below", "bidi-override", "binary", "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box", "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian", "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch", "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", "col-resize", "collapse", "column", "compact", "condensed", "conic-gradient", "contain", "content", "contents", "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop", "cross", "crosshair", "currentcolor", "cursive", "cyclic", "dashed", "decimal", "decimal-leading-zero", "default", "default-button", "destination-atop", "destination-in", "destination-out", "destination-over", "devanagari", "disc", "discard", "disclosure-closed", "disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede", "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er", "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er", "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et", "ethiopic-halehame-gez", "ethiopic-halehame-om-et", "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et", "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig", "ethiopic-numeric", "ew-resize", "expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "footnotes", "forwards", "from", "geometricPrecision", "georgian", "graytext", "groove", "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hebrew", "help", "hidden", "hide", "high", "higher", "highlight", "highlighttext", "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore", "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "japanese-formal", "japanese-informal", "justify", "kannada", "katakana", "katakana-iroha", "keep-all", "khmer", "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal", "landscape", "lao", "large", "larger", "left", "level", "lighter", "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian", "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian", "lower-roman", "lowercase", "ltr", "malayalam", "match", "matrix", "matrix3d", "media-play-button", "media-slider", "media-sliderthumb", "media-volume-slider", "media-volume-sliderthumb", "medium", "menu", "menulist", "menulist-button", "menutext", "message-box", "middle", "min-intrinsic", "mix", "mongolian", "monospace", "move", "multiple", "myanmar", "n-resize", "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "open-quote", "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset", "outside", "outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused", "persian", "perspective", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient", "repeating-conic-gradient", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round", "row-resize", "rtl", "run-in", "running", "s-resize", "sans-serif", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button", "searchfield-results-decoration", "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama", "simp-chinese-formal", "simp-chinese-informal", "single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal", "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps", "small-caption", "smaller", "solid", "somali", "source-atop", "source-in", "source-out", "source-over", "space", "spell-out", "square", "square-button", "standard", "start", "static", "status-bar", "stretch", "stroke", "sub", "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row", "table-row-group", "tamil", "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai", "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er", "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top", "trad-chinese-formal", "trad-chinese-informal", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent", "ultra-condensed", "ultra-expanded", "underline", "up", "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal", "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url", "var", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe", "windowtext", "words", "x-large", "x-small", "xor", "xx-large", "xx-small", "bicubic", "optimizespeed", "grayscale", "row", "row-reverse", "wrap", "wrap-reverse", "column-reverse", "flex-start", "flex-end", "space-between", "space-around", "unset"], C = ["in", "and", "or", "not", "is not", "is a", "is", "isnt", "defined", "if unless"], E = ["for", "if", "else", "unless", "from", "to"], U = ["null", "true", "false", "href", "title", "type", "not-allowed", "readonly", "disabled"], A = ["@font-face", "@keyframes", "@media", "@viewport", "@page", "@host", "@supports", "@block", "@css"], G = B.concat(
2
+ $,
3
+ I,
4
+ R,
5
+ O,
6
+ W,
7
+ S,
8
+ T,
9
+ N,
10
+ C,
11
+ E,
12
+ U,
13
+ A
14
+ );
15
+ function F(i) {
16
+ return i = i.sort(function(e, r) {
17
+ return r > e;
18
+ }), new RegExp("^((" + i.join(")|(") + "))\\b");
19
+ }
20
+ function p(i) {
21
+ for (var e = {}, r = 0; r < i.length; ++r)
22
+ e[i[r]] = !0;
23
+ return e;
24
+ }
25
+ function H(i) {
26
+ return i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
27
+ }
28
+ var J = p(B), j = /^(a|b|i|s|col|em)$/i, Q = p(O), ee = p(W), ie = p(T), re = p(S), ne = p($), oe = F($), te = p(R), ae = p(I), le = p(N), ce = /^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/, de = F(C), se = p(E), X = new RegExp(/^\-(moz|ms|o|webkit)-/i), ue = p(U), q = "", c = {}, g, m, P, t;
29
+ function fe(i, e) {
30
+ if (q = i.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/), e.context.line.firstWord = q ? q[0].replace(/^\s*/, "") : "", e.context.line.indent = i.indentation(), g = i.peek(), i.match("//"))
31
+ return i.skipToEnd(), ["comment", "comment"];
32
+ if (i.match("/*"))
33
+ return e.tokenize = K, K(i, e);
34
+ if (g == '"' || g == "'")
35
+ return i.next(), e.tokenize = Y(g), e.tokenize(i, e);
36
+ if (g == "@")
37
+ return i.next(), i.eatWhile(/[\w\\-]/), ["def", i.current()];
38
+ if (g == "#") {
39
+ if (i.next(), i.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))
40
+ return ["atom", "atom"];
41
+ if (i.match(/^[a-z][\w-]*/i))
42
+ return ["builtin", "hash"];
43
+ }
44
+ return i.match(X) ? ["meta", "vendor-prefixes"] : i.match(/^-?[0-9]?\.?[0-9]/) ? (i.eatWhile(/[a-z%]/i), ["number", "unit"]) : g == "!" ? (i.next(), [i.match(/^(important|optional)/i) ? "keyword" : "operator", "important"]) : g == "." && i.match(/^\.[a-z][\w-]*/i) ? ["qualifier", "qualifier"] : i.match(oe) ? (i.peek() == "(" && (e.tokenize = pe), ["property", "word"]) : i.match(/^[a-z][\w-]*\(/i) ? (i.backUp(1), ["keyword", "mixin"]) : i.match(/^(\+|-)[a-z][\w-]*\(/i) ? (i.backUp(1), ["keyword", "block-mixin"]) : i.string.match(/^\s*&/) && i.match(/^[-_]+[a-z][\w-]*/) ? ["qualifier", "qualifier"] : i.match(/^(\/|&)(-|_|:|\.|#|[a-z])/) ? (i.backUp(1), ["variableName.special", "reference"]) : i.match(/^&{1}\s*$/) ? ["variableName.special", "reference"] : i.match(de) ? ["operator", "operator"] : i.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i) ? i.match(/^(\.|\[)[\w-\'\"\]]+/i, !1) && !b(i.current()) ? (i.match("."), ["variable", "variable-name"]) : ["variable", "word"] : i.match(ce) ? ["operator", i.current()] : /[:;,{}\[\]\(\)]/.test(g) ? (i.next(), [null, g]) : (i.next(), [null, null]);
45
+ }
46
+ function K(i, e) {
47
+ for (var r = !1, o; (o = i.next()) != null; ) {
48
+ if (r && o == "/") {
49
+ e.tokenize = null;
50
+ break;
51
+ }
52
+ r = o == "*";
53
+ }
54
+ return ["comment", "comment"];
55
+ }
56
+ function Y(i) {
57
+ return function(e, r) {
58
+ for (var o = !1, l; (l = e.next()) != null; ) {
59
+ if (l == i && !o) {
60
+ i == ")" && e.backUp(1);
61
+ break;
62
+ }
63
+ o = !o && l == "\\";
64
+ }
65
+ return (l == i || !o && i != ")") && (r.tokenize = null), ["string", "string"];
66
+ };
67
+ }
68
+ function pe(i, e) {
69
+ return i.next(), i.match(/\s*[\"\')]/, !1) ? e.tokenize = null : e.tokenize = Y(")"), [null, "("];
70
+ }
71
+ function Z(i, e, r, o) {
72
+ this.type = i, this.indent = e, this.prev = r, this.line = o || { firstWord: "", indent: 0 };
73
+ }
74
+ function n(i, e, r, o) {
75
+ return o = o >= 0 ? o : e.indentUnit, i.context = new Z(r, e.indentation() + o, i.context), r;
76
+ }
77
+ function v(i, e, r) {
78
+ var o = i.context.indent - e.indentUnit;
79
+ return r = r || !1, i.context = i.context.prev, r && (i.context.indent = o), i.context.type;
80
+ }
81
+ function he(i, e, r) {
82
+ return c[r.context.type](i, e, r);
83
+ }
84
+ function _(i, e, r, o) {
85
+ for (var l = o || 1; l > 0; l--)
86
+ r.context = r.context.prev;
87
+ return he(i, e, r);
88
+ }
89
+ function b(i) {
90
+ return i.toLowerCase() in J;
91
+ }
92
+ function x(i) {
93
+ return i = i.toLowerCase(), i in Q || i in le;
94
+ }
95
+ function w(i) {
96
+ return i.toLowerCase() in se;
97
+ }
98
+ function L(i) {
99
+ return i.toLowerCase().match(X);
100
+ }
101
+ function y(i) {
102
+ var e = i.toLowerCase(), r = "variable";
103
+ return b(i) ? r = "tag" : w(i) ? r = "block-keyword" : x(i) ? r = "property" : e in ie || e in ue ? r = "atom" : e == "return" || e in re ? r = "keyword" : i.match(/^[A-Z]/) && (r = "string"), r;
104
+ }
105
+ function V(i, e) {
106
+ return a(e) && (i == "{" || i == "]" || i == "hash" || i == "qualifier") || i == "block-mixin";
107
+ }
108
+ function D(i, e) {
109
+ return i == "{" && e.match(/^\s*\$?[\w-]+/i, !1);
110
+ }
111
+ function M(i, e) {
112
+ return i == ":" && e.match(/^[a-z-]+/, !1);
113
+ }
114
+ function k(i) {
115
+ return i.sol() || i.string.match(new RegExp("^\\s*" + H(i.current())));
116
+ }
117
+ function a(i) {
118
+ return i.eol() || i.match(/^\s*$/, !1);
119
+ }
120
+ function u(i) {
121
+ var e = /^\s*[-_]*[a-z0-9]+[\w-]*/i, r = typeof i == "string" ? i.match(e) : i.string.match(e);
122
+ return r ? r[0].replace(/^\s*/, "") : "";
123
+ }
124
+ c.block = function(i, e, r) {
125
+ if (i == "comment" && k(e) || i == "," && a(e) || i == "mixin")
126
+ return n(r, e, "block", 0);
127
+ if (D(i, e))
128
+ return n(r, e, "interpolation");
129
+ if (a(e) && i == "]" && !/^\s*(\.|#|:|\[|\*|&)/.test(e.string) && !b(u(e)))
130
+ return n(r, e, "block", 0);
131
+ if (V(i, e))
132
+ return n(r, e, "block");
133
+ if (i == "}" && a(e))
134
+ return n(r, e, "block", 0);
135
+ if (i == "variable-name")
136
+ return e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/) || w(u(e)) ? n(r, e, "variableName") : n(r, e, "variableName", 0);
137
+ if (i == "=")
138
+ return !a(e) && !w(u(e)) ? n(r, e, "block", 0) : n(r, e, "block");
139
+ if (i == "*" && (a(e) || e.match(/\s*(,|\.|#|\[|:|{)/, !1)))
140
+ return t = "tag", n(r, e, "block");
141
+ if (M(i, e))
142
+ return n(r, e, "pseudo");
143
+ if (/@(font-face|media|supports|(-moz-)?document)/.test(i))
144
+ return n(r, e, a(e) ? "block" : "atBlock");
145
+ if (/@(-(moz|ms|o|webkit)-)?keyframes$/.test(i))
146
+ return n(r, e, "keyframes");
147
+ if (/@extends?/.test(i))
148
+ return n(r, e, "extend", 0);
149
+ if (i && i.charAt(0) == "@")
150
+ return e.indentation() > 0 && x(e.current().slice(1)) ? (t = "variable", "block") : /(@import|@require|@charset)/.test(i) ? n(r, e, "block", 0) : n(r, e, "block");
151
+ if (i == "reference" && a(e))
152
+ return n(r, e, "block");
153
+ if (i == "(")
154
+ return n(r, e, "parens");
155
+ if (i == "vendor-prefixes")
156
+ return n(r, e, "vendorPrefixes");
157
+ if (i == "word") {
158
+ var o = e.current();
159
+ if (t = y(o), t == "property")
160
+ return k(e) ? n(r, e, "block", 0) : (t = "atom", "block");
161
+ if (t == "tag") {
162
+ if (/embed|menu|pre|progress|sub|table/.test(o) && x(u(e)) || e.string.match(new RegExp("\\[\\s*" + o + "|" + o + "\\s*\\]")))
163
+ return t = "atom", "block";
164
+ if (j.test(o) && (k(e) && e.string.match(/=/) || !k(e) && !e.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/) && !b(u(e))))
165
+ return t = "variable", w(u(e)) ? "block" : n(r, e, "block", 0);
166
+ if (a(e))
167
+ return n(r, e, "block");
168
+ }
169
+ if (t == "block-keyword")
170
+ return t = "keyword", e.current(/(if|unless)/) && !k(e) ? "block" : n(r, e, "block");
171
+ if (o == "return")
172
+ return n(r, e, "block", 0);
173
+ if (t == "variable" && e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))
174
+ return n(r, e, "block");
175
+ }
176
+ return r.context.type;
177
+ };
178
+ c.parens = function(i, e, r) {
179
+ if (i == "(")
180
+ return n(r, e, "parens");
181
+ if (i == ")")
182
+ return r.context.prev.type == "parens" ? v(r, e) : e.string.match(/^[a-z][\w-]*\(/i) && a(e) || w(u(e)) || /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(u(e)) || !e.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/) && b(u(e)) ? n(r, e, "block") : e.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/) || e.string.match(/^\s*(\(|\)|[0-9])/) || e.string.match(/^\s+[a-z][\w-]*\(/i) || e.string.match(/^\s+[\$-]?[a-z]/i) ? n(r, e, "block", 0) : a(e) ? n(r, e, "block") : n(r, e, "block", 0);
183
+ if (i && i.charAt(0) == "@" && x(e.current().slice(1)) && (t = "variable"), i == "word") {
184
+ var o = e.current();
185
+ t = y(o), t == "tag" && j.test(o) && (t = "variable"), (t == "property" || o == "to") && (t = "atom");
186
+ }
187
+ return i == "variable-name" ? n(r, e, "variableName") : M(i, e) ? n(r, e, "pseudo") : r.context.type;
188
+ };
189
+ c.vendorPrefixes = function(i, e, r) {
190
+ return i == "word" ? (t = "property", n(r, e, "block", 0)) : v(r, e);
191
+ };
192
+ c.pseudo = function(i, e, r) {
193
+ return x(u(e.string)) ? _(i, e, r) : (e.match(/^[a-z-]+/), t = "variableName.special", a(e) ? n(r, e, "block") : v(r, e));
194
+ };
195
+ c.atBlock = function(i, e, r) {
196
+ if (i == "(")
197
+ return n(r, e, "atBlock_parens");
198
+ if (V(i, e))
199
+ return n(r, e, "block");
200
+ if (D(i, e))
201
+ return n(r, e, "interpolation");
202
+ if (i == "word") {
203
+ var o = e.current().toLowerCase();
204
+ if (/^(only|not|and|or)$/.test(o) ? t = "keyword" : ne.hasOwnProperty(o) ? t = "tag" : ae.hasOwnProperty(o) ? t = "attribute" : te.hasOwnProperty(o) ? t = "property" : ee.hasOwnProperty(o) ? t = "string.special" : t = y(e.current()), t == "tag" && a(e))
205
+ return n(r, e, "block");
206
+ }
207
+ return i == "operator" && /^(not|and|or)$/.test(e.current()) && (t = "keyword"), r.context.type;
208
+ };
209
+ c.atBlock_parens = function(i, e, r) {
210
+ if (i == "{" || i == "}")
211
+ return r.context.type;
212
+ if (i == ")")
213
+ return a(e) ? n(r, e, "block") : n(r, e, "atBlock");
214
+ if (i == "word") {
215
+ var o = e.current().toLowerCase();
216
+ return t = y(o), /^(max|min)/.test(o) && (t = "property"), t == "tag" && (j.test(o) ? t = "variable" : t = "atom"), r.context.type;
217
+ }
218
+ return c.atBlock(i, e, r);
219
+ };
220
+ c.keyframes = function(i, e, r) {
221
+ return e.indentation() == "0" && (i == "}" && k(e) || i == "]" || i == "hash" || i == "qualifier" || b(e.current())) ? _(i, e, r) : i == "{" ? n(r, e, "keyframes") : i == "}" ? k(e) ? v(r, e, !0) : n(r, e, "keyframes") : i == "unit" && /^[0-9]+\%$/.test(e.current()) ? n(r, e, "keyframes") : i == "word" && (t = y(e.current()), t == "block-keyword") ? (t = "keyword", n(r, e, "keyframes")) : /@(font-face|media|supports|(-moz-)?document)/.test(i) ? n(r, e, a(e) ? "block" : "atBlock") : i == "mixin" ? n(r, e, "block", 0) : r.context.type;
222
+ };
223
+ c.interpolation = function(i, e, r) {
224
+ return i == "{" && v(r, e) && n(r, e, "block"), i == "}" ? e.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i) || e.string.match(/^\s*[a-z]/i) && b(u(e)) ? n(r, e, "block") : !e.string.match(/^(\{|\s*\&)/) || e.match(/\s*[\w-]/, !1) ? n(r, e, "block", 0) : n(r, e, "block") : i == "variable-name" ? n(r, e, "variableName", 0) : (i == "word" && (t = y(e.current()), t == "tag" && (t = "atom")), r.context.type);
225
+ };
226
+ c.extend = function(i, e, r) {
227
+ return i == "[" || i == "=" ? "extend" : i == "]" ? v(r, e) : i == "word" ? (t = y(e.current()), "extend") : v(r, e);
228
+ };
229
+ c.variableName = function(i, e, r) {
230
+ return i == "string" || i == "[" || i == "]" || e.current().match(/^(\.|\$)/) ? (e.current().match(/^\.[\w-]+/i) && (t = "variable"), "variableName") : _(i, e, r);
231
+ };
232
+ const ge = {
233
+ name: "stylus",
234
+ startState: function() {
235
+ return {
236
+ tokenize: null,
237
+ state: "block",
238
+ context: new Z("block", 0, null)
239
+ };
240
+ },
241
+ token: function(i, e) {
242
+ return !e.tokenize && i.eatSpace() ? null : (m = (e.tokenize || fe)(i, e), m && typeof m == "object" && (P = m[1], m = m[0]), t = m, e.state = c[e.state](P, i, e), t);
243
+ },
244
+ indent: function(i, e, r) {
245
+ var o = i.context, l = e && e.charAt(0), f = o.indent, z = u(e), h = r.lineIndent(r.pos), d = i.context.prev ? i.context.prev.line.firstWord : "", s = i.context.prev ? i.context.prev.line.indent : h;
246
+ return o.prev && (l == "}" && (o.type == "block" || o.type == "atBlock" || o.type == "keyframes") || l == ")" && (o.type == "parens" || o.type == "atBlock_parens") || l == "{" && o.type == "at") ? f = o.indent - r.unit : /(\})/.test(l) || (/@|\$|\d/.test(l) || /^\{/.test(e) || /^\s*\/(\/|\*)/.test(e) || /^\s*\/\*/.test(d) || /^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(e) || /^(\+|-)?[a-z][\w-]*\(/i.test(e) || /^return/.test(e) || w(z) ? f = h : /(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l) || b(z) ? /\,\s*$/.test(d) ? f = s : !i.sol() && (/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(d) || b(d)) ? f = h <= s ? s : s + r.unit : f = h : !/,\s*$/.test(e) && (L(z) || x(z)) && (w(d) ? f = h <= s ? s : s + r.unit : /^\{/.test(d) ? f = h <= s ? h : s + r.unit : L(d) || x(d) ? f = h >= s ? s : h : /^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(d) || /=\s*$/.test(d) || b(d) || /^\$[\w-\.\[\]\'\"]/.test(d) ? f = s + r.unit : f = h)), f;
247
+ },
248
+ languageData: {
249
+ indentOnInput: /^\s*\}$/,
250
+ commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
251
+ autocomplete: G
252
+ }
253
+ };
254
+ export {
255
+ ge as stylus
256
+ };
@@ -0,0 +1,238 @@
1
+ function c(n) {
2
+ for (var e = {}, t = 0; t < n.length; t++)
3
+ e[n[t]] = !0;
4
+ return e;
5
+ }
6
+ var l = c([
7
+ "_",
8
+ "var",
9
+ "let",
10
+ "actor",
11
+ "class",
12
+ "enum",
13
+ "extension",
14
+ "import",
15
+ "protocol",
16
+ "struct",
17
+ "func",
18
+ "typealias",
19
+ "associatedtype",
20
+ "open",
21
+ "public",
22
+ "internal",
23
+ "fileprivate",
24
+ "private",
25
+ "deinit",
26
+ "init",
27
+ "new",
28
+ "override",
29
+ "self",
30
+ "subscript",
31
+ "super",
32
+ "convenience",
33
+ "dynamic",
34
+ "final",
35
+ "indirect",
36
+ "lazy",
37
+ "required",
38
+ "static",
39
+ "unowned",
40
+ "unowned(safe)",
41
+ "unowned(unsafe)",
42
+ "weak",
43
+ "as",
44
+ "is",
45
+ "break",
46
+ "case",
47
+ "continue",
48
+ "default",
49
+ "else",
50
+ "fallthrough",
51
+ "for",
52
+ "guard",
53
+ "if",
54
+ "in",
55
+ "repeat",
56
+ "switch",
57
+ "where",
58
+ "while",
59
+ "defer",
60
+ "return",
61
+ "inout",
62
+ "mutating",
63
+ "nonmutating",
64
+ "isolated",
65
+ "nonisolated",
66
+ "catch",
67
+ "do",
68
+ "rethrows",
69
+ "throw",
70
+ "throws",
71
+ "async",
72
+ "await",
73
+ "try",
74
+ "didSet",
75
+ "get",
76
+ "set",
77
+ "willSet",
78
+ "assignment",
79
+ "associativity",
80
+ "infix",
81
+ "left",
82
+ "none",
83
+ "operator",
84
+ "postfix",
85
+ "precedence",
86
+ "precedencegroup",
87
+ "prefix",
88
+ "right",
89
+ "Any",
90
+ "AnyObject",
91
+ "Type",
92
+ "dynamicType",
93
+ "Self",
94
+ "Protocol",
95
+ "__COLUMN__",
96
+ "__FILE__",
97
+ "__FUNCTION__",
98
+ "__LINE__"
99
+ ]), p = c(["var", "let", "actor", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "for"]), d = c(["true", "false", "nil", "self", "super", "_"]), v = c([
100
+ "Array",
101
+ "Bool",
102
+ "Character",
103
+ "Dictionary",
104
+ "Double",
105
+ "Float",
106
+ "Int",
107
+ "Int8",
108
+ "Int16",
109
+ "Int32",
110
+ "Int64",
111
+ "Never",
112
+ "Optional",
113
+ "Set",
114
+ "String",
115
+ "UInt8",
116
+ "UInt16",
117
+ "UInt32",
118
+ "UInt64",
119
+ "Void"
120
+ ]), h = "+-/*%=|&<>~^?!", _ = ":;,.(){}[]", s = /^\-?0b[01][01_]*/, k = /^\-?0o[0-7][0-7_]*/, x = /^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/, y = /^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/, g = /^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/, w = /^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/, z = /^\#[A-Za-z]+/, b = /^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;
121
+ function f(n, e, t) {
122
+ if (n.sol() && (e.indented = n.indentation()), n.eatSpace())
123
+ return null;
124
+ var i = n.peek();
125
+ if (i == "/") {
126
+ if (n.match("//"))
127
+ return n.skipToEnd(), "comment";
128
+ if (n.match("/*"))
129
+ return e.tokenize.push(a), a(n, e);
130
+ }
131
+ if (n.match(z))
132
+ return "builtin";
133
+ if (n.match(b))
134
+ return "attribute";
135
+ if (n.match(s) || n.match(k) || n.match(x) || n.match(y))
136
+ return "number";
137
+ if (n.match(w))
138
+ return "property";
139
+ if (h.indexOf(i) > -1)
140
+ return n.next(), "operator";
141
+ if (_.indexOf(i) > -1)
142
+ return n.next(), n.match(".."), "punctuation";
143
+ var r;
144
+ if (r = n.match(/("""|"|')/)) {
145
+ var o = I.bind(null, r[0]);
146
+ return e.tokenize.push(o), o(n, e);
147
+ }
148
+ if (n.match(g)) {
149
+ var u = n.current();
150
+ return v.hasOwnProperty(u) ? "type" : d.hasOwnProperty(u) ? "atom" : l.hasOwnProperty(u) ? (p.hasOwnProperty(u) && (e.prev = "define"), "keyword") : t == "define" ? "def" : "variable";
151
+ }
152
+ return n.next(), null;
153
+ }
154
+ function A() {
155
+ var n = 0;
156
+ return function(e, t, i) {
157
+ var r = f(e, t, i);
158
+ if (r == "punctuation") {
159
+ if (e.current() == "(")
160
+ ++n;
161
+ else if (e.current() == ")") {
162
+ if (n == 0)
163
+ return e.backUp(1), t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](e, t);
164
+ --n;
165
+ }
166
+ }
167
+ return r;
168
+ };
169
+ }
170
+ function I(n, e, t) {
171
+ for (var i = n.length == 1, r, o = !1; r = e.peek(); )
172
+ if (o) {
173
+ if (e.next(), r == "(")
174
+ return t.tokenize.push(A()), "string";
175
+ o = !1;
176
+ } else {
177
+ if (e.match(n))
178
+ return t.tokenize.pop(), "string";
179
+ e.next(), o = r == "\\";
180
+ }
181
+ return i && t.tokenize.pop(), "string";
182
+ }
183
+ function a(n, e) {
184
+ for (var t; t = n.next(); )
185
+ if (t === "/" && n.eat("*"))
186
+ e.tokenize.push(a);
187
+ else if (t === "*" && n.eat("/")) {
188
+ e.tokenize.pop();
189
+ break;
190
+ }
191
+ return "comment";
192
+ }
193
+ function O(n, e, t) {
194
+ this.prev = n, this.align = e, this.indented = t;
195
+ }
196
+ function m(n, e) {
197
+ var t = e.match(/^\s*($|\/[\/\*]|[)}\]])/, !1) ? null : e.column() + 1;
198
+ n.context = new O(n.context, t, n.indented);
199
+ }
200
+ function S(n) {
201
+ n.context && (n.indented = n.context.indented, n.context = n.context.prev);
202
+ }
203
+ const C = {
204
+ name: "swift",
205
+ startState: function() {
206
+ return {
207
+ prev: null,
208
+ context: null,
209
+ indented: 0,
210
+ tokenize: []
211
+ };
212
+ },
213
+ token: function(n, e) {
214
+ var t = e.prev;
215
+ e.prev = null;
216
+ var i = e.tokenize[e.tokenize.length - 1] || f, r = i(n, e, t);
217
+ if (!r || r == "comment" ? e.prev = t : e.prev || (e.prev = r), r == "punctuation") {
218
+ var o = /[\(\[\{]|([\]\)\}])/.exec(n.current());
219
+ o && (o[1] ? S : m)(e, n);
220
+ }
221
+ return r;
222
+ },
223
+ indent: function(n, e, t) {
224
+ var i = n.context;
225
+ if (!i)
226
+ return 0;
227
+ var r = /^[\]\}\)]/.test(e);
228
+ return i.align != null ? i.align - (r ? 1 : 0) : i.indented + (r ? 0 : t.unit);
229
+ },
230
+ languageData: {
231
+ indentOnInput: /^\s*[\)\}\]]$/,
232
+ commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
233
+ closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
234
+ }
235
+ };
236
+ export {
237
+ C as swift
238
+ };
@@ -0,0 +1,82 @@
1
+ function s(r) {
2
+ for (var n = {}, t = r.split(" "), e = 0; e < t.length; ++e)
3
+ n[t[e]] = !0;
4
+ return n;
5
+ }
6
+ var f = s("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"), u = s("if elseif else and not or eq ne in ni for foreach while switch"), c = /[+\-*&%=<>!?^\/\|]/;
7
+ function i(r, n, t) {
8
+ return n.tokenize = t, t(r, n);
9
+ }
10
+ function o(r, n) {
11
+ var t = n.beforeParams;
12
+ n.beforeParams = !1;
13
+ var e = r.next();
14
+ if ((e == '"' || e == "'") && n.inParams)
15
+ return i(r, n, p(e));
16
+ if (/[\[\]{}\(\),;\.]/.test(e))
17
+ return e == "(" && t ? n.inParams = !0 : e == ")" && (n.inParams = !1), null;
18
+ if (/\d/.test(e))
19
+ return r.eatWhile(/[\w\.]/), "number";
20
+ if (e == "#")
21
+ return r.eat("*") ? i(r, n, d) : e == "#" && r.match(/ *\[ *\[/) ? i(r, n, k) : (r.skipToEnd(), "comment");
22
+ if (e == '"')
23
+ return r.skipTo(/"/), "comment";
24
+ if (e == "$")
25
+ return r.eatWhile(/[$_a-z0-9A-Z\.{:]/), r.eatWhile(/}/), n.beforeParams = !0, "builtin";
26
+ if (c.test(e))
27
+ return r.eatWhile(c), "comment";
28
+ r.eatWhile(/[\w\$_{}\xa1-\uffff]/);
29
+ var a = r.current().toLowerCase();
30
+ return f && f.propertyIsEnumerable(a) ? "keyword" : u && u.propertyIsEnumerable(a) ? (n.beforeParams = !0, "keyword") : null;
31
+ }
32
+ function p(r) {
33
+ return function(n, t) {
34
+ for (var e = !1, a, l = !1; (a = n.next()) != null; ) {
35
+ if (a == r && !e) {
36
+ l = !0;
37
+ break;
38
+ }
39
+ e = !e && a == "\\";
40
+ }
41
+ return l && (t.tokenize = o), "string";
42
+ };
43
+ }
44
+ function d(r, n) {
45
+ for (var t = !1, e; e = r.next(); ) {
46
+ if (e == "#" && t) {
47
+ n.tokenize = o;
48
+ break;
49
+ }
50
+ t = e == "*";
51
+ }
52
+ return "comment";
53
+ }
54
+ function k(r, n) {
55
+ for (var t = 0, e; e = r.next(); ) {
56
+ if (e == "#" && t == 2) {
57
+ n.tokenize = o;
58
+ break;
59
+ }
60
+ e == "]" ? t++ : e != " " && (t = 0);
61
+ }
62
+ return "meta";
63
+ }
64
+ const m = {
65
+ name: "tcl",
66
+ startState: function() {
67
+ return {
68
+ tokenize: o,
69
+ beforeParams: !1,
70
+ inParams: !1
71
+ };
72
+ },
73
+ token: function(r, n) {
74
+ return r.eatSpace() ? null : n.tokenize(r, n);
75
+ },
76
+ languageData: {
77
+ commentTokens: { line: "#" }
78
+ }
79
+ };
80
+ export {
81
+ m as tcl
82
+ };