double quoted strings in scala can't span multiple lines

This commit is contained in:
nightwing 2012-06-01 18:08:15 +04:00
commit 93804d063e

View file

@ -80,7 +80,7 @@ var ScalaHighlightRules = function() {
next : "tstring"
}, {
token : "string",
regex : '"',
regex : '"(?=.)', // " strings can't span multiple lines
next : "string"
}, {
token : "symbol.constant", // single line
@ -146,6 +146,10 @@ var ScalaHighlightRules = function() {
merge : true,
regex : '"',
next : "start"
}, {
token : "string.invalid",
regex : '[^"\\\\]*$',
next : "start"
}, {
token : "string",
regex : '[^"\\\\]+',