@aiao/code-editor 0.0.7 → 0.0.9

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 (125) hide show
  1. package/dist/apl-B2DGVGxc.js +76 -0
  2. package/dist/asciiarmor-2LVJmxlE.js +34 -0
  3. package/dist/asn1-jKiBa2Ya.js +95 -0
  4. package/dist/asterisk-DS281yxp.js +271 -0
  5. package/dist/brainfuck-C_p9pTT8.js +34 -0
  6. package/dist/clike-BMALKCNj.js +620 -0
  7. package/dist/clojure-CCKyeQKf.js +800 -0
  8. package/dist/cmake-CuaCgAKt.js +28 -0
  9. package/dist/cobol-BlTKFDRj.js +72 -0
  10. package/dist/coffeescript-BVCvwO8I.js +179 -0
  11. package/dist/commonlisp-D_kxz07b.js +75 -0
  12. package/dist/crystal-D309uH6_.js +217 -0
  13. package/dist/css-BkF-NPzE.js +1553 -0
  14. package/dist/cypher-BMq4Fwjl.js +68 -0
  15. package/dist/d-BZcgY6La.js +127 -0
  16. package/dist/diff-Cg9d_RX2.js +18 -0
  17. package/dist/dockerfile-DFX8bq9N.js +194 -0
  18. package/dist/dtd-CtLokQ-U.js +84 -0
  19. package/dist/dylan-QYeExnWK.js +234 -0
  20. package/dist/ebnf-DUPDuY4r.js +78 -0
  21. package/dist/ecl-CiXN-g_D.js +121 -0
  22. package/dist/eiffel-yQhjl4T1.js +110 -0
  23. package/dist/elm-CNT9vbN0.js +108 -0
  24. package/dist/erlang-CFOYdy9e.js +487 -0
  25. package/dist/factor-Clf6BoVk.js +65 -0
  26. package/dist/fcl-CPC2WYrI.js +103 -0
  27. package/dist/forth-BmxRyE9S.js +60 -0
  28. package/dist/fortran-9bvPyrOW.js +442 -0
  29. package/dist/gas-cpmYfFX2.js +183 -0
  30. package/dist/gherkin-CJuwpceU.js +34 -0
  31. package/dist/groovy-DZeT_VM-.js +146 -0
  32. package/dist/haskell-CxiO_7JL.js +375 -0
  33. package/dist/haxe-70NVW1pR.js +359 -0
  34. package/dist/http-D9LttvKF.js +44 -0
  35. package/dist/idl-B6TRFYjl.js +947 -0
  36. package/dist/index-4oLq9F9B.js +945 -0
  37. package/dist/index-9NH8hlZ-.js +342 -0
  38. package/dist/index-BFXNCCbG.js +253 -0
  39. package/dist/index-BLHYcXXK.js +101 -0
  40. package/dist/index-BQU3Rb2C.js +290 -0
  41. package/dist/index-Bg18ePld.js +157 -0
  42. package/dist/index-Bp5lqnbN.js +555 -0
  43. package/dist/index-Bqzq8A1N.js +59 -0
  44. package/dist/index-Bx-s4g99.js +76 -0
  45. package/dist/index-BxX25QmV.js +248 -0
  46. package/dist/index-CFCzgc33.js +1918 -0
  47. package/dist/index-CL7JTU9M.js +136 -0
  48. package/dist/index-CZGsg2Zk.js +12945 -0
  49. package/dist/index-CipmEceX.js +74 -0
  50. package/dist/index-Cv4vvpa2.js +1305 -0
  51. package/dist/index-D4hhdPbZ.js +6153 -0
  52. package/dist/index-DhNQ8g9I.js +270 -0
  53. package/dist/index-Djp53tAP.js +94 -0
  54. package/dist/index-KlsAFhIj.js +566 -0
  55. package/dist/index-OntZqtu6.js +309 -0
  56. package/dist/index-PGnZjMCR.js +302 -0
  57. package/dist/index-TyYoYgss.js +613 -0
  58. package/dist/index-oMSPmlXA.js +960 -0
  59. package/dist/index-rQC6Gbk0.js +138 -0
  60. package/dist/index.d.ts +1 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +19 -1
  63. package/dist/javascript-DOuB9oqA.js +691 -0
  64. package/dist/julia-DpvXAuO6.js +241 -0
  65. package/dist/languages.d.ts +18 -0
  66. package/dist/languages.d.ts.map +1 -0
  67. package/dist/livescript-CanGTf8u.js +272 -0
  68. package/dist/lua-XplVlWi_.js +217 -0
  69. package/dist/mathematica-jaRHnSxC.js +35 -0
  70. package/dist/mbox-BctzC1hL.js +76 -0
  71. package/dist/mirc-CFBPAOaF.js +72 -0
  72. package/dist/mllike-BSnXJBGA.js +272 -0
  73. package/dist/modelica-vUgVs--1.js +93 -0
  74. package/dist/mscgen-Cpl0NYLN.js +104 -0
  75. package/dist/mumps-CQoS1kWX.js +25 -0
  76. package/dist/nginx-zDPm3Z74.js +89 -0
  77. package/dist/nsis-BCLyjY7m.js +62 -0
  78. package/dist/ntriples-CsNjv2QF.js +79 -0
  79. package/dist/octave-C8PmmSRH.js +143 -0
  80. package/dist/oz-Ce8aN8oE.js +151 -0
  81. package/dist/pascal-De0D6mP7.js +77 -0
  82. package/dist/perl-B4bSCe1C.js +915 -0
  83. package/dist/pig-D24Z8EXi.js +54 -0
  84. package/dist/powershell-DkYVfTzP.js +249 -0
  85. package/dist/properties-Dn9wna3M.js +26 -0
  86. package/dist/protobuf-BPIjwpzm.js +49 -0
  87. package/dist/pug-TGXr6c5j.js +248 -0
  88. package/dist/puppet-nyd4dhjf.js +45 -0
  89. package/dist/python-BkR3uSy8.js +313 -0
  90. package/dist/q-DyHZGnqm.js +86 -0
  91. package/dist/r-LKEuhEGI.js +104 -0
  92. package/dist/rpm-IznJm2Xc.js +57 -0
  93. package/dist/ruby-CcYfvIk6.js +228 -0
  94. package/dist/sas-7E8yHoCW.js +105 -0
  95. package/dist/scheme-DjibxsNh.js +124 -0
  96. package/dist/shell-C0C2sNA_.js +182 -0
  97. package/dist/sieve-Bwz7vjP5.js +72 -0
  98. package/dist/simple-mode-mNVtnu0l.js +89 -0
  99. package/dist/smalltalk-Bhddl2pB.js +48 -0
  100. package/dist/solr-BNlsLglM.js +41 -0
  101. package/dist/sparql-FarWu_Gb.js +197 -0
  102. package/dist/spreadsheet-C-cy4P5N.js +49 -0
  103. package/dist/sql-CfG5lQ3l.js +282 -0
  104. package/dist/stex-Du4h4KAU.js +129 -0
  105. package/dist/stylus-CAdqWld3.js +250 -0
  106. package/dist/swift-DSxqR9R6.js +230 -0
  107. package/dist/tcl-xfoLljhY.js +81 -0
  108. package/dist/textile-D1AWE-pc.js +295 -0
  109. package/dist/tiddlywiki-5wqsXtSk.js +155 -0
  110. package/dist/tiki-__Kn3CeS.js +181 -0
  111. package/dist/toml-DWAmxCjl.js +58 -0
  112. package/dist/troff-D2UO-fKf.js +35 -0
  113. package/dist/ttcn-Bsa4sfRm.js +123 -0
  114. package/dist/ttcn-cfg-Bac_acMi.js +88 -0
  115. package/dist/turtle-xwJUxoPV.js +80 -0
  116. package/dist/vb-c2kQGd6-.js +74 -0
  117. package/dist/vbscript-1f_Dhg5H.js +324 -0
  118. package/dist/velocity-DJd0pTTC.js +96 -0
  119. package/dist/verilog-CiS1jyi5.js +262 -0
  120. package/dist/vhdl-T9HkrbI2.js +106 -0
  121. package/dist/webidl-CjfDENEo.js +155 -0
  122. package/dist/xquery-Ct6lEb4B.js +422 -0
  123. package/dist/yacas-C0absKBh.js +73 -0
  124. package/dist/z80-Pki2zAjW.js +61 -0
  125. package/package.json +16 -7
