Permalink
Browse files

Better assignment highlighting for `:`

These now highlight as expected:

key: value
key : value

new Thing key: value
  • Loading branch information...
1 parent c46609c commit 37b481e4a33732d84388f16bbe64e2d795cbf960 @defunkt committed Jun 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 coffee-mode.el
View
@@ -238,7 +238,7 @@ path."
(defvar coffee-prototype-regexp "\\(\\(\\w\\|\\.\\|_\\| \\|$\\)+?\\)::\\(\\(\\w\\|\\.\\|_\\| \\|$\\)+?\\):")
;; Assignment
-(defvar coffee-assign-regexp "\\(\\(\\w\\|\\.\\|_\\| \\|$\\)+?\\):")
+(defvar coffee-assign-regexp "\\(\\(\\w\\|\\.\\|_\\|$\\)+?\s*\\):")
;; Lambda
(defvar coffee-lambda-regexp "\\((.+)\\)?\\s *\\(->\\|=>\\)")

0 comments on commit 37b481e

Please sign in to comment.