Dotclear


Ignore:
Timestamp:
12/11/17 15:59:17 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Update CodeMirror? from 5.25.1 to 5.32.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/codemirror/mode/css/css.js

    r3542 r3617  
    7878    } else if (/[:;{}\[\]\(\)]/.test(ch)) { 
    7979      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))) { 
    8383      stream.backUp(1); 
    8484      state.tokenize = tokenParenthesized; 
     
    163163    } else if (type == "}" && state.context.prev) { 
    164164      return popContext(state); 
    165     } else if (supportsAtComponent && /@component/.test(type)) { 
     165    } else if (supportsAtComponent && /@component/i.test(type)) { 
    166166      return pushContext(state, stream, "atComponentBlock"); 
    167     } else if (/^@(-moz-)?document$/.test(type)) { 
     167    } else if (/^@(-moz-)?document$/i.test(type)) { 
    168168      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)) { 
    170170      return pushContext(state, stream, "atBlock"); 
    171     } else if (/^@(font-face|counter-style)/.test(type)) { 
     171    } else if (/^@(font-face|counter-style)/i.test(type)) { 
    172172      state.stateArg = type; 
    173173      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)) { 
    175175      return "keyframes"; 
    176176    } else if (type && type.charAt(0) == "@") { 
     
    384384      } 
    385385      override = style; 
    386       state.state = states[state.state](type, stream, state); 
     386      if (type != "comment") 
     387        state.state = states[state.state](type, stream, state); 
    387388      return override; 
    388389    }, 
     
    402403          // Dedent relative to current context. 
    403404          indent = Math.max(0, cx.indent - indentUnit); 
    404           cx = cx.prev; 
    405405        } 
    406406      } 
     
    411411    blockCommentStart: "/*", 
    412412    blockCommentEnd: "*/", 
     413    blockCommentContinue: " * ", 
    413414    lineComment: lineComment, 
    414415    fold: "brace" 
     
    473474    "border-top-width", "border-width", "bottom", "box-decoration-break", 
    474475    "box-shadow", "box-sizing", "break-after", "break-before", "break-inside", 
    475     "caption-side", "clear", "clip", "color", "color-profile", "column-count", 
     476    "caption-side", "caret-color", "clear", "clip", "color", "color-profile", "column-count", 
    476477    "column-fill", "column-gap", "column-rule", "column-rule-color", 
    477478    "column-rule-style", "column-rule-width", "column-span", "column-width", 
     
    494495    "grid-template-rows", "hanging-punctuation", "height", "hyphens", 
    495496    "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", 
    497498    "line-break", "line-height", "line-stacking", "line-stacking-ruby", 
    498499    "line-stacking-shift", "line-stacking-strategy", "list-style", 
     
    509510    "page", "page-break-after", "page-break-before", "page-break-inside", 
    510511    "page-policy", "pause", "pause-after", "pause-before", "perspective", 
    511     "perspective-origin", "pitch", "pitch-range", "play-during", "position", 
     512    "perspective-origin", "pitch", "pitch-range", "place-content", "place-items", "place-self", "play-during", "position", 
    512513    "presentation-level", "punctuation-trim", "quotes", "region-break-after", 
    513514    "region-break-before", "region-break-inside", "region-fragment", 
     
    660661    "scroll", "scrollbar", "scroll-position", "se-resize", "searchfield", 
    661662    "searchfield-cancel-button", "searchfield-decoration", 
    662     "searchfield-results-button", "searchfield-results-decoration", 
     663    "searchfield-results-button", "searchfield-results-decoration", "self-start", "self-end", 
    663664    "semi-condensed", "semi-expanded", "separate", "serif", "show", "sidama", 
    664665    "simp-chinese-formal", "simp-chinese-informal", "single", 
     
    666667    "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", 
    667668    "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "somali", 
    668     "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "spell-out", "square", 
     669    "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", 
    669670    "square-button", "start", "static", "status-bar", "stretch", "stroke", "sub", 
    670671    "subpixel-antialiased", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", 
     
    749750      }, 
    750751      ":": function(stream) { 
    751         if (stream.match(/\s*\{/)) 
    752           return [null, "{"]; 
     752        if (stream.match(/\s*\{/, false)) 
     753          return [null, null] 
    753754        return false; 
    754755      }, 
     
    793794      "@": function(stream) { 
    794795        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; 
    796797        stream.eatWhile(/[\w\\\-]/); 
    797798        if (stream.match(/^\s*:/, false)) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map