#1052 fix highlighting after the dash.
This commit is contained in:
parent
3f8aa00d23
commit
8da6d26ae4
1 changed files with 2 additions and 4 deletions
|
|
@ -168,16 +168,14 @@ var ClojureHighlightRules = function() {
|
||||||
regex : '[!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+||=|!=|<=|>=|<>|<|>|!|&&]'
|
regex : '[!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+||=|!=|<=|>=|<>|<|>|!|&&]'
|
||||||
}, {
|
}, {
|
||||||
token : keywordMapper,
|
token : keywordMapper,
|
||||||
// TODO: Unicode escape sequences
|
regex : "[a-zA-Z_$][a-zA-Z0-9_$\\-]*\\b"
|
||||||
// TODO: Unicode identifiers
|
|
||||||
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
|
||||||
}, {
|
}, {
|
||||||
token : "string", // single line
|
token : "string", // single line
|
||||||
regex : '"',
|
regex : '"',
|
||||||
next: "string"
|
next: "string"
|
||||||
}, {
|
}, {
|
||||||
token : "string", // symbol
|
token : "string", // symbol
|
||||||
regex : "[:](?:[a-zA-Z]|\\d)+"
|
regex : /:[\w*+!\-_?:\/]+/
|
||||||
}, {
|
}, {
|
||||||
token : "string.regexp", //Regular Expressions
|
token : "string.regexp", //Regular Expressions
|
||||||
regex : '/#"(?:\\.|(?:\\\")|[^\""\n])*"/g'
|
regex : '/#"(?:\\.|(?:\\\")|[^\""\n])*"/g'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue