fix highlighting of multiline clojure strings
This commit is contained in:
parent
2956f1b61f
commit
f29e12c78f
1 changed files with 8 additions and 7 deletions
|
|
@ -190,10 +190,7 @@ var ClojureHighlightRules = function() {
|
|||
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]'
|
||||
}, {
|
||||
token : "string", // multi line
|
||||
regex : '["](?:(?:\\\\.)|(?:[^"\\\\]))*?$',
|
||||
regex : '"',
|
||||
next: "string"
|
||||
}, {
|
||||
token : "string", // symbol
|
||||
|
|
@ -217,12 +214,16 @@ var ClojureHighlightRules = function() {
|
|||
],
|
||||
"string" : [
|
||||
{
|
||||
token : "string",
|
||||
token : "constant.language.escape",
|
||||
merge : true,
|
||||
regex : "\\\\."
|
||||
regex : "\\\\.|\\\\$"
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '[^"\\\\]*?"',
|
||||
merge : true,
|
||||
regex : '[^"\\\\]+'
|
||||
}, {
|
||||
token : "string",
|
||||
regex : '"',
|
||||
next : "start"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue