Skip to content

Commit

Permalink
Allow attribute values to span multiple lines in XML mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Jul 19, 2011
1 parent 7bc7af6 commit 8aad36c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mode/xml/xml.js
Expand Up @@ -170,9 +170,13 @@ CodeMirror.defineMode("xml", function(config, parserConfig) {
}
function attvalue(type) {
if (type == "word" && Kludges.allowUnquoted) {setStyle = "string"; return cont();}
if (type == "string") return cont();
if (type == "string") return cont(attvaluemaybe);
return pass();
}
function attvaluemaybe(type) {
if (type == "string") return cont(attvaluemaybe);
else return pass();
}

return {
startState: function() {
Expand Down

0 comments on commit 8aad36c

Please sign in to comment.