Skip to content

Commit 42d06ec

Browse files
committed
Fix bug in xml mode (not ignoring comments correctly)
1 parent 31c0f82 commit 42d06ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/xml/xml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ CodeMirror.defineMode("xml", function(config, parserConfig) {
188188

189189
setStyle = type = tagName = null;
190190
var style = state.tokenize(stream, state);
191-
if ((style || type) && style != "xml-comment") {
191+
if ((style || type) && style != "comment") {
192192
curState = state;
193193
while (true) {
194194
var comb = state.cc.pop() || element;

0 commit comments

Comments
 (0)