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"
|
||||
}, {
|
||||
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 : '[^"\\\\]+',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue