zs_library 0.4.8 → 0.4.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 (116) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +11245 -6
  3. package/package.json +146 -146
  4. package/dist/apl-DzB7vleG.js +0 -77
  5. package/dist/asciiarmor-GBg_dTix.js +0 -35
  6. package/dist/asn1-C3znSLx9.js +0 -96
  7. package/dist/asterisk-DlqRFsge.js +0 -272
  8. package/dist/brainfuck-BRsrPeoO.js +0 -35
  9. package/dist/clike-BvRdj3ii.js +0 -621
  10. package/dist/clojure-DoHCnq3P.js +0 -801
  11. package/dist/cmake-lga2BQKc.js +0 -29
  12. package/dist/cobol-CoUZEClC.js +0 -73
  13. package/dist/coffeescript-DtzhVgPb.js +0 -180
  14. package/dist/commonlisp-Dczl5pgK.js +0 -76
  15. package/dist/crystal-CGcK8mnw.js +0 -218
  16. package/dist/css-BSROsPdq.js +0 -1561
  17. package/dist/cypher-DtSMl1Mv.js +0 -69
  18. package/dist/d-Dvhr70b-.js +0 -128
  19. package/dist/diff-CGwDp7kO.js +0 -19
  20. package/dist/dockerfile-comEO-T6.js +0 -195
  21. package/dist/dtd-CCHJ68ra.js +0 -85
  22. package/dist/dylan-DuvcMu5H.js +0 -235
  23. package/dist/ebnf-40BT7kIS.js +0 -79
  24. package/dist/ecl-D1uoNQJW.js +0 -122
  25. package/dist/eiffel-5pGo0kXa.js +0 -111
  26. package/dist/elm-BaiVOLJD.js +0 -109
  27. package/dist/erlang-CkzodiGe.js +0 -488
  28. package/dist/factor-BOXOAn_M.js +0 -66
  29. package/dist/fcl-BpnTn_eU.js +0 -104
  30. package/dist/forth-DErAeAEb.js +0 -61
  31. package/dist/fortran-D2-6KpzO.js +0 -443
  32. package/dist/gas-DyEPANLH.js +0 -184
  33. package/dist/gherkin-Drt_srgO.js +0 -35
  34. package/dist/groovy-BMVfw_nf.js +0 -147
  35. package/dist/haskell-hWhKnZO1.js +0 -376
  36. package/dist/haxe-B1MRfS0p.js +0 -360
  37. package/dist/http-DmgKxj-g.js +0 -45
  38. package/dist/idl-DqZ86h3r.js +0 -948
  39. package/dist/index-5dj8r7GK.js +0 -266
  40. package/dist/index-BTXiadLB.js +0 -309
  41. package/dist/index-BlC4-BmN.js +0 -72
  42. package/dist/index-BrFeP3fX.js +0 -244
  43. package/dist/index-Bto4OncH.js +0 -539
  44. package/dist/index-Bvv7YkGe.js +0 -136
  45. package/dist/index-Bx4MkRG_.js +0 -76
  46. package/dist/index-CVOhQMF3.js +0 -608
  47. package/dist/index-CecD8NGL.js +0 -228472
  48. package/dist/index-CmoZmAhh.js +0 -289
  49. package/dist/index-DE3hmKbB.js +0 -135
  50. package/dist/index-DF7XjAxV.js +0 -94
  51. package/dist/index-DcChItCb.js +0 -157
  52. package/dist/index-Dl5DpQ2k.js +0 -342
  53. package/dist/index-Dpbxeq5U.js +0 -59
  54. package/dist/index-gpJmCEdM.js +0 -99
  55. package/dist/index-udH8R_K0.js +0 -300
  56. package/dist/javascript-BvuVDFxD.js +0 -691
  57. package/dist/jinja2-sU0UaYnG.js +0 -155
  58. package/dist/julia-3_lRZPrK.js +0 -242
  59. package/dist/livescript-BeDiX_lv.js +0 -273
  60. package/dist/lua-DsgFLpii.js +0 -218
  61. package/dist/mathematica-1GSq-6KQ.js +0 -36
  62. package/dist/mbox-agttEgFX.js +0 -77
  63. package/dist/mirc-0mTi20sq.js +0 -73
  64. package/dist/mllike-Cn3QD1L6.js +0 -273
  65. package/dist/modelica-zXUsSMFb.js +0 -94
  66. package/dist/mscgen-CjqYDKLG.js +0 -105
  67. package/dist/mumps-o2cuacx9.js +0 -26
  68. package/dist/nginx-BwTpvSVN.js +0 -90
  69. package/dist/nsis-BuRdhAu4.js +0 -63
  70. package/dist/ntriples-DrgMTIhT.js +0 -80
  71. package/dist/octave-Cxdtf9mO.js +0 -144
  72. package/dist/oz-DFmTw-qE.js +0 -152
  73. package/dist/pascal-DXxn4Ogv.js +0 -78
  74. package/dist/perl-C73cx1ym.js +0 -916
  75. package/dist/pig-Bb8sMbk0.js +0 -55
  76. package/dist/powershell-DxmufwKU.js +0 -250
  77. package/dist/properties-C4fhBR7T.js +0 -27
  78. package/dist/protobuf-Eqae3kep.js +0 -50
  79. package/dist/pug-Cdoid33I.js +0 -249
  80. package/dist/puppet-BH84QZvC.js +0 -46
  81. package/dist/python-D32-_XsH.js +0 -314
  82. package/dist/q-CDvEpNHY.js +0 -84
  83. package/dist/r-D9TtEI-G.js +0 -105
  84. package/dist/rpm-Ckejt31K.js +0 -58
  85. package/dist/ruby-gRVA_lpr.js +0 -229
  86. package/dist/sas-Cetv6MtF.js +0 -106
  87. package/dist/scheme-BpAxUIwV.js +0 -125
  88. package/dist/shell-DmARhv5h.js +0 -183
  89. package/dist/sieve-DJENs6f1.js +0 -73
  90. package/dist/simple-mode-B0kVDhR7.js +0 -89
  91. package/dist/smalltalk-CtRR6guu.js +0 -49
  92. package/dist/solr-ZVIJNGhC.js +0 -42
  93. package/dist/sparql-Cg1WYQva.js +0 -198
  94. package/dist/spreadsheet-Bi94Lk_2.js +0 -50
  95. package/dist/sql-BLhvp4JJ.js +0 -283
  96. package/dist/stex-DuReG47O.js +0 -130
  97. package/dist/stylus-D5QpSSbb.js +0 -251
  98. package/dist/swift-CZplZXOW.js +0 -231
  99. package/dist/tcl-COiqjz-O.js +0 -82
  100. package/dist/textile-BIDpYsbD.js +0 -296
  101. package/dist/tiddlywiki-C4woD_uK.js +0 -156
  102. package/dist/tiki-Ddj0Z2aQ.js +0 -182
  103. package/dist/toml-Byr0PaXO.js +0 -50
  104. package/dist/troff-BEvN8lSw.js +0 -36
  105. package/dist/ttcn-CyeSpuPS.js +0 -124
  106. package/dist/ttcn-cfg-C4JBLVfg.js +0 -89
  107. package/dist/turtle-8qSCc9Tc.js +0 -81
  108. package/dist/vb-BOJI7cFm.js +0 -75
  109. package/dist/vbscript-Cu6iG9pw.js +0 -325
  110. package/dist/velocity-BEpFYT7L.js +0 -97
  111. package/dist/verilog-BBxq08Rh.js +0 -264
  112. package/dist/vhdl-B0tZHMGi.js +0 -107
  113. package/dist/webidl-CW91NtvY.js +0 -156
  114. package/dist/xquery-DzC9wL36.js +0 -423
  115. package/dist/yacas-lKwNB4DM.js +0 -74
  116. package/dist/z80-Bq0fiCqy.js +0 -62
