Changeset 3617:bb465743f804 for admin/js/codemirror/mode/css
- Timestamp:
- 12/11/17 15:59:17 (8 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/codemirror/mode/css/css.js
r3542 r3617 78 78 } else if (/[:;{}\[\]\(\)]/.test(ch)) { 79 79 return ret(null, ch); 80 } else if (( ch == "u" && stream.match(/rl(-prefix)?\(/)) ||81 ( ch == "d" && stream.match("omain(")) ||82 ( ch == "r" && stream.match("egexp("))) {80 } else if (((ch == "u" || ch == "U") && stream.match(/rl(-prefix)?\(/i)) || 81 ((ch == "d" || ch == "D") && stream.match("omain(", true, true)) || 82 ((ch == "r" || ch == "R") && stream.match("egexp(", true, true))) { 83 83 stream.backUp(1); 84 84 state.tokenize = tokenParenthesized; … … 163 163 } else if (type == "}" && state.context.prev) { 164 164 return popContext(state); 165 } else if (supportsAtComponent && /@component/ .test(type)) {165 } else if (supportsAtComponent && /@component/i.test(type)) { 166 166 return pushContext(state, stream, "atComponentBlock"); 167 } else if (/^@(-moz-)?document$/ .test(type)) {167 } else if (/^@(-moz-)?document$/i.test(type)) { 168 168 return pushContext(state, stream, "documentTypes"); 169 } else if (/^@(media|supports|(-moz-)?document|import)$/ .test(type)) {169 } else if (/^@(media|supports|(-moz-)?document|import)$/i.test(type)) { 170 170 return pushContext(state, stream, "atBlock"); 171 } else if (/^@(font-face|counter-style)/ .test(type)) {171 } else if (/^@(font-face|counter-style)/i.test(type)) { 172 172 state.stateArg = type; 173 173 return "restricted_atBlock_before"; 174 } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/ .test(type)) {174 } else if (/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(type)) { 175 175 return "keyframes"; 176 176 } else if (type && type.charAt(0) == "@") { … … 384 384 } 385 385 override = style; 386 state.state = states[state.state](type, stream, state); 386 if (type != "comment") 387 state.state = states[state.state](type, stream, state); 387 388 return override; 388 389 }, … … 402 403 // Dedent relative to current context. 403 404 indent = Math.max(0, cx.indent - indentUnit); 404 cx = cx.prev;405 405 } 406 406 } … … 411 411 blockCommentStart: "/*", 412 412 blockCommentEnd: "*/", 413 blockCommentContinue: " * ", 413 414 lineComment: lineComment, 414 415 fold: "brace" … … 473 474 "border-top-width", "border-width", "bottom", "box-decoration-break", 474 475 "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", 475 "caption-side", "c lear", "clip", "color", "color-profile", "column-count",476 "caption-side", "caret-color", "clear", "clip", "color", "color-profile", "column-count", 476 477 "column-fill", "column-gap", "column-rule", "column-rule-color", 477 478 "column-rule-style", "column-rule-width", "column-span", "column-width", … … 494 495 "grid-template-rows", "hanging-punctuation", "height", "hyphens", 495 496 "icon", "image-orientation", "image-rendering", "image-resolution", 496 "inline-box-align", "justify-content", " left", "letter-spacing",497 "inline-box-align", "justify-content", "justify-items", "justify-self", "left", "letter-spacing", 497 498 "line-break", "line-height", "line-stacking", "line-stacking-ruby", 498 499 "line-stacking-shift", "line-stacking-strategy", "list-style", … … 509 510 "page", "page-break-after", "page-break-before", "page-break-inside", 510 511 "page-policy", "pause", "pause-after", "pause-before", "perspective", 511 "perspective-origin", "pitch", "pitch-range", "pla y-during", "position",512 "perspective-origin", "pitch", "pitch-range", "place-content", "place-items", "place-self", "play-during", "position", 512 513 "presentation-level", "punctuation-trim", "quotes", "region-break-after", 513 514 "region-break-before", "region-break-inside", "region-fragment", … … 660 661 "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", 661 662 "searchfield-cancel-button", "searchfield-decoration", 662 "searchfield-results-button", "searchfield-results-decoration", 663 "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end", 663 664 "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama", 664 665 "simp-chinese-formal", "simp-chinese-informal", "single", … … 666 667 "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", 667 668 "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali", 668 "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "sp ell-out", "square",669 "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", 669 670 "square-button", "start", "static", "status-bar", "stretch", "stroke", "sub", 670 671 "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", … … 749 750 }, 750 751 ":": function(stream) { 751 if (stream.match(/\s*\{/ ))752 return [null, "{"];752 if (stream.match(/\s*\{/, false)) 753 return [null, null] 753 754 return false; 754 755 }, … … 793 794 "@": function(stream) { 794 795 if (stream.eat("{")) return [null, "interpolation"]; 795 if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/ , false)) return false;796 if (stream.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i, false)) return false; 796 797 stream.eatWhile(/[\w\\\-]/); 797 798 if (stream.match(/^\s*:/, false))
Note: See TracChangeset
for help on using the changeset viewer.