@@ -0,0 +1,250 @@
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"], R = ["all", "aural", "braille", "handheld", "print", "projection", "screen", "tty", "tv", "embossed"], I = ["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"], C = ["font-family", "src", "unicode-range", "font-variant", "font-feature-settings", "font-stretch", "font-weight", "font-style"], N = ["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"], S = ["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"], T = ["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
+ R,
4
+ I,
5
+ O,
6
+ W,
7
+ N,
8
+ S,
9
+ C,
10
+ T,
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) e[i[r]] = !0;
22
+ return e;
23
+ }
24
+ function H(i) {
25
+ return i.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
26
+ }
27
+ var J = p(B), j = /^(a|b|i|s|col|em)$/i, Q = p(O), ee = p(W), ie = p(S), re = p(N), ne = p($), oe = F($), te = p(I), ae = p(R), le = p(C), ce = /^\s*([.]{2,3}|&&|\|\||\*\*|[?!=:]?=|[-+*\/%<>]=?|\?:|\~)/, de = F(T), se = p(E), X = new RegExp(/^\-(moz|ms|o|webkit)-/i), ue = p(U), q = "", c = {}, g, m, P, t;
28
+ function fe(i, e) {
29
+ 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("//"))
30
+ return i.skipToEnd(), ["comment", "comment"];
31
+ if (i.match("/*"))
32
+ return e.tokenize = K, K(i, e);
33
+ if (g == '"' || g == "'")
34
+ return i.next(), e.tokenize = Y(g), e.tokenize(i, e);
35
+ if (g == "@")
36
+ return i.next(), i.eatWhile(/[\w\\-]/), ["def", i.current()];
37
+ if (g == "#") {
38
+ if (i.next(), i.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))
39
+ return ["atom", "atom"];
40
+ if (i.match(/^[a-z][\w-]*/i))
41
+ return ["builtin", "hash"];
42
+ }
43
+ 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]);
44
+ }
45
+ function K(i, e) {
46
+ for (var r = !1, o; (o = i.next()) != null; ) {
47
+ if (r && o == "/") {
48
+ e.tokenize = null;
49
+ break;
50
+ }
51
+ r = o == "*";
52
+ }
53
+ return ["comment", "comment"];
54
+ }
55
+ function Y(i) {
56
+ return function(e, r) {
57
+ for (var o = !1, l; (l = e.next()) != null; ) {
58
+ if (l == i && !o) {
59
+ i == ")" && e.backUp(1);
60
+ break;
61
+ }
62
+ o = !o && l == "\\";
63
+ }
64
+ return (l == i || !o && i != ")") && (r.tokenize = null), ["string", "string"];
65
+ };
66
+ }
67
+ function pe(i, e) {
68
+ return i.next(), i.match(/\s*[\"\')]/, !1) ? e.tokenize = null : e.tokenize = Y(")"), [null, "("];
69
+ }
70
+ function Z(i, e, r, o) {
71
+ this.type = i, this.indent = e, this.prev = r, this.line = o || { firstWord: "", indent: 0 };
72
+ }
73
+ function n(i, e, r, o) {
74
+ return o = o >= 0 ? o : e.indentUnit, i.context = new Z(r, e.indentation() + o, i.context), r;
75
+ }
76
+ function v(i, e, r) {
77
+ var o = i.context.indent - e.indentUnit;
78
+ return r = r || !1, i.context = i.context.prev, r && (i.context.indent = o), i.context.type;
79
+ }
80
+ function he(i, e, r) {
81
+ return c[r.context.type](i, e, r);
82
+ }
83
+ function _(i, e, r, o) {
84
+ for (var l = 1; l > 0; l--)
85
+ r.context = r.context.prev;
86
+ return he(i, e, r);
87
+ }
88
+ function b(i) {
89
+ return i.toLowerCase() in J;
90
+ }
91
+ function x(i) {
92
+ return i = i.toLowerCase(), i in Q || i in le;
93
+ }
94
+ function w(i) {
95
+ return i.toLowerCase() in se;
96
+ }
97
+ function L(i) {
98
+ return i.toLowerCase().match(X);
99
+ }
100
+ function y(i) {
101
+ var e = i.toLowerCase(), r = "variable";
102
+ 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;
103
+ }
104
+ function V(i, e) {
105
+ return a(e) && (i == "{" || i == "]" || i == "hash" || i == "qualifier") || i == "block-mixin";
106
+ }
107
+ function D(i, e) {
108
+ return i == "{" && e.match(/^\s*\$?[\w-]+/i, !1);
109
+ }
110
+ function M(i, e) {
111
+ return i == ":" && e.match(/^[a-z-]+/, !1);
112
+ }
113
+ function k(i) {
114
+ return i.sol() || i.string.match(new RegExp("^\\s*" + H(i.current())));
115
+ }
116
+ function a(i) {
117
+ return i.eol() || i.match(/^\s*$/, !1);
118
+ }
119
+ function u(i) {
120
+ var e = /^\s*[-_]*[a-z0-9]+[\w-]*/i, r = typeof i == "string" ? i.match(e) : i.string.match(e);
121
+ return r ? r[0].replace(/^\s*/, "") : "";
122
+ }
123
+ c.block = function(i, e, r) {
124
+ if (i == "comment" && k(e) || i == "," && a(e) || i == "mixin")
125
+ return n(r, e, "block", 0);
126
+ if (D(i, e))
127
+ return n(r, e, "interpolation");
128
+ if (a(e) && i == "]" && !/^\s*(\.|#|:|\[|\*|&)/.test(e.string) && !b(u(e)))
129
+ return n(r, e, "block", 0);
130
+ if (V(i, e))
131
+ return n(r, e, "block");
132
+ if (i == "}" && a(e))
133
+ return n(r, e, "block", 0);
134
+ if (i == "variable-name")
135
+ return e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/) || w(u(e)) ? n(r, e, "variableName") : n(r, e, "variableName", 0);
136
+ if (i == "=")
137
+ return !a(e) && !w(u(e)) ? n(r, e, "block", 0) : n(r, e, "block");
138
+ if (i == "*" && (a(e) || e.match(/\s*(,|\.|#|\[|:|{)/, !1)))
139
+ return t = "tag", n(r, e, "block");
140
+ if (M(i, e))
141
+ return n(r, e, "pseudo");
142
+ if (/@(font-face|media|supports|(-moz-)?document)/.test(i))
143
+ return n(r, e, a(e) ? "block" : "atBlock");
144
+ if (/@(-(moz|ms|o|webkit)-)?keyframes$/.test(i))
145
+ return n(r, e, "keyframes");
146
+ if (/@extends?/.test(i))
147
+ return n(r, e, "extend", 0);
148
+ if (i && i.charAt(0) == "@")
149
+ 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");
150
+ if (i == "reference" && a(e))
151
+ return n(r, e, "block");
152
+ if (i == "(")
153
+ return n(r, e, "parens");
154
+ if (i == "vendor-prefixes")
155
+ return n(r, e, "vendorPrefixes");
156
+ if (i == "word") {
157
+ var o = e.current();
158
+ if (t = y(o), t == "property")
159
+ return k(e) ? n(r, e, "block", 0) : (t = "atom", "block");
160
+ if (t == "tag") {
161
+ if (/embed|menu|pre|progress|sub|table/.test(o) && x(u(e)) || e.string.match(new RegExp("\\[\\s*" + o + "|" + o + "\\s*\\]")))
162
+ return t = "atom", "block";
163
+ if (j.test(o) && (k(e) && e.string.match(/=/) || !k(e) && !e.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/) && !b(u(e))))
164
+ return t = "variable", w(u(e)) ? "block" : n(r, e, "block", 0);
165
+ if (a(e)) return n(r, e, "block");
166
+ }
167
+ if (t == "block-keyword")
168
+ return t = "keyword", e.current(/(if|unless)/) && !k(e) ? "block" : n(r, e, "block");
169
+ if (o == "return") return n(r, e, "block", 0);
170
+ if (t == "variable" && e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))
171
+ return n(r, e, "block");
172
+ }
173
+ return r.context.type;
174
+ };
175
+ c.parens = function(i, e, r) {
176
+ if (i == "(") return n(r, e, "parens");
177
+ if (i == ")")
178
+ 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);
179
+ if (i && i.charAt(0) == "@" && x(e.current().slice(1)) && (t = "variable"), i == "word") {
180
+ var o = e.current();
181
+ t = y(o), t == "tag" && j.test(o) && (t = "variable"), (t == "property" || o == "to") && (t = "atom");
182
+ }
183
+ return i == "variable-name" ? n(r, e, "variableName") : M(i, e) ? n(r, e, "pseudo") : r.context.type;
184
+ };
185
+ c.vendorPrefixes = function(i, e, r) {
186
+ return i == "word" ? (t = "property", n(r, e, "block", 0)) : v(r, e);
187
+ };
188
+ c.pseudo = function(i, e, r) {
189
+ return x(u(e.string)) ? _(i, e, r) : (e.match(/^[a-z-]+/), t = "variableName.special", a(e) ? n(r, e, "block") : v(r, e));
190
+ };
191
+ c.atBlock = function(i, e, r) {
192
+ if (i == "(") return n(r, e, "atBlock_parens");
193
+ if (V(i, e))
194
+ return n(r, e, "block");
195
+ if (D(i, e))
196
+ return n(r, e, "interpolation");
197
+ if (i == "word") {
198
+ var o = e.current().toLowerCase();
199
+ 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))
200
+ return n(r, e, "block");
201
+ }
202
+ return i == "operator" && /^(not|and|or)$/.test(e.current()) && (t = "keyword"), r.context.type;
203
+ };
204
+ c.atBlock_parens = function(i, e, r) {
205
+ if (i == "{" || i == "}") return r.context.type;
206
+ if (i == ")")
207
+ return a(e) ? n(r, e, "block") : n(r, e, "atBlock");
208
+ if (i == "word") {
209
+ var o = e.current().toLowerCase();
210
+ return t = y(o), /^(max|min)/.test(o) && (t = "property"), t == "tag" && (j.test(o) ? t = "variable" : t = "atom"), r.context.type;
211
+ }
212
+ return c.atBlock(i, e, r);
213
+ };
214
+ c.keyframes = function(i, e, r) {
215
+ 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;
216
+ };
217
+ c.interpolation = function(i, e, r) {
218
+ 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);
219
+ };
220
+ c.extend = function(i, e, r) {
221
+ return i == "[" || i == "=" ? "extend" : i == "]" ? v(r, e) : i == "word" ? (t = y(e.current()), "extend") : v(r, e);
222
+ };
223
+ c.variableName = function(i, e, r) {
224
+ return i == "string" || i == "[" || i == "]" || e.current().match(/^(\.|\$)/) ? (e.current().match(/^\.[\w-]+/i) && (t = "variable"), "variableName") : _(i, e, r);
225
+ };
226
+ const ge = {
227
+ name: "stylus",
228
+ startState: function() {
229
+ return {
230
+ tokenize: null,
231
+ state: "block",
232
+ context: new Z("block", 0, null)
233
+ };
234
+ },
235
+ token: function(i, e) {
236
+ 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);
237
+ },
238
+ indent: function(i, e, r) {
239
+ var o = i.context, l = e && e.charAt(0), f = o.indent, z = u(e), h = o.line.indent, d = i.context.prev ? i.context.prev.line.firstWord : "", s = i.context.prev ? i.context.prev.line.indent : h;
240
+ 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 : /(\.|#|:|\[|\*|&|>|~|\+|\/)/.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;
241
+ },
242
+ languageData: {
243
+ indentOnInput: /^\s*\}$/,
244
+ commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
245
+ autocomplete: G
246
+ }
247
+ };
248
+ export {
249
+ ge as stylus
250
+ };
@@ -0,0 +1,230 @@
1
+ function c(n) {
2
+ for (var e = {}, t = 0; t < n.length; t++) e[n[t]] = !0;
3
+ return e;
4
+ }
5
+ var l = c([
6
+ "_",
7
+ "var",
8
+ "let",
9
+ "actor",
10
+ "class",
11
+ "enum",
12
+ "extension",
13
+ "import",
14
+ "protocol",
15
+ "struct",
16
+ "func",
17
+ "typealias",
18
+ "associatedtype",
19
+ "open",
20
+ "public",
21
+ "internal",
22
+ "fileprivate",
23
+ "private",
24
+ "deinit",
25
+ "init",
26
+ "new",
27
+ "override",
28
+ "self",
29
+ "subscript",
30
+ "super",
31
+ "convenience",
32
+ "dynamic",
33
+ "final",
34
+ "indirect",
35
+ "lazy",
36
+ "required",
37
+ "static",
38
+ "unowned",
39
+ "unowned(safe)",
40
+ "unowned(unsafe)",
41
+ "weak",
42
+ "as",
43
+ "is",
44
+ "break",
45
+ "case",
46
+ "continue",
47
+ "default",
48
+ "else",
49
+ "fallthrough",
50
+ "for",
51
+ "guard",
52
+ "if",
53
+ "in",
54
+ "repeat",
55
+ "switch",
56
+ "where",
57
+ "while",
58
+ "defer",
59
+ "return",
60
+ "inout",
61
+ "mutating",
62
+ "nonmutating",
63
+ "isolated",
64
+ "nonisolated",
65
+ "catch",
66
+ "do",
67
+ "rethrows",
68
+ "throw",
69
+ "throws",
70
+ "async",
71
+ "await",
72
+ "try",
73
+ "didSet",
74
+ "get",
75
+ "set",
76
+ "willSet",
77
+ "assignment",
78
+ "associativity",
79
+ "infix",
80
+ "left",
81
+ "none",
82
+ "operator",
83
+ "postfix",
84
+ "precedence",
85
+ "precedencegroup",
86
+ "prefix",
87
+ "right",
88
+ "Any",
89
+ "AnyObject",
90
+ "Type",
91
+ "dynamicType",
92
+ "Self",
93
+ "Protocol",
94
+ "__COLUMN__",
95
+ "__FILE__",
96
+ "__FUNCTION__",
97
+ "__LINE__"
98
+ ]), p = c(["var", "let", "actor", "class", "enum", "extension", "import", "protocol", "struct", "func", "typealias", "associatedtype", "for"]), d = c(["true", "false", "nil", "self", "super", "_"]), v = c([
99
+ "Array",
100
+ "Bool",
101
+ "Character",
102
+ "Dictionary",
103
+ "Double",
104
+ "Float",
105
+ "Int",
106
+ "Int8",
107
+ "Int16",
108
+ "Int32",
109
+ "Int64",
110
+ "Never",
111
+ "Optional",
112
+ "Set",
113
+ "String",
114
+ "UInt8",
115
+ "UInt16",
116
+ "UInt32",
117
+ "UInt64",
118
+ "Void"
119
+ ]), 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)/;
120
+ function f(n, e, t) {
121
+ if (n.sol() && (e.indented = n.indentation()), n.eatSpace()) return null;
122
+ var i = n.peek();
123
+ if (i == "/") {
124
+ if (n.match("//"))
125
+ return n.skipToEnd(), "comment";
126
+ if (n.match("/*"))
127
+ return e.tokenize.push(a), a(n, e);
128
+ }
129
+ if (n.match(z)) return "builtin";
130
+ if (n.match(b)) return "attribute";
131
+ if (n.match(s) || n.match(k) || n.match(x) || n.match(y)) return "number";
132
+ if (n.match(w)) return "property";
133
+ if (h.indexOf(i) > -1)
134
+ return n.next(), "operator";
135
+ if (_.indexOf(i) > -1)
136
+ return n.next(), n.match(".."), "punctuation";
137
+ var r;
138
+ if (r = n.match(/("""|"|')/)) {
139
+ var o = I.bind(null, r[0]);
140
+ return e.tokenize.push(o), o(n, e);
141
+ }
142
+ if (n.match(g)) {
143
+ var u = n.current();
144
+ return v.hasOwnProperty(u) ? "type" : d.hasOwnProperty(u) ? "atom" : l.hasOwnProperty(u) ? (p.hasOwnProperty(u) && (e.prev = "define"), "keyword") : t == "define" ? "def" : "variable";
145
+ }
146
+ return n.next(), null;
147
+ }
148
+ function A() {
149
+ var n = 0;
150
+ return function(e, t, i) {
151
+ var r = f(e, t, i);
152
+ if (r == "punctuation") {
153
+ if (e.current() == "(") ++n;
154
+ else if (e.current() == ")") {
155
+ if (n == 0)
156
+ return e.backUp(1), t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](e, t);
157
+ --n;
158
+ }
159
+ }
160
+ return r;
161
+ };
162
+ }
163
+ function I(n, e, t) {
164
+ for (var i = n.length == 1, r, o = !1; r = e.peek(); )
165
+ if (o) {
166
+ if (e.next(), r == "(")
167
+ return t.tokenize.push(A()), "string";
168
+ o = !1;
169
+ } else {
170
+ if (e.match(n))
171
+ return t.tokenize.pop(), "string";
172
+ e.next(), o = r == "\\";
173
+ }
174
+ return i && t.tokenize.pop(), "string";
175
+ }
176
+ function a(n, e) {
177
+ for (var t; t = n.next(); )
178
+ if (t === "/" && n.eat("*"))
179
+ e.tokenize.push(a);
180
+ else if (t === "*" && n.eat("/")) {
181
+ e.tokenize.pop();
182
+ break;
183
+ }
184
+ return "comment";
185
+ }
186
+ function O(n, e, t) {
187
+ this.prev = n, this.align = e, this.indented = t;
188
+ }
189
+ function m(n, e) {
190
+ var t = e.match(/^\s*($|\/[\/\*]|[)}\]])/, !1) ? null : e.column() + 1;
191
+ n.context = new O(n.context, t, n.indented);
192
+ }
193
+ function S(n) {
194
+ n.context && (n.indented = n.context.indented, n.context = n.context.prev);
195
+ }
196
+ const C = {
197
+ name: "swift",
198
+ startState: function() {
199
+ return {
200
+ prev: null,
201
+ context: null,
202
+ indented: 0,
203
+ tokenize: []
204
+ };
205
+ },
206
+ token: function(n, e) {
207
+ var t = e.prev;
208
+ e.prev = null;
209
+ var i = e.tokenize[e.tokenize.length - 1] || f, r = i(n, e, t);
210
+ if (!r || r == "comment" ? e.prev = t : e.prev || (e.prev = r), r == "punctuation") {
211
+ var o = /[\(\[\{]|([\]\)\}])/.exec(n.current());
212
+ o && (o[1] ? S : m)(e, n);
213
+ }
214
+ return r;
215
+ },
216
+ indent: function(n, e, t) {
217
+ var i = n.context;
218
+ if (!i) return 0;
219
+ var r = /^[\]\}\)]/.test(e);
220
+ return i.align != null ? i.align - (r ? 1 : 0) : i.indented + (r ? 0 : t.unit);
221
+ },
222
+ languageData: {
223
+ indentOnInput: /^\s*[\)\}\]]$/,
224
+ commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
225
+ closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
226
+ }
227
+ };
228
+ export {
229
+ C as swift
230
+ };
@@ -0,0 +1,81 @@
1
+ function s(r) {
2
+ for (var n = {}, t = r.split(" "), e = 0; e < t.length; ++e) n[t[e]] = !0;
3
+ return n;
4
+ }
5
+ 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 = /[+\-*&%=<>!?^\/\|]/;
6
+ function i(r, n, t) {
7
+ return n.tokenize = t, t(r, n);
8
+ }
9
+ function o(r, n) {
10
+ var t = n.beforeParams;
11
+ n.beforeParams = !1;
12
+ var e = r.next();
13
+ if ((e == '"' || e == "'") && n.inParams)
14
+ return i(r, n, p(e));
15
+ if (/[\[\]{}\(\),;\.]/.test(e))
16
+ return e == "(" && t ? n.inParams = !0 : e == ")" && (n.inParams = !1), null;
17
+ if (/\d/.test(e))
18
+ return r.eatWhile(/[\w\.]/), "number";
19
+ if (e == "#")
20
+ return r.eat("*") ? i(r, n, d) : e == "#" && r.match(/ *\[ *\[/) ? i(r, n, k) : (r.skipToEnd(), "comment");
21
+ if (e == '"')
22
+ return r.skipTo(/"/), "comment";
23
+ if (e == "$")
24
+ return r.eatWhile(/[$_a-z0-9A-Z\.{:]/), r.eatWhile(/}/), n.beforeParams = !0, "builtin";
25
+ if (c.test(e))
26
+ return r.eatWhile(c), "comment";
27
+ r.eatWhile(/[\w\$_{}\xa1-\uffff]/);
28
+ var a = r.current().toLowerCase();
29
+ return f && f.propertyIsEnumerable(a) ? "keyword" : u && u.propertyIsEnumerable(a) ? (n.beforeParams = !0, "keyword") : null;
30
+ }
31
+ function p(r) {
32
+ return function(n, t) {
33
+ for (var e = !1, a, l = !1; (a = n.next()) != null; ) {
34
+ if (a == r && !e) {
35
+ l = !0;
36
+ break;
37
+ }
38
+ e = !e && a == "\\";
39
+ }
40
+ return l && (t.tokenize = o), "string";
41
+ };
42
+ }
43
+ function d(r, n) {
44
+ for (var t = !1, e; e = r.next(); ) {
45
+ if (e == "#" && t) {
46
+ n.tokenize = o;
47
+ break;
48
+ }
49
+ t = e == "*";
50
+ }
51
+ return "comment";
52
+ }
53
+ function k(r, n) {
54
+ for (var t = 0, e; e = r.next(); ) {
55
+ if (e == "#" && t == 2) {
56
+ n.tokenize = o;
57
+ break;
58
+ }
59
+ e == "]" ? t++ : e != " " && (t = 0);
60
+ }
61
+ return "meta";
62
+ }
63
+ const m = {
64
+ name: "tcl",
65
+ startState: function() {
66
+ return {
67
+ tokenize: o,
68
+ beforeParams: !1,
69
+ inParams: !1
70
+ };
71
+ },
72
+ token: function(r, n) {
73
+ return r.eatSpace() ? null : n.tokenize(r, n);
74
+ },
75
+ languageData: {
76
+ commentTokens: { line: "#" }
77
+ }
78
+ };
79
+ export {
80
+ m as tcl
81
+ };