Vergleich admin/jscripts/codemirror/mode/css/css.js - 1.8.9 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 12Zeile 12
"use strict";

CodeMirror.defineMode("css", function(config, parserConfig) {

"use strict";

CodeMirror.defineMode("css", function(config, parserConfig) {

 
  var inline = parserConfig.inline

  if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");

var indentUnit = config.indentUnit,
tokenHooks = parserConfig.tokenHooks,

  if (!parserConfig.propertyKeywords) parserConfig = CodeMirror.resolveMode("text/css");

var indentUnit = config.indentUnit,
tokenHooks = parserConfig.tokenHooks,

 
      documentTypes = parserConfig.documentTypes || {},

      mediaTypes = parserConfig.mediaTypes || {},
mediaFeatures = parserConfig.mediaFeatures || {},

      mediaTypes = parserConfig.mediaTypes || {},
mediaFeatures = parserConfig.mediaFeatures || {},

 
      mediaValueKeywords = parserConfig.mediaValueKeywords || {},

      propertyKeywords = parserConfig.propertyKeywords || {},
nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},

      propertyKeywords = parserConfig.propertyKeywords || {},
nonStandardPropertyKeywords = parserConfig.nonStandardPropertyKeywords || {},

 
      fontProperties = parserConfig.fontProperties || {},
counterDescriptors = parserConfig.counterDescriptors || {},

      colorKeywords = parserConfig.colorKeywords || {},
valueKeywords = parserConfig.valueKeywords || {},

      colorKeywords = parserConfig.colorKeywords || {},
valueKeywords = parserConfig.valueKeywords || {},

      fontProperties = parserConfig.fontProperties || {},
allowNested = parserConfig.allowNested;


      allowNested = parserConfig.allowNested,
lineComment = parserConfig.lineComment,
supportsAtComponent = parserConfig.supportsAtComponent === true;


var type, override;
function ret(style, tp) { type = tp; return style; }


var type, override;
function ret(style, tp) { type = tp; return style; }

Zeile 57Zeile 63
      if (/[\d.]/.test(stream.peek())) {
stream.eatWhile(/[\w.%]/);
return ret("number", "unit");

      if (/[\d.]/.test(stream.peek())) {
stream.eatWhile(/[\w.%]/);
return ret("number", "unit");

 
      } else if (stream.match(/^-[\w\\\-]+/)) {
stream.eatWhile(/[\w\\\-]/);
if (stream.match(/^\s*:/, false))
return ret("variable-2", "variable-definition");
return ret("variable-2", "variable");

      } else if (stream.match(/^\w+-/)) {
return ret("meta", "meta");
}

      } else if (stream.match(/^\w+-/)) {
return ret("meta", "meta");
}

Zeile 66Zeile 77
      return ret("qualifier", "qualifier");
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
return ret(null, ch);

      return ret("qualifier", "qualifier");
} else if (/[:;{}\[\]\(\)]/.test(ch)) {
return ret(null, ch);

    } else if (ch == "u" && stream.match("rl(")) {



    } else if ((ch == "u" && stream.match(/rl(-prefix)?\(/)) ||
(ch == "d" && stream.match("omain(")) ||
(ch == "r" && stream.match("egexp("))) {

      stream.backUp(1);
state.tokenize = tokenParenthesized;
return ret("property", "word");

      stream.backUp(1);
state.tokenize = tokenParenthesized;
return ret("property", "word");

Zeile 110Zeile 123
    this.prev = prev;
}


    this.prev = prev;
}


  function pushContext(state, stream, type) {
state.context = new Context(type, stream.indentation() + indentUnit, state.context);

  function pushContext(state, stream, type, indent) {
state.context = new Context(type, stream.indentation() + (indent === false ? 0 : indentUnit), state.context);

    return type;
}

function popContext(state) {

    return type;
}

function popContext(state) {

    state.context = state.context.prev;


    if (state.context.prev)
state.context = state.context.prev;

    return state.context.type;

    return state.context.type;

  }

  }


function pass(type, stream, state) {
return states[state.context.type](type, stream, state);


function pass(type, stream, state) {
return states[state.context.type](type, stream, state);

  }

  }

  function popAndPass(type, stream, state, n) {
for (var i = n || 1; i > 0; i--)
state.context = state.context.prev;
return pass(type, stream, state);

  function popAndPass(type, stream, state, n) {
for (var i = n || 1; i > 0; i--)
state.context = state.context.prev;
return pass(type, stream, state);

  }

// Parser

  }

// Parser


function wordAsValue(stream) {
var word = stream.current().toLowerCase();


function wordAsValue(stream) {
var word = stream.current().toLowerCase();

Zeile 148Zeile 162
      return pushContext(state, stream, "block");
} else if (type == "}" && state.context.prev) {
return popContext(state);

      return pushContext(state, stream, "block");
} else if (type == "}" && state.context.prev) {
return popContext(state);

    } else if (type == "@media") {
return pushContext(state, stream, "media");
} else if (type == "@font-face") {
return "font_face_before";






    } else if (supportsAtComponent && /@component/.test(type)) {
return pushContext(state, stream, "atComponentBlock");
} else if (/^@(-moz-)?document$/.test(type)) {
return pushContext(state, stream, "documentTypes");
} else if (/^@(media|supports|(-moz-)?document|import)$/.test(type)) {
return pushContext(state, stream, "atBlock");
} else if (/^@(font-face|counter-style)/.test(type)) {
state.stateArg = type;
return "restricted_atBlock_before";

    } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) {
return "keyframes";
} else if (type && type.charAt(0) == "@") {

    } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(type)) {
return "keyframes";
} else if (type && type.charAt(0) == "@") {

Zeile 176Zeile 195
    if (type == "word") {
var word = stream.current().toLowerCase();
if (propertyKeywords.hasOwnProperty(word)) {

    if (type == "word") {
var word = stream.current().toLowerCase();
if (propertyKeywords.hasOwnProperty(word)) {

        override = "property";
return "maybeprop";

        override = "property";
return "maybeprop";

      } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
override = "string-2";
return "maybeprop";

      } else if (nonStandardPropertyKeywords.hasOwnProperty(word)) {
override = "string-2";
return "maybeprop";

Zeile 195Zeile 214
      return "block";
} else {
return states.top(type, stream, state);

      return "block";
} else {
return states.top(type, stream, state);

    }
};

    }
};


states.maybeprop = function(type, stream, state) {
if (type == ":") return pushContext(state, stream, "prop");


states.maybeprop = function(type, stream, state) {
if (type == ":") return pushContext(state, stream, "prop");

Zeile 209Zeile 228
    if (type == "}" || type == "{") return popAndPass(type, stream, state);
if (type == "(") return pushContext(state, stream, "parens");


    if (type == "}" || type == "{") return popAndPass(type, stream, state);
if (type == "(") return pushContext(state, stream, "parens");


    if (type == "hash" && !/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(stream.current())) {

    if (type == "hash" && !/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(stream.current())) {

      override += " error";
} else if (type == "word") {
wordAsValue(stream);
} else if (type == "interpolation") {
return pushContext(state, stream, "interpolation");

      override += " error";
} else if (type == "word") {
wordAsValue(stream);
} else if (type == "interpolation") {
return pushContext(state, stream, "interpolation");

    }

    }

    return "prop";
};


    return "prop";
};


Zeile 229Zeile 248
    if (type == "{" || type == "}") return popAndPass(type, stream, state);
if (type == ")") return popContext(state);
if (type == "(") return pushContext(state, stream, "parens");

    if (type == "{" || type == "}") return popAndPass(type, stream, state);
if (type == ")") return popContext(state);
if (type == "(") return pushContext(state, stream, "parens");

 
    if (type == "interpolation") return pushContext(state, stream, "interpolation");

    if (type == "word") wordAsValue(stream);
return "parens";
};

states.pseudo = function(type, stream, state) {

    if (type == "word") wordAsValue(stream);
return "parens";
};

states.pseudo = function(type, stream, state) {

    if (type == "word") {



    if (type == "meta") return "pseudo";

if (type == "word") {

      override = "variable-3";
return state.context.type;
}

      override = "variable-3";
return state.context.type;
}

    return pass(type, stream, state);










    return pass(type, stream, state);
};

states.documentTypes = function(type, stream, state) {
if (type == "word" && documentTypes.hasOwnProperty(stream.current())) {
override = "tag";
return state.context.type;
} else {
return states.atBlock(type, stream, state);
}

  };

  };


states.media = function(type, stream, state) {
if (type == "(") return pushContext(state, stream, "media_parens");
if (type == "}") return popAndPass(type, stream, state);


states.atBlock = function(type, stream, state) {
if (type == "(") return pushContext(state, stream, "atBlock_parens");
if (type == "}" || type == ";") return popAndPass(type, stream, state);

    if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");

    if (type == "{") return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top");

 

if (type == "interpolation") return pushContext(state, stream, "interpolation");


if (type == "word") {
var word = stream.current().toLowerCase();


if (type == "word") {
var word = stream.current().toLowerCase();

      if (word == "only" || word == "not" || word == "and")

      if (word == "only" || word == "not" || word == "and" || word == "or")

        override = "keyword";
else if (mediaTypes.hasOwnProperty(word))
override = "attribute";
else if (mediaFeatures.hasOwnProperty(word))
override = "property";

        override = "keyword";
else if (mediaTypes.hasOwnProperty(word))
override = "attribute";
else if (mediaFeatures.hasOwnProperty(word))
override = "property";

 
      else if (mediaValueKeywords.hasOwnProperty(word))
override = "keyword";
else if (propertyKeywords.hasOwnProperty(word))
override = "property";
else if (nonStandardPropertyKeywords.hasOwnProperty(word))
override = "string-2";
else if (valueKeywords.hasOwnProperty(word))
override = "atom";
else if (colorKeywords.hasOwnProperty(word))
override = "keyword";

      else
override = "error";
}
return state.context.type;
};


      else
override = "error";
}
return state.context.type;
};


  states.media_parens = function(type, stream, state) {











  states.atComponentBlock = function(type, stream, state) {
if (type == "}")
return popAndPass(type, stream, state);
if (type == "{")
return popContext(state) && pushContext(state, stream, allowNested ? "block" : "top", false);
if (type == "word")
override = "error";
return state.context.type;
};

states.atBlock_parens = function(type, stream, state) {

    if (type == ")") return popContext(state);
if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);

    if (type == ")") return popContext(state);
if (type == "{" || type == "}") return popAndPass(type, stream, state, 2);

    return states.media(type, stream, state);

    return states.atBlock(type, stream, state);

  };


  };


  states.font_face_before = function(type, stream, state) {

  states.restricted_atBlock_before = function(type, stream, state) {

    if (type == "{")

    if (type == "{")

      return pushContext(state, stream, "font_face");





      return pushContext(state, stream, "restricted_atBlock");
if (type == "word" && state.stateArg == "@counter-style") {
override = "variable";
return "restricted_atBlock_before";
}

    return pass(type, stream, state);
};


    return pass(type, stream, state);
};


  states.font_face = function(type, stream, state) {
if (type == "}") return popContext(state);




  states.restricted_atBlock = function(type, stream, state) {
if (type == "}") {
state.stateArg = null;
return popContext(state);
}

    if (type == "word") {

    if (type == "word") {

      if (!fontProperties.hasOwnProperty(stream.current().toLowerCase()))


      if ((state.stateArg == "@font-face" && !fontProperties.hasOwnProperty(stream.current().toLowerCase())) ||
(state.stateArg == "@counter-style" && !counterDescriptors.hasOwnProperty(stream.current().toLowerCase())))

        override = "error";
else
override = "property";
return "maybeprop";
}

        override = "error";
else
override = "property";
return "maybeprop";
}

    return "font_face";

    return "restricted_atBlock";

  };

states.keyframes = function(type, stream, state) {
if (type == "word") { override = "variable"; return "keyframes"; }
if (type == "{") return pushContext(state, stream, "top");
return pass(type, stream, state);

  };

states.keyframes = function(type, stream, state) {
if (type == "word") { override = "variable"; return "keyframes"; }
if (type == "{") return pushContext(state, stream, "top");
return pass(type, stream, state);

  };


  };


  states.at = function(type, stream, state) {
if (type == ";") return popContext(state);
if (type == "{" || type == "}") return popAndPass(type, stream, state);
if (type == "word") override = "tag";
else if (type == "hash") override = "builtin";
return "at";

  states.at = function(type, stream, state) {
if (type == ";") return popContext(state);
if (type == "{" || type == "}") return popAndPass(type, stream, state);
if (type == "word") override = "tag";
else if (type == "hash") override = "builtin";
return "at";

  };


  };


  states.interpolation = function(type, stream, state) {
if (type == "}") return popContext(state);
if (type == "{" || type == ";") return popAndPass(type, stream, state);

  states.interpolation = function(type, stream, state) {
if (type == "}") return popContext(state);
if (type == "{" || type == ";") return popAndPass(type, stream, state);

    if (type != "variable") override = "error";


    if (type == "word") override = "variable";
else if (type != "variable" && type != "(" && type != ")") override = "error";

    return "interpolation";
};

return {
startState: function(base) {
return {tokenize: null,

    return "interpolation";
};

return {
startState: function(base) {
return {tokenize: null,

              state: "top",
context: new Context("top", base || 0, null)};


              state: inline ? "block" : "top",
stateArg: null,
context: new Context(inline ? "block" : "top", base || 0, null)};

    },

token: function(stream, state) {

    },

token: function(stream, state) {

Zeile 320Zeile 383
        style = style[0];
}
override = style;

        style = style[0];
}
override = style;

      state.state = states[state.state](type, stream, state);


      if (type != "comment")
state.state = states[state.state](type, stream, state);

      return override;
},


      return override;
},


