"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mode/xml/xml.js" between
CodeMirror-5.58.2.tar.gz and CodeMirror-5.58.3.tar.gz

About: CodeMirror is a text editor implemented in JavaScript for the browser and specialized for editing code.

xml.js  (CodeMirror-5.58.2):xml.js  (CodeMirror-5.58.3)
skipping to change at line 192 skipping to change at line 192
return state.tokenize(stream, state); return state.tokenize(stream, state);
} }
} }
} }
return "meta"; return "meta";
}; };
} }
function Context(state, tagName, startOfLine) { function Context(state, tagName, startOfLine) {
this.prev = state.context; this.prev = state.context;
this.tagName = tagName; this.tagName = tagName || "";
this.indent = state.indented; this.indent = state.indented;
this.startOfLine = startOfLine; this.startOfLine = startOfLine;
if (config.doNotIndent.hasOwnProperty(tagName) || (state.context && state.co ntext.noIndent)) if (config.doNotIndent.hasOwnProperty(tagName) || (state.context && state.co ntext.noIndent))
this.noIndent = true; this.noIndent = true;
} }
function popContext(state) { function popContext(state) {
if (state.context) state.context = state.context.prev; if (state.context) state.context = state.context.prev;
} }
function maybePopContext(state, nextTagName) { function maybePopContext(state, nextTagName) {
var parentTagName; var parentTagName;
skipping to change at line 402 skipping to change at line 402
state.state = attrState state.state = attrState
}, },
xmlCurrentTag: function(state) { xmlCurrentTag: function(state) {
return state.tagName ? {name: state.tagName, close: state.type == "closeTa g"} : null return state.tagName ? {name: state.tagName, close: state.type == "closeTa g"} : null
}, },
xmlCurrentContext: function(state) { xmlCurrentContext: function(state) {
var context = [] var context = []
for (var cx = state.context; cx; cx = cx.prev) for (var cx = state.context; cx; cx = cx.prev)
if (cx.tagName) context.push(cx.tagName) context.push(cx.tagName)
return context.reverse() return context.reverse()
} }
}; };
}); });
CodeMirror.defineMIME("text/xml", "xml"); CodeMirror.defineMIME("text/xml", "xml");
CodeMirror.defineMIME("application/xml", "xml"); CodeMirror.defineMIME("application/xml", "xml");
if (!CodeMirror.mimeModes.hasOwnProperty("text/html")) if (!CodeMirror.mimeModes.hasOwnProperty("text/html"))
CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true}); CodeMirror.defineMIME("text/html", {name: "xml", htmlMode: true});
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)