Skip to content

Commit

Permalink
Better assignment highlighting for :
Browse files Browse the repository at this point in the history
These now highlight as expected:

key: value
key : value

new Thing key: value
  • Loading branch information
defunkt committed Jun 6, 2011
1 parent c46609c commit 37b481e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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 *\\(->\\|=>\\)")
Expand Down

0 comments on commit 37b481e

Please sign in to comment.