codemirror-rails 3.02 → 3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +1 -1
  3. data/LICENSE +1 -1
  4. data/codemirror-rails.gemspec +1 -0
  5. data/doc/CodeMirror-LICENSE +5 -1
  6. data/lib/codemirror/rails/version.rb +2 -2
  7. data/vendor/assets/javascripts/codemirror/{utils → addons/dialog}/dialog.js +4 -0
  8. data/vendor/assets/javascripts/codemirror/addons/display/placeholder.js +54 -0
  9. data/vendor/assets/javascripts/codemirror/addons/edit/closebrackets.js +54 -0
  10. data/vendor/assets/javascripts/codemirror/{utils → addons/edit}/closetag.js +9 -8
  11. data/vendor/assets/javascripts/codemirror/{utils → addons/edit}/continuecomment.js +12 -4
  12. data/vendor/assets/javascripts/codemirror/addons/edit/continuelist.js +25 -0
  13. data/vendor/assets/javascripts/codemirror/{utils → addons/edit}/matchbrackets.js +30 -11
  14. data/vendor/assets/javascripts/codemirror/addons/fold/brace-fold.js +31 -0
  15. data/vendor/assets/javascripts/codemirror/addons/fold/foldcode.js +32 -0
  16. data/vendor/assets/javascripts/codemirror/addons/fold/indent-fold.js +11 -0
  17. data/vendor/assets/javascripts/codemirror/addons/fold/xml-fold.js +64 -0
  18. data/vendor/assets/javascripts/codemirror/addons/hint/html-hint.js +582 -0
  19. data/vendor/assets/javascripts/codemirror/{utils → addons/hint}/javascript-hint.js +15 -11
  20. data/vendor/assets/javascripts/codemirror/{utils → addons/hint}/pig-hint.js +19 -19
  21. data/vendor/assets/javascripts/codemirror/{utils → addons/hint}/python-hint.js +2 -2
  22. data/vendor/assets/javascripts/codemirror/addons/hint/show-hint.js +180 -0
  23. data/vendor/assets/javascripts/codemirror/{utils → addons/hint}/xml-hint.js +5 -18
  24. data/vendor/assets/javascripts/codemirror/addons/lint/javascript-lint.js +127 -0
  25. data/vendor/assets/javascripts/codemirror/addons/lint/json-lint.js +14 -0
  26. data/vendor/assets/javascripts/codemirror/addons/lint/lint.js +197 -0
  27. data/vendor/assets/javascripts/codemirror/{utils → addons/mode}/loadmode.js +0 -0
  28. data/vendor/assets/javascripts/codemirror/{utils → addons/mode}/multiplex.js +2 -2
  29. data/vendor/assets/javascripts/codemirror/{utils → addons/mode}/overlay.js +2 -2
  30. data/vendor/assets/javascripts/codemirror/{utils → addons/runmode}/colorize.js +0 -0
  31. data/vendor/assets/javascripts/codemirror/{utils → addons/runmode}/runmode-standalone.js +2 -3
  32. data/vendor/assets/javascripts/codemirror/{utils → addons/runmode}/runmode.js +0 -0
  33. data/vendor/assets/javascripts/codemirror/addons/runmode/runmode.node.js +89 -0
  34. data/vendor/assets/javascripts/codemirror/addons/search/match-highlighter.js +60 -0
  35. data/vendor/assets/javascripts/codemirror/{utils → addons/search}/search.js +5 -5
  36. data/vendor/assets/javascripts/codemirror/{utils → addons/search}/searchcursor.js +37 -30
  37. data/vendor/assets/javascripts/codemirror/addons/selection/active-line.js +39 -0
  38. data/vendor/assets/javascripts/codemirror/addons/selection/mark-selection.js +34 -0
  39. data/vendor/assets/javascripts/codemirror/keymaps/vim.js +721 -188
  40. data/vendor/assets/javascripts/codemirror/modes/asterisk.js +6 -6
  41. data/vendor/assets/javascripts/codemirror/modes/clike.js +14 -14
  42. data/vendor/assets/javascripts/codemirror/modes/clojure.js +23 -7
  43. data/vendor/assets/javascripts/codemirror/modes/coffeescript.js +2 -2
  44. data/vendor/assets/javascripts/codemirror/modes/css.js +337 -235
  45. data/vendor/assets/javascripts/codemirror/modes/ecl.js +12 -12
  46. data/vendor/assets/javascripts/codemirror/modes/erlang.js +1 -1
  47. data/vendor/assets/javascripts/codemirror/modes/gas.js +326 -0
  48. data/vendor/assets/javascripts/codemirror/modes/gfm.js +1 -0
  49. data/vendor/assets/javascripts/codemirror/modes/haskell.js +26 -26
  50. data/vendor/assets/javascripts/codemirror/modes/haxe.js +17 -17
  51. data/vendor/assets/javascripts/codemirror/modes/htmlembedded.js +6 -6
  52. data/vendor/assets/javascripts/codemirror/modes/htmlmixed.js +43 -23
  53. data/vendor/assets/javascripts/codemirror/modes/javascript.js +78 -33
  54. data/vendor/assets/javascripts/codemirror/modes/jinja2.js +2 -2
  55. data/vendor/assets/javascripts/codemirror/modes/less.js +38 -38
  56. data/vendor/assets/javascripts/codemirror/modes/livescript.js +267 -0
  57. data/vendor/assets/javascripts/codemirror/modes/lua.js +7 -7
  58. data/vendor/assets/javascripts/codemirror/modes/markdown.js +108 -57
  59. data/vendor/assets/javascripts/codemirror/modes/mirc.js +177 -0
  60. data/vendor/assets/javascripts/codemirror/modes/ntriples.js +22 -22
  61. data/vendor/assets/javascripts/codemirror/modes/ocaml.js +1 -1
  62. data/vendor/assets/javascripts/codemirror/modes/perl.js +791 -791
  63. data/vendor/assets/javascripts/codemirror/modes/php.js +1 -1
  64. data/vendor/assets/javascripts/codemirror/modes/pig.js +163 -163
  65. data/vendor/assets/javascripts/codemirror/modes/python.js +31 -31
  66. data/vendor/assets/javascripts/codemirror/modes/q.js +124 -0
  67. data/vendor/assets/javascripts/codemirror/modes/rst.js +486 -250
  68. data/vendor/assets/javascripts/codemirror/modes/sass.js +3 -3
  69. data/vendor/assets/javascripts/codemirror/modes/scss_test.js +80 -0
  70. data/vendor/assets/javascripts/codemirror/modes/shell.js +2 -2
  71. data/vendor/assets/javascripts/codemirror/modes/sieve.js +10 -10
  72. data/vendor/assets/javascripts/codemirror/modes/smalltalk.js +129 -129
  73. data/vendor/assets/javascripts/codemirror/modes/smarty.js +3 -3
  74. data/vendor/assets/javascripts/codemirror/modes/sparql.js +1 -1
  75. data/vendor/assets/javascripts/codemirror/modes/sql.js +23 -23
  76. data/vendor/assets/javascripts/codemirror/modes/stex.js +192 -121
  77. data/vendor/assets/javascripts/codemirror/modes/tcl.js +131 -0
  78. data/vendor/assets/javascripts/codemirror/modes/test.js +64 -0
  79. data/vendor/assets/javascripts/codemirror/modes/tiddlywiki.js +345 -345
  80. data/vendor/assets/javascripts/codemirror/modes/tiki.js +297 -298
  81. data/vendor/assets/javascripts/codemirror/modes/turtle.js +145 -0
  82. data/vendor/assets/javascripts/codemirror/modes/vb.js +31 -32
  83. data/vendor/assets/javascripts/codemirror/modes/vbscript.js +4 -4
  84. data/vendor/assets/javascripts/codemirror/modes/xml.js +10 -6
  85. data/vendor/assets/javascripts/codemirror/modes/xquery.js +55 -55
  86. data/vendor/assets/javascripts/codemirror/modes/yaml.js +90 -90
  87. data/vendor/assets/javascripts/codemirror/modes/z80.js +82 -110
  88. data/vendor/assets/javascripts/codemirror.js +1914 -1115
  89. data/vendor/assets/stylesheets/codemirror/{utils → addons/dialog}/dialog.css +0 -0
  90. data/vendor/assets/stylesheets/codemirror/addons/hint/show-hint.css +38 -0
  91. data/vendor/assets/stylesheets/codemirror/addons/lint/lint.css +96 -0
  92. data/vendor/assets/stylesheets/codemirror/modes/tiki.css +2 -2
  93. data/vendor/assets/stylesheets/codemirror/themes/ambiance-mobile.css +0 -1
  94. data/vendor/assets/stylesheets/codemirror/themes/ambiance.css +0 -1
  95. data/vendor/assets/stylesheets/codemirror/themes/eclipse.css +2 -2
  96. data/vendor/assets/stylesheets/codemirror/themes/erlang-dark.css +5 -5
  97. data/vendor/assets/stylesheets/codemirror/themes/midnight.css +52 -0
  98. data/vendor/assets/stylesheets/codemirror/themes/xq-light.css +43 -0
  99. data/vendor/assets/stylesheets/codemirror.css +16 -10
  100. metadata +60 -52
  101. data/vendor/assets/javascripts/codemirror/modes/mysql.js +0 -203
  102. data/vendor/assets/javascripts/codemirror/modes/plsql.js +0 -216
  103. data/vendor/assets/javascripts/codemirror/utils/collapserange.js +0 -68
  104. data/vendor/assets/javascripts/codemirror/utils/continuelist.js +0 -28
  105. data/vendor/assets/javascripts/codemirror/utils/foldcode.js +0 -183
  106. data/vendor/assets/javascripts/codemirror/utils/formatting.js +0 -114
  107. data/vendor/assets/javascripts/codemirror/utils/match-highlighter.js +0 -46
  108. data/vendor/assets/javascripts/codemirror/utils/simple-hint.js +0 -102
  109. data/vendor/assets/stylesheets/codemirror/utils/simple-hint.css +0 -16
@@ -1,204 +1,30 @@
1
1
  CodeMirror.defineMode("css", function(config) {
2
- var indentUnit = config.indentUnit, type;
3
-
4
- var atMediaTypes = keySet([
5
- "all", "aural", "braille", "handheld", "print", "projection", "screen",
6
- "tty", "tv", "embossed"
7
- ]);
8
-
9
- var atMediaFeatures = keySet([
10
- "width", "min-width", "max-width", "height", "min-height", "max-height",
11
- "device-width", "min-device-width", "max-device-width", "device-height",
12
- "min-device-height", "max-device-height", "aspect-ratio",
13
- "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
14
- "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
15
- "max-color", "color-index", "min-color-index", "max-color-index",
16
- "monochrome", "min-monochrome", "max-monochrome", "resolution",
17
- "min-resolution", "max-resolution", "scan", "grid"
18
- ]);
2
+ return CodeMirror.getMode(config, "text/css");
3
+ });
19
4
 
20
- var propertyKeywords = keySet([
21
- "align-content", "align-items", "align-self", "alignment-adjust",
22
- "alignment-baseline", "anchor-point", "animation", "animation-delay",
23
- "animation-direction", "animation-duration", "animation-iteration-count",
24
- "animation-name", "animation-play-state", "animation-timing-function",
25
- "appearance", "azimuth", "backface-visibility", "background",
26
- "background-attachment", "background-clip", "background-color",
27
- "background-image", "background-origin", "background-position",
28
- "background-repeat", "background-size", "baseline-shift", "binding",
29
- "bleed", "bookmark-label", "bookmark-level", "bookmark-state",
30
- "bookmark-target", "border", "border-bottom", "border-bottom-color",
31
- "border-bottom-left-radius", "border-bottom-right-radius",
32
- "border-bottom-style", "border-bottom-width", "border-collapse",
33
- "border-color", "border-image", "border-image-outset",
34
- "border-image-repeat", "border-image-slice", "border-image-source",
35
- "border-image-width", "border-left", "border-left-color",
36
- "border-left-style", "border-left-width", "border-radius", "border-right",
37
- "border-right-color", "border-right-style", "border-right-width",
38
- "border-spacing", "border-style", "border-top", "border-top-color",
39
- "border-top-left-radius", "border-top-right-radius", "border-top-style",
40
- "border-top-width", "border-width", "bottom", "box-decoration-break",
41
- "box-shadow", "box-sizing", "break-after", "break-before", "break-inside",
42
- "caption-side", "clear", "clip", "color", "color-profile", "column-count",
43
- "column-fill", "column-gap", "column-rule", "column-rule-color",
44
- "column-rule-style", "column-rule-width", "column-span", "column-width",
45
- "columns", "content", "counter-increment", "counter-reset", "crop", "cue",
46
- "cue-after", "cue-before", "cursor", "direction", "display",
47
- "dominant-baseline", "drop-initial-after-adjust",
48
- "drop-initial-after-align", "drop-initial-before-adjust",
49
- "drop-initial-before-align", "drop-initial-size", "drop-initial-value",
50
- "elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis",
51
- "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap",
52
- "float", "float-offset", "font", "font-feature-settings", "font-family",
53
- "font-kerning", "font-language-override", "font-size", "font-size-adjust",
54
- "font-stretch", "font-style", "font-synthesis", "font-variant",
55
- "font-variant-alternates", "font-variant-caps", "font-variant-east-asian",
56
- "font-variant-ligatures", "font-variant-numeric", "font-variant-position",
57
- "font-weight", "grid-cell", "grid-column", "grid-column-align",
58
- "grid-column-sizing", "grid-column-span", "grid-columns", "grid-flow",
59
- "grid-row", "grid-row-align", "grid-row-sizing", "grid-row-span",
60
- "grid-rows", "grid-template", "hanging-punctuation", "height", "hyphens",
61
- "icon", "image-orientation", "image-rendering", "image-resolution",
62
- "inline-box-align", "justify-content", "left", "letter-spacing",
63
- "line-break", "line-height", "line-stacking", "line-stacking-ruby",
64
- "line-stacking-shift", "line-stacking-strategy", "list-style",
65
- "list-style-image", "list-style-position", "list-style-type", "margin",
66
- "margin-bottom", "margin-left", "margin-right", "margin-top",
67
- "marker-offset", "marks", "marquee-direction", "marquee-loop",
68
- "marquee-play-count", "marquee-speed", "marquee-style", "max-height",
69
- "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
70
- "nav-left", "nav-right", "nav-up", "opacity", "order", "orphans", "outline",
71
- "outline-color", "outline-offset", "outline-style", "outline-width",
72
- "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y",
73
- "padding", "padding-bottom", "padding-left", "padding-right", "padding-top",
74
- "page", "page-break-after", "page-break-before", "page-break-inside",
75
- "page-policy", "pause", "pause-after", "pause-before", "perspective",
76
- "perspective-origin", "pitch", "pitch-range", "play-during", "position",
77
- "presentation-level", "punctuation-trim", "quotes", "rendering-intent",
78
- "resize", "rest", "rest-after", "rest-before", "richness", "right",
79
- "rotation", "rotation-point", "ruby-align", "ruby-overhang",
80
- "ruby-position", "ruby-span", "size", "speak", "speak-as", "speak-header",
81
- "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set",
82
- "tab-size", "table-layout", "target", "target-name", "target-new",
83
- "target-position", "text-align", "text-align-last", "text-decoration",
84
- "text-decoration-color", "text-decoration-line", "text-decoration-skip",
85
- "text-decoration-style", "text-emphasis", "text-emphasis-color",
86
- "text-emphasis-position", "text-emphasis-style", "text-height",
87
- "text-indent", "text-justify", "text-outline", "text-shadow",
88
- "text-space-collapse", "text-transform", "text-underline-position",
89
- "text-wrap", "top", "transform", "transform-origin", "transform-style",
90
- "transition", "transition-delay", "transition-duration",
91
- "transition-property", "transition-timing-function", "unicode-bidi",
92
- "vertical-align", "visibility", "voice-balance", "voice-duration",
93
- "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",
94
- "voice-volume", "volume", "white-space", "widows", "width", "word-break",
95
- "word-spacing", "word-wrap", "z-index"
96
- ]);
5
+ CodeMirror.defineMode("css-base", function(config, parserConfig) {
6
+ "use strict";
97
7
 
98
- var colorKeywords = keySet([
99
- "black", "silver", "gray", "white", "maroon", "red", "purple", "fuchsia",
100
- "green", "lime", "olive", "yellow", "navy", "blue", "teal", "aqua"
101
- ]);
102
-
103
- var valueKeywords = keySet([
104
- "above", "absolute", "activeborder", "activecaption", "afar",
105
- "after-white-space", "ahead", "alias", "all", "all-scroll", "alternate",
106
- "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
107
- "arabic-indic", "armenian", "asterisks", "auto", "avoid", "background",
108
- "backwards", "baseline", "below", "bidi-override", "binary", "bengali",
109
- "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
110
- "both", "bottom", "break-all", "break-word", "button", "button-bevel",
111
- "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "cambodian",
112
- "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
113
- "cell", "center", "checkbox", "circle", "cjk-earthly-branch",
114
- "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
115
- "col-resize", "collapse", "compact", "condensed", "contain", "content",
116
- "content-box", "context-menu", "continuous", "copy", "cover", "crop",
117
- "cross", "crosshair", "currentcolor", "cursive", "dashed", "decimal",
118
- "decimal-leading-zero", "default", "default-button", "destination-atop",
119
- "destination-in", "destination-out", "destination-over", "devanagari",
120
- "disc", "discard", "document", "dot-dash", "dot-dot-dash", "dotted",
121
- "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
122
- "element", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
123
- "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
124
- "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
125
- "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
126
- "ethiopic-halehame-gez", "ethiopic-halehame-om-et",
127
- "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
128
- "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et",
129
- "ethiopic-halehame-tig", "ew-resize", "expanded", "extra-condensed",
130
- "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "footnotes",
131
- "forwards", "from", "geometricPrecision", "georgian", "graytext", "groove",
132
- "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hebrew",
133
- "help", "hidden", "hide", "higher", "highlight", "highlighttext",
134
- "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore",
135
- "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
136
- "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
137
- "inline-block", "inline-table", "inset", "inside", "intrinsic", "invert",
138
- "italic", "justify", "kannada", "katakana", "katakana-iroha", "khmer",
139
- "landscape", "lao", "large", "larger", "left", "level", "lighter",
140
- "line-through", "linear", "lines", "list-item", "listbox", "listitem",
141
- "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
142
- "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
143
- "lower-roman", "lowercase", "ltr", "malayalam", "match",
144
- "media-controls-background", "media-current-time-display",
145
- "media-fullscreen-button", "media-mute-button", "media-play-button",
146
- "media-return-to-realtime-button", "media-rewind-button",
147
- "media-seek-back-button", "media-seek-forward-button", "media-slider",
148
- "media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
149
- "media-volume-slider-container", "media-volume-sliderthumb", "medium",
150
- "menu", "menulist", "menulist-button", "menulist-text",
151
- "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
152
- "mix", "mongolian", "monospace", "move", "multiple", "myanmar", "n-resize",
153
- "narrower", "navy", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
154
- "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
155
- "ns-resize", "nw-resize", "nwse-resize", "oblique", "octal", "open-quote",
156
- "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
157
- "outside", "overlay", "overline", "padding", "padding-box", "painted",
158
- "paused", "persian", "plus-darker", "plus-lighter", "pointer", "portrait",
159
- "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button",
160
- "radio", "read-only", "read-write", "read-write-plaintext-only", "relative",
161
- "repeat", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba",
162
- "ridge", "right", "round", "row-resize", "rtl", "run-in", "running",
163
- "s-resize", "sans-serif", "scroll", "scrollbar", "se-resize", "searchfield",
164
- "searchfield-cancel-button", "searchfield-decoration",
165
- "searchfield-results-button", "searchfield-results-decoration",
166
- "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",
167
- "single", "skip-white-space", "slide", "slider-horizontal",
168
- "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
169
- "small", "small-caps", "small-caption", "smaller", "solid", "somali",
170
- "source-atop", "source-in", "source-out", "source-over", "space", "square",
171
- "square-button", "start", "static", "status-bar", "stretch", "stroke",
172
- "sub", "subpixel-antialiased", "super", "sw-resize", "table",
173
- "table-caption", "table-cell", "table-column", "table-column-group",
174
- "table-footer-group", "table-header-group", "table-row", "table-row-group",
175
- "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
176
- "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
177
- "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
178
- "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
179
- "transparent", "ultra-condensed", "ultra-expanded", "underline", "up",
180
- "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
181
- "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
182
- "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted",
183
- "visibleStroke", "visual", "w-resize", "wait", "wave", "white", "wider",
184
- "window", "windowframe", "windowtext", "x-large", "x-small", "xor",
185
- "xx-large", "xx-small", "yellow"
186
- ]);
8
+ var indentUnit = config.indentUnit,
9
+ hooks = parserConfig.hooks || {},
10
+ atMediaTypes = parserConfig.atMediaTypes || {},
11
+ atMediaFeatures = parserConfig.atMediaFeatures || {},
12
+ propertyKeywords = parserConfig.propertyKeywords || {},
13
+ colorKeywords = parserConfig.colorKeywords || {},
14
+ valueKeywords = parserConfig.valueKeywords || {},
15
+ allowNested = !!parserConfig.allowNested,
16
+ type = null;
187
17
 
188
- function keySet(array) { var keys = {}; for (var i = 0; i < array.length; ++i) keys[array[i]] = true; return keys; }
189
- function ret(style, tp) {type = tp; return style;}
18
+ function ret(style, tp) { type = tp; return style; }
190
19
 
191
20
  function tokenBase(stream, state) {
192
21
  var ch = stream.next();
193
- if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("def", stream.current());}
194
- else if (ch == "/" && stream.eat("*")) {
195
- state.tokenize = tokenCComment;
196
- return tokenCComment(stream, state);
197
- }
198
- else if (ch == "<" && stream.eat("!")) {
199
- state.tokenize = tokenSGMLComment;
200
- return tokenSGMLComment(stream, state);
22
+ if (hooks[ch]) {
23
+ // result[0] is style and result[1] is type
24
+ var result = hooks[ch](stream, state);
25
+ if (result !== false) return result;
201
26
  }
27
+ if (ch == "@") {stream.eatWhile(/[\w\\\-]/); return ret("def", stream.current());}
202
28
  else if (ch == "=") ret(null, "compare");
203
29
  else if ((ch == "~" || ch == "|") && stream.eat("=")) return ret(null, "compare");
204
30
  else if (ch == "\"" || ch == "'") {
@@ -248,30 +74,6 @@ CodeMirror.defineMode("css", function(config) {
248
74
  }
249
75
  }
250
76
 
251
- function tokenCComment(stream, state) {
252
- var maybeEnd = false, ch;
253
- while ((ch = stream.next()) != null) {
254
- if (maybeEnd && ch == "/") {
255
- state.tokenize = tokenBase;
256
- break;
257
- }
258
- maybeEnd = (ch == "*");
259
- }
260
- return ret("comment", "comment");
261
- }
262
-
263
- function tokenSGMLComment(stream, state) {
264
- var dashes = 0, ch;
265
- while ((ch = stream.next()) != null) {
266
- if (dashes >= 2 && ch == ">") {
267
- state.tokenize = tokenBase;
268
- break;
269
- }
270
- dashes = (ch == "-") ? dashes + 1 : 0;
271
- }
272
- return ret("comment", "comment");
273
- }
274
-
275
77
  function tokenString(quote, nonInclusive) {
276
78
  return function(stream, state) {
277
79
  var escaped = false, ch;
@@ -305,59 +107,64 @@ CodeMirror.defineMode("css", function(config) {
305
107
  },
306
108
 
307
109
  token: function(stream, state) {
308
-
110
+
309
111
  // Use these terms when applicable (see http://www.xanthir.com/blog/b4E50)
310
- //
112
+ //
311
113
  // rule** or **ruleset:
312
114
  // A selector + braces combo, or an at-rule.
313
- //
115
+ //
314
116
  // declaration block:
315
117
  // A sequence of declarations.
316
- //
118
+ //
317
119
  // declaration:
318
120
  // A property + colon + value combo.
319
- //
121
+ //
320
122
  // property value:
321
123
  // The entire value of a property.
322
- //
124
+ //
323
125
  // component value:
324
126
  // A single piece of a property value. Like the 5px in
325
127
  // text-shadow: 0 0 5px blue;. Can also refer to things that are
326
128
  // multiple terms, like the 1-4 terms that make up the background-size
327
129
  // portion of the background shorthand.
328
- //
130
+ //
329
131
  // term:
330
132
  // The basic unit of author-facing CSS, like a single number (5),
331
133
  // dimension (5px), string ("foo"), or function. Officially defined
332
134
  // by the CSS 2.1 grammar (look for the 'term' production)
333
- //
334
- //
135
+ //
136
+ //
335
137
  // simple selector:
336
138
  // A single atomic selector, like a type selector, an attr selector, a
337
139
  // class selector, etc.
338
- //
140
+ //
339
141
  // compound selector:
340
142
  // One or more simple selectors without a combinator. div.example is
341
143
  // compound, div > .example is not.
342
- //
144
+ //
343
145
  // complex selector:
344
146
  // One or more compound selectors chained with combinators.
345
- //
147
+ //
346
148
  // combinator:
347
149
  // The parts of selectors that express relationships. There are four
348
150
  // currently - the space (descendant combinator), the greater-than
349
151
  // bracket (child combinator), the plus sign (next sibling combinator),
350
152
  // and the tilda (following sibling combinator).
351
- //
153
+ //
352
154
  // sequence of selectors:
353
155
  // One or more of the named type of selector chained with commas.
354
156
 
157
+ state.tokenize = state.tokenize || tokenBase;
355
158
  if (state.tokenize == tokenBase && stream.eatSpace()) return null;
356
159
  var style = state.tokenize(stream, state);
160
+ if (style && typeof style != "string") style = ret(style[0], style[1]);
357
161
 
358
162
  // Changing style returned based on context
359
163
  var context = state.stack[state.stack.length-1];
360
- if (style == "property") {
164
+ if (style == "variable") {
165
+ if (type == "variable-definition") state.stack.push("propertyValue");
166
+ return "variable-2";
167
+ } else if (style == "property") {
361
168
  if (context == "propertyValue"){
362
169
  if (valueKeywords[stream.current()]) {
363
170
  style = "string-2";
@@ -370,6 +177,18 @@ CodeMirror.defineMode("css", function(config) {
370
177
  if (!propertyKeywords[stream.current()]) {
371
178
  style += " error";
372
179
  }
180
+ } else if (context == "block") {
181
+ // if a value is present in both property, value, or color, the order
182
+ // of preference is property -> color -> value
183
+ if (propertyKeywords[stream.current()]) {
184
+ style = "property";
185
+ } else if (colorKeywords[stream.current()]) {
186
+ style = "keyword";
187
+ } else if (valueKeywords[stream.current()]) {
188
+ style = "string-2";
189
+ } else {
190
+ style = "tag";
191
+ }
373
192
  } else if (!context || context == "@media{") {
374
193
  style = "tag";
375
194
  } else if (context == "@media") {
@@ -415,7 +234,7 @@ CodeMirror.defineMode("css", function(config) {
415
234
  style = "error";
416
235
  }
417
236
  } else if (style == "atom") {
418
- if(!context || context == "@media{") {
237
+ if(!context || context == "@media{" || context == "block") {
419
238
  style = "builtin";
420
239
  } else if (context == "propertyValue") {
421
240
  if (!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())) {
@@ -434,19 +253,25 @@ CodeMirror.defineMode("css", function(config) {
434
253
  state.stack.pop();
435
254
  state.stack[state.stack.length-1] = "@media{";
436
255
  }
437
- else state.stack.push("rule");
256
+ else {
257
+ var newContext = allowNested ? "block" : "rule";
258
+ state.stack.push(newContext);
259
+ }
438
260
  }
439
261
  else if (type == "}") {
262
+ var lastState = state.stack[state.stack.length - 1];
263
+ if (lastState == "interpolation") style = "operator";
440
264
  state.stack.pop();
441
265
  if (context == "propertyValue") state.stack.pop();
442
266
  }
267
+ else if (type == "interpolation") state.stack.push("interpolation");
443
268
  else if (type == "@media") state.stack.push("@media");
444
269
  else if (context == "@media" && /\b(keyword|attribute)\b/.test(style))
445
270
  state.stack.push("@mediaType");
446
271
  else if (context == "@mediaType" && stream.current() == ",") state.stack.pop();
447
272
  else if (context == "@mediaType" && type == "(") state.stack.push("@mediaType(");
448
273
  else if (context == "@mediaType(" && type == ")") state.stack.pop();
449
- else if (context == "rule" && type == ":") state.stack.push("propertyValue");
274
+ else if ((context == "rule" || context == "block") && type == ":") state.stack.push("propertyValue");
450
275
  else if (context == "propertyValue" && type == ";") state.stack.pop();
451
276
  return style;
452
277
  },
@@ -462,4 +287,281 @@ CodeMirror.defineMode("css", function(config) {
462
287
  };
463
288
  });
464
289
 
465
- CodeMirror.defineMIME("text/css", "css");
290
+ (function() {
291
+ function keySet(array) {
292
+ var keys = {};
293
+ for (var i = 0; i < array.length; ++i) {
294
+ keys[array[i]] = true;
295
+ }
296
+ return keys;
297
+ }
298
+
299
+ var atMediaTypes = keySet([
300
+ "all", "aural", "braille", "handheld", "print", "projection", "screen",
301
+ "tty", "tv", "embossed"
302
+ ]);
303
+
304
+ var atMediaFeatures = keySet([
305
+ "width", "min-width", "max-width", "height", "min-height", "max-height",
306
+ "device-width", "min-device-width", "max-device-width", "device-height",
307
+ "min-device-height", "max-device-height", "aspect-ratio",
308
+ "min-aspect-ratio", "max-aspect-ratio", "device-aspect-ratio",
309
+ "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
310
+ "max-color", "color-index", "min-color-index", "max-color-index",
311
+ "monochrome", "min-monochrome", "max-monochrome", "resolution",
312
+ "min-resolution", "max-resolution", "scan", "grid"
313
+ ]);
314
+
315
+ var propertyKeywords = keySet([
316
+ "align-content", "align-items", "align-self", "alignment-adjust",
317
+ "alignment-baseline", "anchor-point", "animation", "animation-delay",
318
+ "animation-direction", "animation-duration", "animation-iteration-count",
319
+ "animation-name", "animation-play-state", "animation-timing-function",
320
+ "appearance", "azimuth", "backface-visibility", "background",
321
+ "background-attachment", "background-clip", "background-color",
322
+ "background-image", "background-origin", "background-position",
323
+ "background-repeat", "background-size", "baseline-shift", "binding",
324
+ "bleed", "bookmark-label", "bookmark-level", "bookmark-state",
325
+ "bookmark-target", "border", "border-bottom", "border-bottom-color",
326
+ "border-bottom-left-radius", "border-bottom-right-radius",
327
+ "border-bottom-style", "border-bottom-width", "border-collapse",
328
+ "border-color", "border-image", "border-image-outset",
329
+ "border-image-repeat", "border-image-slice", "border-image-source",
330
+ "border-image-width", "border-left", "border-left-color",
331
+ "border-left-style", "border-left-width", "border-radius", "border-right",
332
+ "border-right-color", "border-right-style", "border-right-width",
333
+ "border-spacing", "border-style", "border-top", "border-top-color",
334
+ "border-top-left-radius", "border-top-right-radius", "border-top-style",
335
+ "border-top-width", "border-width", "bottom", "box-decoration-break",
336
+ "box-shadow", "box-sizing", "break-after", "break-before", "break-inside",
337
+ "caption-side", "clear", "clip", "color", "color-profile", "column-count",
338
+ "column-fill", "column-gap", "column-rule", "column-rule-color",
339
+ "column-rule-style", "column-rule-width", "column-span", "column-width",
340
+ "columns", "content", "counter-increment", "counter-reset", "crop", "cue",
341
+ "cue-after", "cue-before", "cursor", "direction", "display",
342
+ "dominant-baseline", "drop-initial-after-adjust",
343
+ "drop-initial-after-align", "drop-initial-before-adjust",
344
+ "drop-initial-before-align", "drop-initial-size", "drop-initial-value",
345
+ "elevation", "empty-cells", "fit", "fit-position", "flex", "flex-basis",
346
+ "flex-direction", "flex-flow", "flex-grow", "flex-shrink", "flex-wrap",
347
+ "float", "float-offset", "font", "font-feature-settings", "font-family",
348
+ "font-kerning", "font-language-override", "font-size", "font-size-adjust",
349
+ "font-stretch", "font-style", "font-synthesis", "font-variant",
350
+ "font-variant-alternates", "font-variant-caps", "font-variant-east-asian",
351
+ "font-variant-ligatures", "font-variant-numeric", "font-variant-position",
352
+ "font-weight", "grid-cell", "grid-column", "grid-column-align",
353
+ "grid-column-sizing", "grid-column-span", "grid-columns", "grid-flow",
354
+ "grid-row", "grid-row-align", "grid-row-sizing", "grid-row-span",
355
+ "grid-rows", "grid-template", "hanging-punctuation", "height", "hyphens",
356
+ "icon", "image-orientation", "image-rendering", "image-resolution",
357
+ "inline-box-align", "justify-content", "left", "letter-spacing",
358
+ "line-break", "line-height", "line-stacking", "line-stacking-ruby",
359
+ "line-stacking-shift", "line-stacking-strategy", "list-style",
360
+ "list-style-image", "list-style-position", "list-style-type", "margin",
361
+ "margin-bottom", "margin-left", "margin-right", "margin-top",
362
+ "marker-offset", "marks", "marquee-direction", "marquee-loop",
363
+ "marquee-play-count", "marquee-speed", "marquee-style", "max-height",
364
+ "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
365
+ "nav-left", "nav-right", "nav-up", "opacity", "order", "orphans", "outline",
366
+ "outline-color", "outline-offset", "outline-style", "outline-width",
367
+ "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y",
368
+ "padding", "padding-bottom", "padding-left", "padding-right", "padding-top",
369
+ "page", "page-break-after", "page-break-before", "page-break-inside",
370
+ "page-policy", "pause", "pause-after", "pause-before", "perspective",
371
+ "perspective-origin", "pitch", "pitch-range", "play-during", "position",
372
+ "presentation-level", "punctuation-trim", "quotes", "rendering-intent",
373
+ "resize", "rest", "rest-after", "rest-before", "richness", "right",
374
+ "rotation", "rotation-point", "ruby-align", "ruby-overhang",
375
+ "ruby-position", "ruby-span", "size", "speak", "speak-as", "speak-header",
376
+ "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set",
377
+ "tab-size", "table-layout", "target", "target-name", "target-new",
378
+ "target-position", "text-align", "text-align-last", "text-decoration",
379
+ "text-decoration-color", "text-decoration-line", "text-decoration-skip",
380
+ "text-decoration-style", "text-emphasis", "text-emphasis-color",
381
+ "text-emphasis-position", "text-emphasis-style", "text-height",
382
+ "text-indent", "text-justify", "text-outline", "text-shadow",
383
+ "text-space-collapse", "text-transform", "text-underline-position",
384
+ "text-wrap", "top", "transform", "transform-origin", "transform-style",
385
+ "transition", "transition-delay", "transition-duration",
386
+ "transition-property", "transition-timing-function", "unicode-bidi",
387
+ "vertical-align", "visibility", "voice-balance", "voice-duration",
388
+ "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",
389
+ "voice-volume", "volume", "white-space", "widows", "width", "word-break",
390
+ "word-spacing", "word-wrap", "z-index"
391
+ ]);
392
+
393
+ var colorKeywords = keySet([
394
+ "black", "silver", "gray", "white", "maroon", "red", "purple", "fuchsia",
395
+ "green", "lime", "olive", "yellow", "navy", "blue", "teal", "aqua"
396
+ ]);
397
+
398
+ var valueKeywords = keySet([
399
+ "above", "absolute", "activeborder", "activecaption", "afar",
400
+ "after-white-space", "ahead", "alias", "all", "all-scroll", "alternate",
401
+ "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
402
+ "arabic-indic", "armenian", "asterisks", "auto", "avoid", "background",
403
+ "backwards", "baseline", "below", "bidi-override", "binary", "bengali",
404
+ "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",
405
+ "both", "bottom", "break-all", "break-word", "button", "button-bevel",
406
+ "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "cambodian",
407
+ "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
408
+ "cell", "center", "checkbox", "circle", "cjk-earthly-branch",
409
+ "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
410
+ "col-resize", "collapse", "compact", "condensed", "contain", "content",
411
+ "content-box", "context-menu", "continuous", "copy", "cover", "crop",
412
+ "cross", "crosshair", "currentcolor", "cursive", "dashed", "decimal",
413
+ "decimal-leading-zero", "default", "default-button", "destination-atop",
414
+ "destination-in", "destination-out", "destination-over", "devanagari",
415
+ "disc", "discard", "document", "dot-dash", "dot-dot-dash", "dotted",
416
+ "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",
417
+ "element", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
418
+ "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
419
+ "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
420
+ "ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
421
+ "ethiopic-halehame-gez", "ethiopic-halehame-om-et",
422
+ "ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",
423
+ "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et",
424
+ "ethiopic-halehame-tig", "ew-resize", "expanded", "extra-condensed",
425
+ "extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "footnotes",
426
+ "forwards", "from", "geometricPrecision", "georgian", "graytext", "groove",
427
+ "gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hebrew",
428
+ "help", "hidden", "hide", "higher", "highlight", "highlighttext",
429
+ "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore",
430
+ "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
431
+ "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",
432
+ "inline-block", "inline-table", "inset", "inside", "intrinsic", "invert",
433
+ "italic", "justify", "kannada", "katakana", "katakana-iroha", "khmer",
434
+ "landscape", "lao", "large", "larger", "left", "level", "lighter",
435
+ "line-through", "linear", "lines", "list-item", "listbox", "listitem",
436
+ "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
437
+ "lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",
438
+ "lower-roman", "lowercase", "ltr", "malayalam", "match",
439
+ "media-controls-background", "media-current-time-display",
440
+ "media-fullscreen-button", "media-mute-button", "media-play-button",
441
+ "media-return-to-realtime-button", "media-rewind-button",
442
+ "media-seek-back-button", "media-seek-forward-button", "media-slider",
443
+ "media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
444
+ "media-volume-slider-container", "media-volume-sliderthumb", "medium",
445
+ "menu", "menulist", "menulist-button", "menulist-text",
446
+ "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
447
+ "mix", "mongolian", "monospace", "move", "multiple", "myanmar", "n-resize",
448
+ "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
449
+ "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
450
+ "ns-resize", "nw-resize", "nwse-resize", "oblique", "octal", "open-quote",
451
+ "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
452
+ "outside", "overlay", "overline", "padding", "padding-box", "painted",
453
+ "paused", "persian", "plus-darker", "plus-lighter", "pointer", "portrait",
454
+ "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button",
455
+ "radio", "read-only", "read-write", "read-write-plaintext-only", "relative",
456
+ "repeat", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba",
457
+ "ridge", "right", "round", "row-resize", "rtl", "run-in", "running",
458
+ "s-resize", "sans-serif", "scroll", "scrollbar", "se-resize", "searchfield",
459
+ "searchfield-cancel-button", "searchfield-decoration",
460
+ "searchfield-results-button", "searchfield-results-decoration",
461
+ "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",
462
+ "single", "skip-white-space", "slide", "slider-horizontal",
463
+ "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
464
+ "small", "small-caps", "small-caption", "smaller", "solid", "somali",
465
+ "source-atop", "source-in", "source-out", "source-over", "space", "square",
466
+ "square-button", "start", "static", "status-bar", "stretch", "stroke",
467
+ "sub", "subpixel-antialiased", "super", "sw-resize", "table",
468
+ "table-caption", "table-cell", "table-column", "table-column-group",
469
+ "table-footer-group", "table-header-group", "table-row", "table-row-group",
470
+ "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
471
+ "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
472
+ "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
473
+ "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
474
+ "transparent", "ultra-condensed", "ultra-expanded", "underline", "up",
475
+ "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
476
+ "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
477
+ "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted",
478
+ "visibleStroke", "visual", "w-resize", "wait", "wave", "white", "wider",
479
+ "window", "windowframe", "windowtext", "x-large", "x-small", "xor",
480
+ "xx-large", "xx-small"
481
+ ]);
482
+
483
+ function tokenCComment(stream, state) {
484
+ var maybeEnd = false, ch;
485
+ while ((ch = stream.next()) != null) {
486
+ if (maybeEnd && ch == "/") {
487
+ state.tokenize = null;
488
+ break;
489
+ }
490
+ maybeEnd = (ch == "*");
491
+ }
492
+ return ["comment", "comment"];
493
+ }
494
+
495
+ CodeMirror.defineMIME("text/css", {
496
+ atMediaTypes: atMediaTypes,
497
+ atMediaFeatures: atMediaFeatures,
498
+ propertyKeywords: propertyKeywords,
499
+ colorKeywords: colorKeywords,
500
+ valueKeywords: valueKeywords,
501
+ hooks: {
502
+ "<": function(stream, state) {
503
+ function tokenSGMLComment(stream, state) {
504
+ var dashes = 0, ch;
505
+ while ((ch = stream.next()) != null) {
506
+ if (dashes >= 2 && ch == ">") {
507
+ state.tokenize = null;
508
+ break;
509
+ }
510
+ dashes = (ch == "-") ? dashes + 1 : 0;
511
+ }
512
+ return ["comment", "comment"];
513
+ }
514
+ if (stream.eat("!")) {
515
+ state.tokenize = tokenSGMLComment;
516
+ return tokenSGMLComment(stream, state);
517
+ }
518
+ },
519
+ "/": function(stream, state) {
520
+ if (stream.eat("*")) {
521
+ state.tokenize = tokenCComment;
522
+ return tokenCComment(stream, state);
523
+ }
524
+ return false;
525
+ }
526
+ },
527
+ name: "css-base"
528
+ });
529
+
530
+ CodeMirror.defineMIME("text/x-scss", {
531
+ atMediaTypes: atMediaTypes,
532
+ atMediaFeatures: atMediaFeatures,
533
+ propertyKeywords: propertyKeywords,
534
+ colorKeywords: colorKeywords,
535
+ valueKeywords: valueKeywords,
536
+ allowNested: true,
537
+ hooks: {
538
+ "$": function(stream) {
539
+ stream.match(/^[\w-]+/);
540
+ if (stream.peek() == ":") {
541
+ return ["variable", "variable-definition"];
542
+ }
543
+ return ["variable", "variable"];
544
+ },
545
+ "/": function(stream, state) {
546
+ if (stream.eat("/")) {
547
+ stream.skipToEnd();
548
+ return ["comment", "comment"];
549
+ } else if (stream.eat("*")) {
550
+ state.tokenize = tokenCComment;
551
+ return tokenCComment(stream, state);
552
+ } else {
553
+ return ["operator", "operator"];
554
+ }
555
+ },
556
+ "#": function(stream) {
557
+ if (stream.eat("{")) {
558
+ return ["operator", "interpolation"];
559
+ } else {
560
+ stream.eatWhile(/[\w\\\-]/);
561
+ return ["atom", "hash"];
562
+ }
563
+ }
564
+ },
565
+ name: "css-base"
566
+ });
567
+ })();