Zeile 328Zeile 392
      var cx = state.context, ch = textAfter && textAfter.charAt(0);
var indent = cx.indent;
if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;

      var cx = state.context, ch = textAfter && textAfter.charAt(0);
var indent = cx.indent;
if (cx.type == "prop" && (ch == "}" || ch == ")")) cx = cx.prev;

      if (cx.prev &&
(ch == "}" && (cx.type == "block" || cx.type == "top" || cx.type == "interpolation" || cx.type == "font_face") ||
ch == ")" && (cx.type == "parens" || cx.type == "media_parens") ||
ch == "{" && (cx.type == "at" || cx.type == "media"))) {
indent = cx.indent - indentUnit;
cx = cx.prev;






      if (cx.prev) {
if (ch == "}" && (cx.type == "block" || cx.type == "top" ||
cx.type == "interpolation" || cx.type == "restricted_atBlock")) {
// Resume indentation from parent context.
cx = cx.prev;
indent = cx.indent;
} else if (ch == ")" && (cx.type == "parens" || cx.type == "atBlock_parens") ||
ch == "{" && (cx.type == "at" || cx.type == "atBlock")) {
// Dedent relative to current context.
indent = Math.max(0, cx.indent - indentUnit);
}

      }
return indent;
},

      }
return indent;
},

Zeile 341Zeile 410
    electricChars: "}",
blockCommentStart: "/*",
blockCommentEnd: "*/",

    electricChars: "}",
blockCommentStart: "/*",
blockCommentEnd: "*/",

 
    lineComment: lineComment,

    fold: "brace"
};
});

    fold: "brace"
};
});

Zeile 348Zeile 418
  function keySet(array) {
var keys = {};
for (var i = 0; i < array.length; ++i) {

  function keySet(array) {
var keys = {};
for (var i = 0; i < array.length; ++i) {

      keys[array[i]] = true;
}

      keys[array[i].toLowerCase()] = true;
}

    return keys;
}

    return keys;
}








var documentTypes_ = [
"domain", "regexp", "url", "url-prefix"
], documentTypes = keySet(documentTypes_);


  var mediaTypes_ = [
"all", "aural", "braille", "handheld", "print", "projection", "screen",
"tty", "tv", "embossed"

  var mediaTypes_ = [
"all", "aural", "braille", "handheld", "print", "projection", "screen",
"tty", "tv", "embossed"

Zeile 366Zeile 440
    "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
"max-color", "color-index", "min-color-index", "max-color-index",
"monochrome", "min-monochrome", "max-monochrome", "resolution",

    "min-device-aspect-ratio", "max-device-aspect-ratio", "color", "min-color",
"max-color", "color-index", "min-color-index", "max-color-index",
"monochrome", "min-monochrome", "max-monochrome", "resolution",

    "min-resolution", "max-resolution", "scan", "grid"



    "min-resolution", "max-resolution", "scan", "grid", "orientation",
"device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
"pointer", "any-pointer", "hover", "any-hover"

  ], mediaFeatures = keySet(mediaFeatures_);

  ], mediaFeatures = keySet(mediaFeatures_);

 

var mediaValueKeywords_ = [
"landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
"interlace", "progressive"
], mediaValueKeywords = keySet(mediaValueKeywords_);


var propertyKeywords_ = [
"align-content", "align-items", "align-self", "alignment-adjust",


var propertyKeywords_ = [
"align-content", "align-items", "align-self", "alignment-adjust",

Zeile 375Zeile 456
    "animation-direction", "animation-duration", "animation-fill-mode",
"animation-iteration-count", "animation-name", "animation-play-state",
"animation-timing-function", "appearance", "azimuth", "backface-visibility",

    "animation-direction", "animation-duration", "animation-fill-mode",
"animation-iteration-count", "animation-name", "animation-play-state",
"animation-timing-function", "appearance", "azimuth", "backface-visibility",

    "background", "background-attachment", "background-clip", "background-color",
"background-image", "background-origin", "background-position",

    "background", "background-attachment", "background-blend-mode", "background-clip",
"background-color", "background-image", "background-origin", "background-position",

    "background-repeat", "background-size", "baseline-shift", "binding",
"bleed", "bookmark-label", "bookmark-level", "bookmark-state",
"bookmark-target", "border", "border-bottom", "border-bottom-color",

    "background-repeat", "background-size", "baseline-shift", "binding",
"bleed", "bookmark-label", "bookmark-level", "bookmark-state",
"bookmark-target", "border", "border-bottom", "border-bottom-color",

Zeile 391Zeile 472
    "border-top-left-radius", "border-top-right-radius", "border-top-style",
"border-top-width", "border-width", "bottom", "box-decoration-break",
"box-shadow", "box-sizing", "break-after", "break-before", "break-inside",

    "border-top-left-radius", "border-top-right-radius", "border-top-style",
"border-top-width", "border-width", "bottom", "box-decoration-break",
"box-shadow", "box-sizing", "break-after", "break-before", "break-inside",

    "caption-side", "clear", "clip", "color", "color-profile", "column-count",

    "caption-side", "caret-color", "clear", "clip", "color", "color-profile", "column-count",

    "column-fill", "column-gap", "column-rule", "column-rule-color",
"column-rule-style", "column-rule-width", "column-span", "column-width",
"columns", "content", "counter-increment", "counter-reset", "crop", "cue",

    "column-fill", "column-gap", "column-rule", "column-rule-color",
"column-rule-style", "column-rule-width", "column-span", "column-width",
"columns", "content", "counter-increment", "counter-reset", "crop", "cue",

Zeile 407Zeile 488
    "font-variant-alternates", "font-variant-caps", "font-variant-east-asian",
"font-variant-ligatures", "font-variant-numeric", "font-variant-position",
"font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow",

    "font-variant-alternates", "font-variant-caps", "font-variant-east-asian",
"font-variant-ligatures", "font-variant-numeric", "font-variant-position",
"font-weight", "grid", "grid-area", "grid-auto-columns", "grid-auto-flow",

    "grid-auto-position", "grid-auto-rows", "grid-column", "grid-column-end",
"grid-column-start", "grid-row", "grid-row-end", "grid-row-start",
"grid-template", "grid-template-areas", "grid-template-columns",

    "grid-auto-rows", "grid-column", "grid-column-end", "grid-column-gap",
"grid-column-start", "grid-gap", "grid-row", "grid-row-end", "grid-row-gap",
"grid-row-start", "grid-template", "grid-template-areas", "grid-template-columns",

    "grid-template-rows", "hanging-punctuation", "height", "hyphens",
"icon", "image-orientation", "image-rendering", "image-resolution",

    "grid-template-rows", "hanging-punctuation", "height", "hyphens",
"icon", "image-orientation", "image-rendering", "image-resolution",

    "inline-box-align", "justify-content", "left", "letter-spacing",

    "inline-box-align", "justify-content", "justify-items", "justify-self", "left", "letter-spacing",

    "line-break", "line-height", "line-stacking", "line-stacking-ruby",
"line-stacking-shift", "line-stacking-strategy", "list-style",
"list-style-image", "list-style-position", "list-style-type", "margin",
"margin-bottom", "margin-left", "margin-right", "margin-top",

    "line-break", "line-height", "line-stacking", "line-stacking-ruby",
"line-stacking-shift", "line-stacking-strategy", "list-style",
"list-style-image", "list-style-position", "list-style-type", "margin",
"margin-bottom", "margin-left", "margin-right", "margin-top",

    "marker-offset", "marks", "marquee-direction", "marquee-loop",

    "marks", "marquee-direction", "marquee-loop",

    "marquee-play-count", "marquee-speed", "marquee-style", "max-height",
"max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
"nav-left", "nav-right", "nav-up", "object-fit", "object-position",

    "marquee-play-count", "marquee-speed", "marquee-style", "max-height",
"max-width", "min-height", "min-width", "move-to", "nav-down", "nav-index",
"nav-left", "nav-right", "nav-up", "object-fit", "object-position",

Zeile 427Zeile 508
    "padding", "padding-bottom", "padding-left", "padding-right", "padding-top",
"page", "page-break-after", "page-break-before", "page-break-inside",
"page-policy", "pause", "pause-after", "pause-before", "perspective",

    "padding", "padding-bottom", "padding-left", "padding-right", "padding-top",
"page", "page-break-after", "page-break-before", "page-break-inside",
"page-policy", "pause", "pause-after", "pause-before", "perspective",

    "perspective-origin", "pitch", "pitch-range", "play-during", "position",

    "perspective-origin", "pitch", "pitch-range", "place-content", "place-items", "place-self", "play-during", "position",

    "presentation-level", "punctuation-trim", "quotes", "region-break-after",
"region-break-before", "region-break-inside", "region-fragment",
"rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness",

    "presentation-level", "punctuation-trim", "quotes", "region-break-after",
"region-break-before", "region-break-inside", "region-fragment",
"rendering-intent", "resize", "rest", "rest-after", "rest-before", "richness",

Zeile 445Zeile 526
    "text-wrap", "top", "transform", "transform-origin", "transform-style",
"transition", "transition-delay", "transition-duration",
"transition-property", "transition-timing-function", "unicode-bidi",

    "text-wrap", "top", "transform", "transform-origin", "transform-style",
"transition", "transition-delay", "transition-duration",
"transition-property", "transition-timing-function", "unicode-bidi",

    "vertical-align", "visibility", "voice-balance", "voice-duration",

    "user-select", "vertical-align", "visibility", "voice-balance", "voice-duration",

    "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",

    "voice-family", "voice-pitch", "voice-range", "voice-rate", "voice-stress",

    "voice-volume", "volume", "white-space", "widows", "width", "word-break",

    "voice-volume", "volume", "white-space", "widows", "width", "will-change", "word-break",

    "word-spacing", "word-wrap", "z-index",
// SVG-specific
"clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",

    "word-spacing", "word-wrap", "z-index",
// SVG-specific
"clip-path", "clip-rule", "mask", "enable-background", "filter", "flood-color",

Zeile 468Zeile 549
    "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button",
"searchfield-results-decoration", "zoom"
], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);

    "searchfield-cancel-button", "searchfield-decoration", "searchfield-results-button",
"searchfield-results-decoration", "zoom"
], nonStandardPropertyKeywords = keySet(nonStandardPropertyKeywords_);

 

var fontProperties_ = [
"font-family", "src", "unicode-range", "font-variant", "font-feature-settings",
"font-stretch", "font-weight", "font-style"
], fontProperties = keySet(fontProperties_);

var counterDescriptors_ = [
"additive-symbols", "fallback", "negative", "pad", "prefix", "range",
"speak-as", "suffix", "symbols", "system"
], counterDescriptors = keySet(counterDescriptors_);


var colorKeywords_ = [
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",


var colorKeywords_ = [
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige",

Zeile 499Zeile 590
  ], colorKeywords = keySet(colorKeywords_);

var valueKeywords_ = [

  ], colorKeywords = keySet(colorKeywords_);

var valueKeywords_ = [

    "above", "absolute", "activeborder", "activecaption", "afar",
"after-white-space", "ahead", "alias", "all", "all-scroll", "alternate",

    "above", "absolute", "activeborder", "additive", "activecaption", "afar",
"after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate",

    "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",

    "always", "amharic", "amharic-abegede", "antialiased", "appworkspace",

    "arabic-indic", "armenian", "asterisks", "auto", "avoid", "avoid-column", "avoid-page",

    "arabic-indic", "armenian", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page",

    "avoid-region", "background", "backwards", "baseline", "below", "bidi-override", "binary",
"bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",

    "avoid-region", "background", "backwards", "baseline", "below", "bidi-override", "binary",
"bengali", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box",

    "both", "bottom", "break", "break-all", "break-word", "button", "button-bevel",
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "cambodian",

    "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel",
"buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "cambodian",

    "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",

    "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret",

    "cell", "center", "checkbox", "circle", "cjk-earthly-branch",

    "cell", "center", "checkbox", "circle", "cjk-decimal", "cjk-earthly-branch",

    "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",

    "cjk-heavenly-stem", "cjk-ideographic", "clear", "clip", "close-quote",

    "col-resize", "collapse", "column", "compact", "condensed", "contain", "content",
"content-box", "context-menu", "continuous", "copy", "cover", "crop",
"cross", "crosshair", "currentcolor", "cursive", "dashed", "decimal",
"decimal-leading-zero", "default", "default-button", "destination-atop",
"destination-in", "destination-out", "destination-over", "devanagari",
"disc", "discard", "document", "dot-dash", "dot-dot-dash", "dotted",
"double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",



    "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse",
"compact", "condensed", "contain", "content", "contents",
"content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop",
"cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal",
"decimal-leading-zero", "default", "default-button", "dense", "destination-atop",
"destination-in", "destination-out", "destination-over", "devanagari", "difference",
"disc", "discard", "disclosure-closed", "disclosure-open", "document",
"dot-dash", "dot-dot-dash",
"dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out",

    "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
"ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
"ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
"ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
"ethiopic-halehame-gez", "ethiopic-halehame-om-et",
"ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",

    "element", "ellipse", "ellipsis", "embed", "end", "ethiopic", "ethiopic-abegede",
"ethiopic-abegede-am-et", "ethiopic-abegede-gez", "ethiopic-abegede-ti-er",
"ethiopic-abegede-ti-et", "ethiopic-halehame-aa-er",
"ethiopic-halehame-aa-et", "ethiopic-halehame-am-et",
"ethiopic-halehame-gez", "ethiopic-halehame-om-et",
"ethiopic-halehame-sid-et", "ethiopic-halehame-so-et",

    "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et",
"ethiopic-halehame-tig", "ew-resize", "expanded", "extra-condensed",
"extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "footnotes",
"forwards", "from", "geometricPrecision", "georgian", "graytext", "groove",
"gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hebrew",

    "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "ethiopic-halehame-tig",
"ethiopic-numeric", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed",
"extra-expanded", "fantasy", "fast", "fill", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes",
"forwards", "from", "geometricPrecision", "georgian", "graytext", "grid", "groove",
"gujarati", "gurmukhi", "hand", "hangul", "hangul-consonant", "hard-light", "hebrew",

    "help", "hidden", "hide", "higher", "highlight", "highlighttext",

    "help", "hidden", "hide", "higher", "highlight", "highlighttext",

    "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "icon", "ignore",

    "hiragana", "hiragana-iroha", "horizontal", "hsl", "hsla", "hue", "icon", "ignore",

    "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
"infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",

    "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite",
"infobackground", "infotext", "inherit", "initial", "inline", "inline-axis",

    "inline-block", "inline-flex", "inline-table", "inset", "inside", "intrinsic", "invert",
"italic", "justify", "kannada", "katakana", "katakana-iroha", "keep-all", "khmer",
"landscape", "lao", "large", "larger", "left", "level", "lighter",
"line-through", "linear", "lines", "list-item", "listbox", "listitem",



    "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert",
"italic", "japanese-formal", "japanese-informal", "justify", "kannada",
"katakana", "katakana-iroha", "keep-all", "khmer",
"korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal",
"landscape", "lao", "large", "larger", "left", "level", "lighter", "lighten",
"line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem",

    "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",

    "local", "logical", "loud", "lower", "lower-alpha", "lower-armenian",
"lower-greek", "lower-hexadecimal", "lower-latin", "lower-norwegian",

    "lower-roman", "lowercase", "ltr", "malayalam", "match",

    "lower-roman", "lowercase", "ltr", "luminosity", "malayalam", "match", "matrix", "matrix3d",

    "media-controls-background", "media-current-time-display",
"media-fullscreen-button", "media-mute-button", "media-play-button",
"media-return-to-realtime-button", "media-rewind-button",

    "media-controls-background", "media-current-time-display",
"media-fullscreen-button", "media-mute-button", "media-play-button",
"media-return-to-realtime-button", "media-rewind-button",

Zeile 547Zeile 642
    "media-volume-slider-container", "media-volume-sliderthumb", "medium",
"menu", "menulist", "menulist-button", "menulist-text",
"menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",

    "media-volume-slider-container", "media-volume-sliderthumb", "medium",
"menu", "menulist", "menulist-button", "menulist-text",
"menulist-textfield", "menutext", "message-box", "middle", "min-intrinsic",

    "mix", "mongolian", "monospace", "move", "multiple", "myanmar", "n-resize",

    "mix", "mongolian", "monospace", "move", "multiple", "multiply", "myanmar", "n-resize",

    "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",

    "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop",
"no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap",

    "ns-resize", "nw-resize", "nwse-resize", "oblique", "octal", "open-quote",

    "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "octal", "opacity", "open-quote",

    "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
"outside", "outside-shape", "overlay", "overline", "padding", "padding-box",

    "optimizeLegibility", "optimizeSpeed", "oriya", "oromo", "outset",
"outside", "outside-shape", "overlay", "overline", "padding", "padding-box",

    "painted", "page", "paused", "persian", "plus-darker", "plus-lighter", "pointer",
"polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button",
"radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region",
"relative", "repeat", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba",
"ridge", "right", "round", "row-resize", "rtl", "run-in", "running",
"s-resize", "sans-serif", "scroll", "scrollbar", "se-resize", "searchfield",





    "painted", "page", "paused", "persian", "perspective", "plus-darker", "plus-lighter",
"pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d",
"progress", "push-button", "radial-gradient", "radio", "read-only",
"read-write", "read-write-plaintext-only", "rectangle", "region",
"relative", "repeat", "repeating-linear-gradient",
"repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse",
"rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY",
"rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running",
"s-resize", "sans-serif", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen",
"scroll", "scrollbar", "scroll-position", "se-resize", "searchfield",

    "searchfield-cancel-button", "searchfield-decoration",

    "searchfield-cancel-button", "searchfield-decoration",

    "searchfield-results-button", "searchfield-results-decoration",

    "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end",

    "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",

    "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama",

    "single", "skip-white-space", "slide", "slider-horizontal",


    "simp-chinese-formal", "simp-chinese-informal", "single",
"skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal",

    "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",

    "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow",

    "small", "small-caps", "small-caption", "smaller", "solid", "somali",
"source-atop", "source-in", "source-out", "source-over", "space", "square",
"square-button", "start", "static", "status-bar", "stretch", "stroke",
"sub", "subpixel-antialiased", "super", "sw-resize", "table",

    "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali",
"source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square",
"square-button", "start", "static", "status-bar", "stretch", "stroke", "sub",
"subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table",

    "table-caption", "table-cell", "table-column", "table-column-group",
"table-footer-group", "table-header-group", "table-row", "table-row-group",

    "table-caption", "table-cell", "table-column", "table-column-group",
"table-footer-group", "table-header-group", "table-row", "table-row-group",

 
    "tamil",

    "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
"thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
"threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
"tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",

    "telugu", "text", "text-bottom", "text-top", "textarea", "textfield", "thai",
"thick", "thin", "threeddarkshadow", "threedface", "threedhighlight",
"threedlightshadow", "threedshadow", "tibetan", "tigre", "tigrinya-er",
"tigrinya-er-abegede", "tigrinya-et", "tigrinya-et-abegede", "to", "top",

    "transparent", "ultra-condensed", "ultra-expanded", "underline", "up",



    "trad-chinese-formal", "trad-chinese-informal", "transform",
"translate", "translate3d", "translateX", "translateY", "translateZ",
"transparent", "ultra-condensed", "ultra-expanded", "underline", "unset", "up",

    "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
"upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",

    "upper-alpha", "upper-armenian", "upper-greek", "upper-hexadecimal",
"upper-latin", "upper-norwegian", "upper-roman", "uppercase", "urdu", "url",

    "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted",

    "var", "vertical", "vertical-text", "visible", "visibleFill", "visiblePainted",

    "visibleStroke", "visual", "w-resize", "wait", "wave", "wider",

    "visibleStroke", "visual", "w-resize", "wait", "wave", "wider",

    "window", "windowframe", "windowtext", "x-large", "x-small", "xor",

    "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor",

    "xx-large", "xx-small"
], valueKeywords = keySet(valueKeywords_);


    "xx-large", "xx-small"
], valueKeywords = keySet(valueKeywords_);


  var fontProperties_ = [
"font-family", "src", "unicode-range", "font-variant", "font-feature-settings",
"font-stretch", "font-weight", "font-style"
], fontProperties = keySet(fontProperties_);

var allWords = mediaTypes_.concat(mediaFeatures_).concat(propertyKeywords_)
.concat(nonStandardPropertyKeywords_).concat(colorKeywords_).concat(valueKeywords_);

  var allWords = documentTypes_.concat(mediaTypes_).concat(mediaFeatures_).concat(mediaValueKeywords_)
.concat(propertyKeywords_).concat(nonStandardPropertyKeywords_).concat(colorKeywords_)
.concat(valueKeywords_);





  CodeMirror.registerHelper("hintWords", "css", allWords);

function tokenCComment(stream, state) {

  CodeMirror.registerHelper("hintWords", "css", allWords);

function tokenCComment(stream, state) {

Zeile 600Zeile 699
        break;
}
maybeEnd = (ch == "*");

        break;
}
maybeEnd = (ch == "*");

    }
return ["comment", "comment"];
}

function tokenSGMLComment(stream, state) {
if (stream.skipTo("-->")) {
stream.match("-->");
state.tokenize = null;
} else {
stream.skipToEnd();

 
    }
return ["comment", "comment"];
}

CodeMirror.defineMIME("text/css", {

    }
return ["comment", "comment"];
}

CodeMirror.defineMIME("text/css", {

 
    documentTypes: documentTypes,

    mediaTypes: mediaTypes,
mediaFeatures: mediaFeatures,

    mediaTypes: mediaTypes,
mediaFeatures: mediaFeatures,

 
    mediaValueKeywords: mediaValueKeywords,

    propertyKeywords: propertyKeywords,
nonStandardPropertyKeywords: nonStandardPropertyKeywords,

    propertyKeywords: propertyKeywords,
nonStandardPropertyKeywords: nonStandardPropertyKeywords,

 
    fontProperties: fontProperties,
counterDescriptors: counterDescriptors,

    colorKeywords: colorKeywords,
valueKeywords: valueKeywords,

    colorKeywords: colorKeywords,
valueKeywords: valueKeywords,

    fontProperties: fontProperties,

 
    tokenHooks: {

    tokenHooks: {

      "<": function(stream, state) {
if (!stream.match("!--")) return false;
state.tokenize = tokenSGMLComment;
return tokenSGMLComment(stream, state);
},

 
      "/": function(stream, state) {
if (!stream.eat("*")) return false;
state.tokenize = tokenCComment;

      "/": function(stream, state) {
if (!stream.eat("*")) return false;
state.tokenize = tokenCComment;

Zeile 635Zeile 722
      }
},
name: "css"

      }
},
name: "css"

  });

  });


CodeMirror.defineMIME("text/x-scss", {


CodeMirror.defineMIME("text/x-scss", {

    mediaTypes: mediaTypes,
mediaFeatures: mediaFeatures,
propertyKeywords: propertyKeywords,
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
colorKeywords: colorKeywords,
valueKeywords: valueKeywords,
fontProperties: fontProperties,
allowNested: true,
tokenHooks: {
"/": function(stream, state) {
if (stream.eat("/")) {
stream.skipToEnd();
return ["comment", "comment"];
} else if (stream.eat("*")) {
state.tokenize = tokenCComment;
return tokenCComment(stream, state);
} else {



    mediaTypes: mediaTypes,
mediaFeatures: mediaFeatures,
mediaValueKeywords: mediaValueKeywords,
propertyKeywords: propertyKeywords,
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
colorKeywords: colorKeywords,
valueKeywords: valueKeywords,
fontProperties: fontProperties,
allowNested: true,
lineComment: "//",
tokenHooks: {
"/": function(stream, state) {
if (stream.eat("/")) {
stream.skipToEnd();
return ["comment", "comment"];
} else if (stream.eat("*")) {
state.tokenize = tokenCComment;
return tokenCComment(stream, state);
} else {

          return ["operator", "operator"];
}

          return ["operator", "operator"];
}

      },

      },

      ":": function(stream) {

      ":": function(stream) {

        if (stream.match(/\s*\{/))
return [null, "{"];

        if (stream.match(/\s*\{/, false))
return [null, null]

        return false;
},
"$": function(stream) {
stream.match(/^[\w-]+/);

        return false;
},
"$": function(stream) {
stream.match(/^[\w-]+/);

        if (stream.match(/^\s*:/, false))

        if (stream.match(/^\s*:/, false))

          return ["variable-2", "variable-definition"];
return ["variable-2", "variable"];
},
"#": function(stream) {
if (!stream.eat("{")) return false;
return [null, "interpolation"];

          return ["variable-2", "variable-definition"];
return ["variable-2", "variable"];
},
"#": function(stream) {
if (!stream.eat("{")) return false;
return [null, "interpolation"];

      }
},
name: "css",

      }
},
name: "css",

    helperType: "scss"
});

CodeMirror.defineMIME("text/x-less", {

    helperType: "scss"
});

CodeMirror.defineMIME("text/x-less", {

    mediaTypes: mediaTypes,
mediaFeatures: mediaFeatures,
propertyKeywords: propertyKeywords,
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
colorKeywords: colorKeywords,
valueKeywords: valueKeywords,


    mediaTypes: mediaTypes,
mediaFeatures: mediaFeatures,
mediaValueKeywords: mediaValueKeywords,
propertyKeywords: propertyKeywords,
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
colorKeywords: colorKeywords,
valueKeywords: valueKeywords,

    fontProperties: fontProperties,
allowNested: true,

    fontProperties: fontProperties,
allowNested: true,

 
    lineComment: "//",

    tokenHooks: {
"/": function(stream, state) {
if (stream.eat("/")) {

    tokenHooks: {
"/": function(stream, state) {
if (stream.eat("/")) {

Zeile 700Zeile 791
        }
},
"@": function(stream) {

        }
},
"@": function(stream) {

 
        if (stream.eat("{")) return [null, "interpolation"];

        if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/, false)) return false;
stream.eatWhile(/[\w\\\-]/);
if (stream.match(/^\s*:/, false))

        if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/, false)) return false;
stream.eatWhile(/[\w\\\-]/);
if (stream.match(/^\s*:/, false))

Zeile 712Zeile 804
    },
name: "css",
helperType: "less"

    },
name: "css",
helperType: "less"

 
  });

CodeMirror.defineMIME("text/x-gss", {
documentTypes: documentTypes,
mediaTypes: mediaTypes,
mediaFeatures: mediaFeatures,
propertyKeywords: propertyKeywords,
nonStandardPropertyKeywords: nonStandardPropertyKeywords,
fontProperties: fontProperties,
counterDescriptors: counterDescriptors,
colorKeywords: colorKeywords,
valueKeywords: valueKeywords,
supportsAtComponent: true,
tokenHooks: {
"/": function(stream, state) {
if (!stream.eat("*")) return false;
state.tokenize = tokenCComment;
return tokenCComment(stream, state);
}
},
name: "css",
helperType: "gss"

  });

});

  });

});