#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 : '[!|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+||=|!=|<=|>=|<>|<|>|!|&&]'
|
||||
}, {
|
||||
token : keywordMapper,
|
||||
// TODO: Unicode escape sequences
|
||||
// TODO: Unicode identifiers
|
||||
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
|
||||
regex : "[a-zA-Z_$][a-zA-Z0-9_$\\-]*\\b"
|
||||
}, {
|
||||
token : "string", // single line
|
||||
regex : '"',
|
||||
next: "string"
|
||||
}, {
|
||||
token : "string", // symbol
|
||||
regex : "[:](?:[a-zA-Z]|\\d)+"
|
||||
regex : /:[\w*+!\-_?:\/]+/
|
||||
}, {
|
||||
token : "string.regexp", //Regular Expressions
|
||||
regex : '/#"(?:\\.|(?:\\\")|[^\""\n])*"/g'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue