Skip to content

Commit

Permalink
[xml mode] Fix closing tag regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricio authored and marijnh committed Apr 7, 2014
1 parent a143278 commit e496a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/xml/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ CodeMirror.defineMode("xml", function(config, parserConfig) {
return state.tagStart + indentUnit * multilineTagIndentFactor;
}
if (alignCDATA && /<!\[CDATA\[/.test(textAfter)) return 0;
var tagAfter = textAfter && /^<(\/)?(\w*)/.exec(textAfter);
var tagAfter = textAfter && /^<(\/)?([\w_:\.-]*)/.exec(textAfter);
if (tagAfter && tagAfter[1]) { // Closing tag spotted
while (context) {
if (context.tagName == tagAfter[2]) {
Expand Down

0 comments on commit e496a0d

Please sign in to comment.