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

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

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

Powered by Google App Engine
This is Rietveld 408576698