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"
|
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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue