Changeset 3758:6338fb89e8df for admin/js/codemirror/addon/mode/multiplex.js
- Timestamp:
- 06/13/18 12:31:58 (6 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/js/codemirror/addon/mode/multiplex.js
r3251 r3758 51 51 if (!other.parseDelimiters) stream.match(other.open); 52 52 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); 54 62 return other.delimStyle && (other.delimStyle + " " + other.delimStyle + "-open"); 55 63 } else if (found != -1 && found < cutOff) {
Note: See TracChangeset
for help on using the changeset viewer.