Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better assignment highlighting for `:`

These now highlight as expected:

key: value
key : value

new Thing key: value
  • Loading branch information...
commit 37b481e4a33732d84388f16bbe64e2d795cbf960 1 parent c46609c
@defunkt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  coffee-mode.el
View
2  coffee-mode.el
@@ -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 *\\(->\\|=>\\)")
Please sign in to comment.
Something went wrong with that request. Please try again.