Skip to content

Commit

Permalink
Fix for regexp literals with slashes in brackets.
Browse files Browse the repository at this point in the history
Correctly highlight literals like /foo[/]bar/.
  • Loading branch information
mooz authored and defunkt committed Apr 20, 2011
1 parent 1f9bc1a commit 88e1c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee-mode.el
Expand Up @@ -250,7 +250,7 @@ path."
(defvar coffee-boolean-regexp "\\b\\(true\\|false\\|yes\\|no\\|on\\|off\\|null\\)\\b")

;; Regular Expressions
(defvar coffee-regexp-regexp "\\/\\([^\\]\\|\\\\.\\)+?\\/")
(defvar coffee-regexp-regexp "\\/\\(\\\\.\\|\\[\\(\\\\.\\|.\\)+?\\]\\|[^/]\\)+?\\/")

;; JavaScript Keywords
(defvar coffee-js-keywords
Expand Down

0 comments on commit 88e1c8c

Please sign in to comment.