Dotclear


Ignore:
Timestamp:
06/13/18 12:31:58 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Update Codemirror to 5.38.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/codemirror/addon/mode/multiplex.js

    r3251 r3758  
    5151            if (!other.parseDelimiters) stream.match(other.open); 
    5252            state.innerActive = other; 
    53             state.inner = CodeMirror.startState(other.mode, outer.indent ? outer.indent(state.outer, "") : 0); 
     53 
     54            // Get the outer indent, making sure to handle CodeMirror.Pass 
     55            var outerIndent = 0; 
     56            if (outer.indent) { 
     57              var possibleOuterIndent = outer.indent(state.outer, ""); 
     58              if (possibleOuterIndent !== CodeMirror.Pass) outerIndent = possibleOuterIndent; 
     59            } 
     60 
     61            state.inner = CodeMirror.startState(other.mode, outerIndent); 
    5462            return other.delimStyle && (other.delimStyle + " " + other.delimStyle + "-open"); 
    5563          } else if (found != -1 && found < cutOff) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map