Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/cm_web_modes/css.js

Issue 2862603003: Revert of DevTools: Roll CodeMirror to 5.25.1
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // CodeMirror, copyright (c) by Marijn Haverbeke and others 1 // CodeMirror, copyright (c) by Marijn Haverbeke and others
2 // Distributed under an MIT license: http://codemirror.net/LICENSE 2 // Distributed under an MIT license: http://codemirror.net/LICENSE
3 3
4 (function(mod) { 4 (function(mod) {
5 if (typeof exports == "object" && typeof module == "object") // CommonJS 5 if (typeof exports == "object" && typeof module == "object") // CommonJS
6 mod(require("../../lib/codemirror")); 6 mod(require("../../lib/codemirror"));
7 else if (typeof define == "function" && define.amd) // AMD 7 else if (typeof define == "function" && define.amd) // AMD
8 define(["../../lib/codemirror"], mod); 8 define(["../../lib/codemirror"], mod);
9 else // Plain browser env 9 else // Plain browser env
10 mod(CodeMirror); 10 mod(CodeMirror);
(...skipping 10 matching lines...) Expand all
21 mediaTypes = parserConfig.mediaTypes || {}, 21 mediaTypes = parserConfig.mediaTypes || {},
22 mediaFeatures = parserConfig.mediaFeatures || {}, 22 mediaFeatures = parserConfig.mediaFeatures || {},
23 mediaValueKeywords = parserConfig.mediaValueKeywords || {}, 23 mediaValueKeywords = parserConfig.mediaValueKeywords || {},
24 propertyKeywords = parserConfig.propertyKeywords || {}, 24 propertyKeywords = parserConfig.propertyKeywords || {},
25 nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {}, 25 nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},
26 fontProperties = parserConfig.fontProperties || {}, 26 fontProperties = parserConfig.fontProperties || {},
27 counterDescriptors = parserConfig.counterDescriptors || {}, 27 counterDescriptors = parserConfig.counterDescriptors || {},
28 colorKeywords = parserConfig.colorKeywords || {}, 28 colorKeywords = parserConfig.colorKeywords || {},
29 valueKeywords = parserConfig.valueKeywords || {}, 29 valueKeywords = parserConfig.valueKeywords || {},
30 allowNested = parserConfig.allowNested, 30 allowNested = parserConfig.allowNested,
31 lineComment = parserConfig.lineComment,
32 supportsAtComponent = parserConfig.supportsAtComponent === true; 31 supportsAtComponent = parserConfig.supportsAtComponent === true;
33 32
34 var type, override; 33 var type, override;
35 function ret(style, tp) { type = tp; return style; } 34 function ret(style, tp) { type = tp; return style; }
36 35
37 // Tokenizers 36 // Tokenizers
38 37
39 function tokenBase(stream, state) { 38 function tokenBase(stream, state) {
40 var ch = stream.next(); 39 var ch = stream.next();
41 if (tokenHooks[ch]) { 40 if (tokenHooks[ch]) {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 states.parens = function(type, stream, state) { 246 states.parens = function(type, stream, state) {
248 if (type == "{" || type == "}") return popAndPass(type, stream, state); 247 if (type == "{" || type == "}") return popAndPass(type, stream, state);
249 if (type == ")") return popContext(state); 248 if (type == ")") return popContext(state);
250 if (type == "(") return pushContext(state, stream, "parens"); 249 if (type == "(") return pushContext(state, stream, "parens");
251 if (type == "interpolation") return pushContext(state, stream, "interpolatio n"); 250 if (type == "interpolation") return pushContext(state, stream, "interpolatio n");
252 if (type == "word") wordAsValue(stream); 251 if (type == "word") wordAsValue(stream);
253 return "parens"; 252 return "parens";
254 }; 253 };
255 254
256 states.pseudo = function(type, stream, state) { 255 states.pseudo = function(type, stream, state) {
257 if (type == "meta") return "pseudo";
258
259 if (type == "word") { 256 if (type == "word") {
260 override = "variable-3"; 257 override = "variable-3";
261 return state.context.type; 258 return state.context.type;
262 } 259 }
263 return pass(type, stream, state); 260 return pass(type, stream, state);
264 }; 261 };
265 262
266 states.documentTypes = function(type, stream, state) { 263 states.documentTypes = function(type, stream, state) {
267 if (type == "word" && documentTypes.hasOwnProperty(stream.current())) { 264 if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
268 override = "tag"; 265 override = "tag";
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 indent = Math.max(0, cx.indent - indentUnit); 400 indent = Math.max(0, cx.indent - indentUnit);
404 cx = cx.prev; 401 cx = cx.prev;
405 } 402 }
406 } 403 }
407 return indent; 404 return indent;
408 }, 405 },
409 406
410 electricChars: "}", 407 electricChars: "}",
411 blockCommentStart: "/*", 408 blockCommentStart: "/*",
412 blockCommentEnd: "*/", 409 blockCommentEnd: "*/",
413 lineComment: lineComment,
414 fold: "brace" 410 fold: "brace"
415 }; 411 };
416 }); 412 });
417 413
418 function keySet(array) { 414 function keySet(array) {
419 var keys = {}; 415 var keys = {};
420 for (var i = 0; i < array.length; ++i) { 416 for (var i = 0; i < array.length; ++i) {
421 keys[array[i].toLowerCase()] = true; 417 keys[array[i]] = true;
422 } 418 }
423 return keys; 419 return keys;
424 } 420 }
425 421
426 var documentTypes_ = [ 422 var documentTypes_ = [
427 "domain", "regexp", "url", "url-prefix" 423 "domain", "regexp", "url", "url-prefix"
428 ], documentTypes = keySet(documentTypes_); 424 ], documentTypes = keySet(documentTypes_);
429 425
430 var mediaTypes_ = [ 426 var mediaTypes_ = [
431 "all", "aural", "braille", "handheld", "print", "projection", "screen", 427 "all", "aural", "braille", "handheld", "print", "projection", "screen",
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap", 487 "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap",
492 "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap", 488 "grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap",
493 "grid-row-start", "grid-template", "grid-template-areas", "grid-template-col umns", 489 "grid-row-start", "grid-template", "grid-template-areas", "grid-template-col umns",
494 "grid-template-rows", "hanging-punctuation", "height", "hyphens", 490 "grid-template-rows", "hanging-punctuation", "height", "hyphens",
495 "icon", "image-orientation", "image-rendering", "image-resolution", 491 "icon", "image-orientation", "image-rendering", "image-resolution",
496 "inline-box-align", "justify-content", "left", "letter-spacing", 492 "inline-box-align", "justify-content", "left", "letter-spacing",
497 "line-break", "line-height", "line-stacking", "line-stacking-ruby", 493 "line-break", "line-height", "line-stacking", "line-stacking-ruby",
498 "line-stacking-shift", "line-stacking-strategy", "list-style", 494 "line-stacking-shift", "line-stacking-strategy", "list-style",
499 "list-style-image", "list-style-position", "list-style-type", "margin", 495 "list-style-image", "list-style-position", "list-style-type", "margin",
500 "margin-bottom", "margin-left", "margin-right", "margin-top", 496 "margin-bottom", "margin-left", "margin-right", "margin-top",
501 "marks", "marquee-direction", "marquee-loop", 497 "marker-offset", "marks", "marquee-direction", "marquee-loop",
502 "marquee-play-count", "marquee-speed", "marquee-style", "max-height", 498 "marquee-play-count", "marquee-speed", "marquee-style", "max-height",
503 "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index", 499 "max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
504 "nav-left", "nav-right", "nav-up", "object-fit", "object-position", 500 "nav-left", "nav-right", "nav-up", "object-fit", "object-position",
505 "opacity", "order", "orphans", "outline", 501 "opacity", "order", "orphans", "outline",
506 "outline-color", "outline-offset", "outline-style", "outline-width", 502 "outline-color", "outline-offset", "outline-style", "outline-width",
507 "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y", 503 "overflow", "overflow-style", "overflow-wrap", "overflow-x", "overflow-y",
508 "padding", "padding-bottom", "padding-left", "padding-right", "padding-top", 504 "padding", "padding-bottom", "padding-left", "padding-right", "padding-top",
509 "page", "page-break-after", "page-break-before", "page-break-inside", 505 "page", "page-break-after", "page-break-before", "page-break-inside",
510 "page-policy", "pause", "pause-after", "pause-before", "perspective", 506 "page-policy", "pause", "pause-after", "pause-before", "perspective",
511 "perspective-origin", "pitch", "pitch-range", "play-during", "position", 507 "perspective-origin", "pitch", "pitch-range", "play-during", "position",
512 "presentation-level", "punctuation-trim", "quotes", "region-break-after", 508 "presentation-level", "punctuation-trim", "quotes", "region-break-after",
513 "region-break-before", "region-break-inside", "region-fragment", 509 "region-break-before", "region-break-inside", "region-fragment",
514 "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness ", 510 "rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness ",
515 "right", "rotation", "rotation-point", "ruby-align", "ruby-overhang", 511 "right", "rotation", "rotation-point", "ruby-align", "ruby-overhang",
516 "ruby-position", "ruby-span", "shape-image-threshold", "shape-inside", "shap e-margin", 512 "ruby-position", "ruby-span", "shape-image-threshold", "shape-inside", "shap e-margin",
517 "shape-outside", "size", "speak", "speak-as", "speak-header", 513 "shape-outside", "size", "speak", "speak-as", "speak-header",
518 "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set", 514 "speak-numeral", "speak-punctuation", "speech-rate", "stress", "string-set",
519 "tab-size", "table-layout", "target", "target-name", "target-new", 515 "tab-size", "table-layout", "target", "target-name", "target-new",
520 "target-position", "text-align", "text-align-last", "text-decoration", 516 "target-position", "text-align", "text-align-last", "text-decoration",
521 "text-decoration-color", "text-decoration-line", "text-decoration-skip", 517 "text-decoration-color", "text-decoration-line", "text-decoration-skip",
522 "text-decoration-style", "text-emphasis", "text-emphasis-color", 518 "text-decoration-style", "text-emphasis", "text-emphasis-color",
523 "text-emphasis-position", "text-emphasis-style", "text-height", 519 "text-emphasis-position", "text-emphasis-style", "text-height",
524 "text-indent", "text-justify", "text-outline", "text-overflow", "text-shadow ", 520 "text-indent", "text-justify", "text-outline", "text-overflow", "text-shadow ",
525 "text-size-adjust", "text-space-collapse", "text-transform", "text-underline -position", 521 "text-size-adjust", "text-space-collapse", "text-transform", "text-underline -position",
526 "text-wrap", "top", "transform", "transform-origin", "transform-style", 522 "text-wrap", "top", "transform", "transform-origin", "transform-style",
527 "transition", "transition-delay", "transition-duration", 523 "transition", "transition-delay", "transition-duration",
528 "transition-property", "transition-timing-function", "unicode-bidi", 524 "transition-property", "transition-timing-function", "unicode-bidi",
529 "user-select", "vertical-align", "visibility", "voice-balance", "voice-durat ion", 525 "vertical-align", "visibility", "voice-balance", "voice-duration",
530 "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress", 526 "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",
531 "voice-volume", "volume", "white-space", "widows", "width", "will-change", " word-break", 527 "voice-volume", "volume", "white-space", "widows", "width", "word-break",
532 "word-spacing", "word-wrap", "z-index", 528 "word-spacing", "word-wrap", "z-index",
533 // SVG-specific 529 // SVG-specific
534 "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-colo r", 530 "clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-colo r",
535 "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-ev ents", 531 "flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-ev ents",
536 "color-interpolation", "color-interpolation-filters", 532 "color-interpolation", "color-interpolation-filters",
537 "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering", 533 "color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
538 "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "st roke", 534 "marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "st roke",
539 "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin" , 535 "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin" ,
540 "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering", 536 "stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
541 "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal", 537 "baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue ", 582 "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue ",
587 "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan", 583 "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan",
588 "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", 584 "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white",
589 "whitesmoke", "yellow", "yellowgreen" 585 "whitesmoke", "yellow", "yellowgreen"
590 ], colorKeywords = keySet(colorKeywords_); 586 ], colorKeywords = keySet(colorKeywords_);
591 587
592 var valueKeywords_ = [ 588 var valueKeywords_ = [
593 "above", "absolute", "activeborder", "additive", "activecaption", "afar", 589 "above", "absolute", "activeborder", "additive", "activecaption", "afar",
594 "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "a lternate", 590 "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "a lternate",
595 "always", "amharic", "amharic-abegede", "antialiased", "appworkspace", 591 "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",
596 "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid ", "avoid-column", "avoid-page", 592 "arabic-indic", "armenian", "asterisks", "attr", "auto", "avoid", "avoid-col umn", "avoid-page",
597 "avoid-region", "background", "backwards", "baseline", "below", "bidi-overri de", "binary", 593 "avoid-region", "background", "backwards", "baseline", "below", "bidi-overri de", "binary",
598 "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "bord er-box", 594 "bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "bord er-box",
599 "both", "bottom", "break", "break-all", "break-word", "bullets", "button", " button-bevel", 595 "both", "bottom", "break", "break-all", "break-word", "bullets", "button", " button-bevel",
600 "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "camb odian", 596 "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "camb odian",
601 "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", 597 "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",
602 "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch", 598 "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",
603 "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote", 599 "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",
604 "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "c olumn-reverse", 600 "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "c olumn-reverse",
605 "compact", "condensed", "contain", "content", "contents", 601 "compact", "condensed", "contain", "content",
606 "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop", 602 "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop",
607 "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed ", "decimal", 603 "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed ", "decimal",
608 "decimal-leading-zero", "default", "default-button", "dense", "destination-a top", 604 "decimal-leading-zero", "default", "default-button", "dense", "destination-a top",
609 "destination-in", "destination-out", "destination-over", "devanagari", "diff erence", 605 "destination-in", "destination-out", "destination-over", "devanagari", "diff erence",
610 "disc", "discard", "disclosure-closed", "disclosure-open", "document", 606 "disc", "discard", "disclosure-closed", "disclosure-open", "document",
611 "dot-dash", "dot-dot-dash", 607 "dot-dash", "dot-dot-dash",
612 "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "e ase-out", 608 "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "e ase-out",
613 "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abeg ede", 609 "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abeg ede",
614 "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er", 610 "ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
615 "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er", 611 "ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
(...skipping 22 matching lines...) Expand all
638 "media-fullscreen-button", "media-mute-button", "media-play-button", 634 "media-fullscreen-button", "media-mute-button", "media-play-button",
639 "media-return-to-realtime-button", "media-rewind-button", 635 "media-return-to-realtime-button", "media-rewind-button",
640 "media-seek-back-button", "media-seek-forward-button", "media-slider", 636 "media-seek-back-button", "media-seek-forward-button", "media-slider",
641 "media-sliderthumb", "media-time-remaining-display", "media-volume-slider", 637 "media-sliderthumb", "media-time-remaining-display", "media-volume-slider",
642 "media-volume-slider-container", "media-volume-sliderthumb", "medium", 638 "media-volume-slider-container", "media-volume-sliderthumb", "medium",
643 "menu", "menulist", "menulist-button", "menulist-text", 639 "menu", "menulist", "menulist-button", "menulist-text",
644 "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic", 640 "menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",
645 "mix", "mongolian", "monospace", "move", "multiple", "multiply", "myanmar", "n-resize", 641 "mix", "mongolian", "monospace", "move", "multiple", "multiply", "myanmar", "n-resize",
646 "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", 642 "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
647 "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", 643 "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",
648 "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "o ctal", "opacity", "open-quote", 644 "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "o ctal", "open-quote",
649 "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset", 645 "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
650 "outside", "outside-shape", "overlay", "overline", "padding", "padding-box", 646 "outside", "outside-shape", "overlay", "overline", "padding", "padding-box",
651 "painted", "page", "paused", "persian", "perspective", "plus-darker", "plus- lighter", 647 "painted", "page", "paused", "persian", "perspective", "plus-darker", "plus- lighter",
652 "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3 d", 648 "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3 d",
653 "progress", "push-button", "radial-gradient", "radio", "read-only", 649 "progress", "push-button", "radial-gradient", "radio", "read-only",
654 "read-write", "read-write-plaintext-only", "rectangle", "region", 650 "read-write", "read-write-plaintext-only", "rectangle", "region",
655 "relative", "repeat", "repeating-linear-gradient", 651 "relative", "repeat", "repeating-linear-gradient",
656 "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse", 652 "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse",
657 "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", 653 "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
658 "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "ru nning", 654 "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "ru nning",
659 "s-resize", "sans-serif", "saturation", "scale", "scale3d", "scaleX", "scale Y", "scaleZ", "screen", 655 "s-resize", "sans-serif", "saturation", "scale", "scale3d", "scaleX", "scale Y", "scaleZ", "screen",
660 "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", 656 "scroll", "scrollbar", "se-resize", "searchfield",
661 "searchfield-cancel-button", "searchfield-decoration", 657 "searchfield-cancel-button", "searchfield-decoration",
662 "searchfield-results-button", "searchfield-results-decoration", 658 "searchfield-results-button", "searchfield-results-decoration",
663 "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama", 659 "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",
664 "simp-chinese-formal", "simp-chinese-informal", "single", 660 "simp-chinese-formal", "simp-chinese-informal", "single",
665 "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal", 661 "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",
666 "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", 662 "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",
667 "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "s omali", 663 "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "s omali",
668 "source-atop", "source-in", "source-out", "source-over", "space", "space-aro und", "space-between", "spell-out", "square", 664 "source-atop", "source-in", "source-out", "source-over", "space", "space-aro und", "space-between", "spell-out", "square",
669 "square-button", "start", "static", "status-bar", "stretch", "stroke", "sub" , 665 "square-button", "start", "static", "status-bar", "stretch", "stroke", "sub" ,
670 "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "system -ui", "table", 666 "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "table" ,
671 "table-caption", "table-cell", "table-column", "table-column-group", 667 "table-caption", "table-cell", "table-column", "table-column-group",
672 "table-footer-group", "table-header-group", "table-row", "table-row-group", 668 "table-footer-group", "table-header-group", "table-row", "table-row-group",
673 "tamil", 669 "tamil",
674 "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai" , 670 "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai" ,
675 "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight", 671 "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
676 "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er", 672 "threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
677 "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top", 673 "tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",
678 "trad-chinese-formal", "trad-chinese-informal", "transform", 674 "trad-chinese-formal", "trad-chinese-informal",
679 "translate", "translate3d", "translateX", "translateY", "translateZ", 675 "translate", "translate3d", "translateX", "translateY", "translateZ",
680 "transparent", "ultra-condensed", "ultra-expanded", "underline", "unset", "u p", 676 "transparent", "ultra-condensed", "ultra-expanded", "underline", "up",
681 "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal", 677 "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
682 "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url", 678 "upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",
683 "var", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainte d", 679 "var", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainte d",
684 "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", 680 "visibleStroke", "visual", "w-resize", "wait", "wave", "wider",
685 "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-l arge", "x-small", "xor", 681 "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-l arge", "x-small", "xor",
686 "xx-large", "xx-small" 682 "xx-large", "xx-small"
687 ], valueKeywords = keySet(valueKeywords_); 683 ], valueKeywords = keySet(valueKeywords_);
688 684
689 var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).conca t(mediaValueKeywords_) 685 var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).conca t(mediaValueKeywords_)
690 .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(color Keywords_) 686 .concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(color Keywords_)
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 CodeMirror.defineMIME("text/x-scss", { 723 CodeMirror.defineMIME("text/x-scss", {
728 mediaTypes: mediaTypes, 724 mediaTypes: mediaTypes,
729 mediaFeatures: mediaFeatures, 725 mediaFeatures: mediaFeatures,
730 mediaValueKeywords: mediaValueKeywords, 726 mediaValueKeywords: mediaValueKeywords,
731 propertyKeywords: propertyKeywords, 727 propertyKeywords: propertyKeywords,
732 nonStandardPropertyKeywords: nonStandardPropertyKeywords, 728 nonStandardPropertyKeywords: nonStandardPropertyKeywords,
733 colorKeywords: colorKeywords, 729 colorKeywords: colorKeywords,
734 valueKeywords: valueKeywords, 730 valueKeywords: valueKeywords,
735 fontProperties: fontProperties, 731 fontProperties: fontProperties,
736 allowNested: true, 732 allowNested: true,
737 lineComment: "//",
738 tokenHooks: { 733 tokenHooks: {
739 "/": function(stream, state) { 734 "/": function(stream, state) {
740 if (stream.eat("/")) { 735 if (stream.eat("/")) {
741 stream.skipToEnd(); 736 stream.skipToEnd();
742 return ["comment", "comment"]; 737 return ["comment", "comment"];
743 } else if (stream.eat("*")) { 738 } else if (stream.eat("*")) {
744 state.tokenize = tokenCComment; 739 state.tokenize = tokenCComment;
745 return tokenCComment(stream, state); 740 return tokenCComment(stream, state);
746 } else { 741 } else {
747 return ["operator", "operator"]; 742 return ["operator", "operator"];
(...skipping 22 matching lines...) Expand all
770 CodeMirror.defineMIME("text/x-less", { 765 CodeMirror.defineMIME("text/x-less", {
771 mediaTypes: mediaTypes, 766 mediaTypes: mediaTypes,
772 mediaFeatures: mediaFeatures, 767 mediaFeatures: mediaFeatures,
773 mediaValueKeywords: mediaValueKeywords, 768 mediaValueKeywords: mediaValueKeywords,
774 propertyKeywords: propertyKeywords, 769 propertyKeywords: propertyKeywords,
775 nonStandardPropertyKeywords: nonStandardPropertyKeywords, 770 nonStandardPropertyKeywords: nonStandardPropertyKeywords,
776 colorKeywords: colorKeywords, 771 colorKeywords: colorKeywords,
777 valueKeywords: valueKeywords, 772 valueKeywords: valueKeywords,
778 fontProperties: fontProperties, 773 fontProperties: fontProperties,
779 allowNested: true, 774 allowNested: true,
780 lineComment: "//",
781 tokenHooks: { 775 tokenHooks: {
782 "/": function(stream, state) { 776 "/": function(stream, state) {
783 if (stream.eat("/")) { 777 if (stream.eat("/")) {
784 stream.skipToEnd(); 778 stream.skipToEnd();
785 return ["comment", "comment"]; 779 return ["comment", "comment"];
786 } else if (stream.eat("*")) { 780 } else if (stream.eat("*")) {
787 state.tokenize = tokenCComment; 781 state.tokenize = tokenCComment;
788 return tokenCComment(stream, state); 782 return tokenCComment(stream, state);
789 } else { 783 } else {
790 return ["operator", "operator"]; 784 return ["operator", "operator"];
(...skipping 30 matching lines...) Expand all
821 "/": function(stream, state) { 815 "/": function(stream, state) {
822 if (!stream.eat("*")) return false; 816 if (!stream.eat("*")) return false;
823 state.tokenize = tokenCComment; 817 state.tokenize = tokenCComment;
824 return tokenCComment(stream, state); 818 return tokenCComment(stream, state);
825 } 819 }
826 }, 820 },
827 name: "css", 821 name: "css",
828 helperType: "gss" 822 helperType: "gss"
829 }); 823 });
830 824
831 }); 825 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698