double quoted strings in scala can't span multiple lines
This commit is contained in:
parent
1b981f1793
commit
93804d063e
1 changed files with 5 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ var ScalaHighlightRules = function() {
|
||||||
next : "tstring"
|
next : "tstring"
|
||||||
}, {
|
}, {
|
||||||
token : "string",
|
token : "string",
|
||||||
regex : '"',
|
regex : '"(?=.)', // " strings can't span multiple lines
|
||||||
next : "string"
|
next : "string"
|
||||||
}, {
|
}, {
|
||||||
token : "symbol.constant", // single line
|
token : "symbol.constant", // single line
|
||||||
|
|
@ -146,6 +146,10 @@ var ScalaHighlightRules = function() {
|
||||||
merge : true,
|
merge : true,
|
||||||
regex : '"',
|
regex : '"',
|
||||||
next : "start"
|
next : "start"
|
||||||
|
}, {
|
||||||
|
token : "string.invalid",
|
||||||
|
regex : '[^"\\\\]*$',
|
||||||
|
next : "start"
|
||||||
}, {
|
}, {
|
||||||
token : "string",
|
token : "string",
|
||||||
regex : '[^"\\\\]+',
|
regex : '[^"\\\\]+',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue