Permalink
Browse files

small fix of coffee-regexp-regexp so it doesn't cause massive hangs w…

…hen matching across newlines
  • Loading branch information...
1 parent 244d4b3 commit 1fb49563dea0bcfaeb977a948e935ba381d894ac @levskaya levskaya committed Nov 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 coffee-mode.el
View
@@ -327,7 +327,8 @@ If FILENAME is omitted, the current buffer's file name is used."
(defvar coffee-boolean-regexp "\\b\\(true\\|false\\|yes\\|no\\|on\\|off\\|null\\|undefined\\)\\b")
;; Regular Expressions
-(defvar coffee-regexp-regexp "\\/\\(\\\\.\\|\\[\\(\\\\.\\|.\\)+?\\]\\|[^/]\\)+?\\/")
+(defvar coffee-regexp-regexp "\\/\\(\\\\.\\|\\[\\(\\\\.\\|.\\)+?\\]\\|[^/
+]\\)+?\\/")
;; JavaScript Keywords
(defvar coffee-js-keywords

0 comments on commit 1fb4956

Please sign in to comment.