fix highlighting of multiline clojure strings

This commit is contained in:
nightwing 2012-07-28 16:40:09 +04:00
commit f29e12c78f

View file

@ -190,10 +190,7 @@ var ClojureHighlightRules = function() {
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
}, { }, {
token : "string", // single line token : "string", // single line
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]' regex : '"',
}, {
token : "string", // multi line
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?$',
next: "string" next: "string"
}, { }, {
token : "string", // symbol token : "string", // symbol
@ -217,12 +214,16 @@ var ClojureHighlightRules = function() {
], ],
"string" : [ "string" : [
{ {
token : "string", token : "constant.language.escape",
merge : true, merge : true,
regex : "\\\\." regex : "\\\\.|\\\\$"
}, { }, {
token : "string", token : "string",
regex : '[^"\\\\]*?"', merge : true,
regex : '[^"\\\\]+'
}, {
token : "string",
regex : '"',
next : "start" next : "start"
} }
] ]