OLD | NEW |
1 CodeMirror.defineMode("css", function(config) { | 1 CodeMirror.defineMode("css", function(config) { |
2 return CodeMirror.getMode(config, "text/css"); | 2 return CodeMirror.getMode(config, "text/css"); |
3 }); | 3 }); |
4 | 4 |
5 CodeMirror.defineMode("css-base", function(config, parserConfig) { | 5 CodeMirror.defineMode("css-base", function(config, parserConfig) { |
6 "use strict"; | 6 "use strict"; |
7 | 7 |
8 var indentUnit = config.indentUnit, | 8 var indentUnit = config.indentUnit, |
9 hooks = parserConfig.hooks || {}, | 9 hooks = parserConfig.hooks || {}, |
10 atMediaTypes = parserConfig.atMediaTypes || {}, | 10 atMediaTypes = parserConfig.atMediaTypes || {}, |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 "whitesmoke", "yellow", "yellowgreen" | 435 "whitesmoke", "yellow", "yellowgreen" |
436 ]); | 436 ]); |
437 | 437 |
438 var valueKeywords = keySet([ | 438 var valueKeywords = keySet([ |
439 "above", "absolute", "activeborder", "activecaption", "afar", | 439 "above", "absolute", "activeborder", "activecaption", "afar", |
440 "after-white-space", "ahead", "alias", "all", "all-scroll", "alternate", | 440 "after-white-space", "ahead", "alias", "all", "all-scroll", "alternate", |
441 "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", | 441 "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", |
442 "arabic-indic", "armenian", "asterisks", "auto", "avoid", "background", | 442 "arabic-indic", "armenian", "asterisks", "auto", "avoid", "background", |
443 "backwards", "baseline", "below", "bidi-override", "binary", "bengali", | 443 "backwards", "baseline", "below", "bidi-override", "binary", "bengali", |
444 "blink", "block", "block-axis", "bold", "bolder", "border", "border-box", | 444 "blink", "block", "block-axis", "bold", "bolder", "border", "border-box", |
445 "both", "bottom", "break-all", "break-word", "button", "button-bevel", | 445 "both", "bottom", "boundingBox", "break-all", "break-word", "button", "butto
n-bevel", |
446 "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "cambodian", | 446 "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "cambodian", |
447 "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", | 447 "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", |
448 "cell", "center", "checkbox", "circle", "cjk-earthly-branch", | 448 "cell", "center", "checkbox", "circle", "cjk-earthly-branch", |
449 "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", | 449 "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", |
450 "col-resize", "collapse", "compact", "condensed", "contain", "content", | 450 "col-resize", "collapse", "compact", "condensed", "contain", "content", |
451 "content-box", "context-menu", "continuous", "copy", "cover", "crop", | 451 "content-box", "context-menu", "continuous", "copy", "cover", "crop", |
452 "cross", "crosshair", "currentcolor", "cursive", "dashed", "decimal", | 452 "cross", "crosshair", "currentcolor", "cursive", "dashed", "decimal", |
453 "decimal-leading-zero", "default", "default-button", "destination-atop", | 453 "decimal-leading-zero", "default", "default-button", "destination-atop", |
454 "destination-in", "destination-out", "destination-over", "devanagari", | 454 "destination-in", "destination-out", "destination-over", "devanagari", |
455 "disc", "discard", "document", "dot-dash", "dot-dot-dash", "dotted", | 455 "disc", "discard", "document", "dot-dash", "dot-dot-dash", "dotted", |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 return ["operator", "interpolation"]; | 598 return ["operator", "interpolation"]; |
599 } else { | 599 } else { |
600 stream.eatWhile(/[\w\\\-]/); | 600 stream.eatWhile(/[\w\\\-]/); |
601 return ["atom", "hash"]; | 601 return ["atom", "hash"]; |
602 } | 602 } |
603 } | 603 } |
604 }, | 604 }, |
605 name: "css-base" | 605 name: "css-base" |
606 }); | 606 }); |
607 })(); | 607 })(); |
OLD | NEW |