@@ -1,251 +0,0 @@
1
- import "./index.css";
2
- 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(
3
- $,
4
- R,
5
- I,
6
- O,
7
- W,
8
- N,
9
- S,
10
- C,
11
- T,
12
- E,
13
- U,
14
- A
15
- );
16
- function F(i) {
17
- return i = i.sort(function(e, r) {
18
- return r > e;
19
- }), new RegExp("^((" + i.join(")|(") + "))\\b");
20
- }
21
- function p(i) {
22
- for (var e = {}, r = 0; r < i.length; ++r) 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(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;
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 = 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)) return n(r, e, "block");
167
- }
168
- if (t == "block-keyword")
169
- return t = "keyword", e.current(/(if|unless)/) && !k(e) ? "block" : n(r, e, "block");
170
- if (o == "return") return n(r, e, "block", 0);
171
- if (t == "variable" && e.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))
172
- return n(r, e, "block");
173
- }
174
- return r.context.type;
175
- };
176
- c.parens = function(i, e, r) {
177
- if (i == "(") return n(r, e, "parens");
178
- if (i == ")")
179
- 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);
180
- if (i && i.charAt(0) == "@" && x(e.current().slice(1)) && (t = "variable"), i == "word") {
181
- var o = e.current();
182
- t = y(o), t == "tag" && j.test(o) && (t = "variable"), (t == "property" || o == "to") && (t = "atom");
183
- }
184
- return i == "variable-name" ? n(r, e, "variableName") : M(i, e) ? n(r, e, "pseudo") : r.context.type;
185
- };
186
- c.vendorPrefixes = function(i, e, r) {
187
- return i == "word" ? (t = "property", n(r, e, "block", 0)) : v(r, e);
188
- };
189
- c.pseudo = function(i, e, r) {
190
- return x(u(e.string)) ? _(i, e, r) : (e.match(/^[a-z-]+/), t = "variableName.special", a(e) ? n(r, e, "block") : v(r, e));
191
- };
192
- c.atBlock = function(i, e, r) {
193
- if (i == "(") return n(r, e, "atBlock_parens");
194
- if (V(i, e))
195
- return n(r, e, "block");
196
- if (D(i, e))
197
- return n(r, e, "interpolation");
198
- if (i == "word") {
199
- var o = e.current().toLowerCase();
200
- 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))
201
- return n(r, e, "block");
202
- }
203
- return i == "operator" && /^(not|and|or)$/.test(e.current()) && (t = "keyword"), r.context.type;
204
- };
205
- c.atBlock_parens = function(i, e, r) {
206
- if (i == "{" || i == "}") return r.context.type;
207
- if (i == ")")
208
- return a(e) ? n(r, e, "block") : n(r, e, "atBlock");
209
- if (i == "word") {
210
- var o = e.current().toLowerCase();
211
- return t = y(o), /^(max|min)/.test(o) && (t = "property"), t == "tag" && (j.test(o) ? t = "variable" : t = "atom"), r.context.type;
212
- }
213
- return c.atBlock(i, e, r);
214
- };
215
- c.keyframes = function(i, e, r) {
216
- 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;
217
- };
218
- c.interpolation = function(i, e, r) {
219
- 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);
220
- };
221
- c.extend = function(i, e, r) {
222
- return i == "[" || i == "=" ? "extend" : i == "]" ? v(r, e) : i == "word" ? (t = y(e.current()), "extend") : v(r, e);
223
- };
224
- c.variableName = function(i, e, r) {
225
- return i == "string" || i == "[" || i == "]" || e.current().match(/^(\.|\$)/) ? (e.current().match(/^\.[\w-]+/i) && (t = "variable"), "variableName") : _(i, e, r);
226
- };
227
- const be = {
228
- name: "stylus",
229
- startState: function() {
230
- return {
231
- tokenize: null,
232
- state: "block",
233
- context: new Z("block", 0, null)
234
- };
235
- },
236
- token: function(i, e) {
237
- 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);
238
- },
239
- indent: function(i, e, r) {
240
- 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;
241
- 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;
242
- },
243
- languageData: {
244
- indentOnInput: /^\s*\}$/,
245
- commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
246
- autocomplete: G
247
- }
248
- };
249
- export {
250
- be as stylus
251
- };
@@ -1,231 +0,0 @@
1
- import "./index.css";
2
- function c(n) {
3
- for (var e = {}, t = 0; t < n.length; t++) 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()) return null;
123
- var i = n.peek();
124
- if (i == "/") {
125
- if (n.match("//"))
126
- return n.skipToEnd(), "comment";
127
- if (n.match("/*"))
128
- return e.tokenize.push(a), a(n, e);
129
- }
130
- if (n.match(z)) return "builtin";
131
- if (n.match(b)) return "attribute";
132
- if (n.match(s) || n.match(k) || n.match(x) || n.match(y)) return "number";
133
- if (n.match(w)) return "property";
134
- if (h.indexOf(i) > -1)
135
- return n.next(), "operator";
136
- if (_.indexOf(i) > -1)
137
- return n.next(), n.match(".."), "punctuation";
138
- var r;
139
- if (r = n.match(/("""|"|')/)) {
140
- var o = I.bind(null, r[0]);
141
- return e.tokenize.push(o), o(n, e);
142
- }
143
- if (n.match(g)) {
144
- var u = n.current();
145
- return v.hasOwnProperty(u) ? "type" : d.hasOwnProperty(u) ? "atom" : l.hasOwnProperty(u) ? (p.hasOwnProperty(u) && (e.prev = "define"), "keyword") : t == "define" ? "def" : "variable";
146
- }
147
- return n.next(), null;
148
- }
149
- function A() {
150
- var n = 0;
151
- return function(e, t, i) {
152
- var r = f(e, t, i);
153
- if (r == "punctuation") {
154
- if (e.current() == "(") ++n;
155
- else if (e.current() == ")") {
156
- if (n == 0)
157
- return e.backUp(1), t.tokenize.pop(), t.tokenize[t.tokenize.length - 1](e, t);
158
- --n;
159
- }
160
- }
161
- return r;
162
- };
163
- }
164
- function I(n, e, t) {
165
- for (var i = n.length == 1, r, o = !1; r = e.peek(); )
166
- if (o) {
167
- if (e.next(), r == "(")
168
- return t.tokenize.push(A()), "string";
169
- o = !1;
170
- } else {
171
- if (e.match(n))
172
- return t.tokenize.pop(), "string";
173
- e.next(), o = r == "\\";
174
- }
175
- return i && t.tokenize.pop(), "string";
176
- }
177
- function a(n, e) {
178
- for (var t; t = n.next(); )
179
- if (t === "/" && n.eat("*"))
180
- e.tokenize.push(a);
181
- else if (t === "*" && n.eat("/")) {
182
- e.tokenize.pop();
183
- break;
184
- }
185
- return "comment";
186
- }
187
- function O(n, e, t) {
188
- this.prev = n, this.align = e, this.indented = t;
189
- }
190
- function m(n, e) {
191
- var t = e.match(/^\s*($|\/[\/\*]|[)}\]])/, !1) ? null : e.column() + 1;
192
- n.context = new O(n.context, t, n.indented);
193
- }
194
- function S(n) {
195
- n.context && (n.indented = n.context.indented, n.context = n.context.prev);
196
- }
197
- const U = {
198
- name: "swift",
199
- startState: function() {
200
- return {
201
- prev: null,
202
- context: null,
203
- indented: 0,
204
- tokenize: []
205
- };
206
- },
207
- token: function(n, e) {
208
- var t = e.prev;
209
- e.prev = null;
210
- var i = e.tokenize[e.tokenize.length - 1] || f, r = i(n, e, t);
211
- if (!r || r == "comment" ? e.prev = t : e.prev || (e.prev = r), r == "punctuation") {
212
- var o = /[\(\[\{]|([\]\)\}])/.exec(n.current());
213
- o && (o[1] ? S : m)(e, n);
214
- }
215
- return r;
216
- },
217
- indent: function(n, e, t) {
218
- var i = n.context;
219
- if (!i) return 0;
220
- var r = /^[\]\}\)]/.test(e);
221
- return i.align != null ? i.align - (r ? 1 : 0) : i.indented + (r ? 0 : t.unit);
222
- },
223
- languageData: {
224
- indentOnInput: /^\s*[\)\}\]]$/,
225
- commentTokens: { line: "//", block: { open: "/*", close: "*/" } },
226
- closeBrackets: { brackets: ["(", "[", "{", "'", '"', "`"] }
227
- }
228
- };
229
- export {
230
- U as swift
231
- };
@@ -1,82 +0,0 @@
1
- import "./index.css";
2
- function s(r) {
3
- for (var n = {}, t = r.split(" "), e = 0; e < t.length; ++e) 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 b = {
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
- b as tcl
82
- };