Skip to content

Commit

Permalink
#1052 fix highlighting after the dash.
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Nov 4, 2012
1 parent 3f8aa00 commit 8da6d26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/ace/mode/clojure_highlight_rules.js
Expand Up @@ -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'
Expand Down

0 comments on commit 8da6d26

Please sign in to comment.