Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow member assignment to be highlighted just like local vars.

  • Loading branch information...
commit 279bd3cf5030b7d861f02b7c0f24e69655a2c3d8 1 parent 0686a8a
Shawn Krisman authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 coffee-mode.el
View
4 coffee-mode.el
@@ -251,7 +251,7 @@ called `coffee-compiled-buffer-name'."
(defvar coffee-assign-regexp "\\(\\(\\w\\|\\.\\|_\\|$\\)+?\s*\\):")
;; Local Assignment
-(defvar coffee-local-assign-regexp "\\(^\\|\s\\)\\(\\(_\\|\\.\\|\\w\\|\\$\\)+\\)\s+=")
+(defvar coffee-local-assign-regexp "\\(\\(_\\|\\w\\|\\$\\)+\\)\s+=")
;; Lambda
(defvar coffee-lambda-regexp "\\((.+)\\)?\\s *\\(->\\|=>\\)")
@@ -308,7 +308,7 @@ called `coffee-compiled-buffer-name'."
(,coffee-this-regexp . font-lock-variable-name-face)
(,coffee-prototype-regexp . font-lock-variable-name-face)
(,coffee-assign-regexp . font-lock-type-face)
- (,coffee-local-assign-regexp 2 font-lock-variable-name-face)
+ (,coffee-local-assign-regexp 1 font-lock-variable-name-face)
(,coffee-regexp-regexp . font-lock-constant-face)
(,coffee-boolean-regexp . font-lock-constant-face)
(,coffee-lambda-regexp . (2 font-lock-function-name-face))
Please sign in to comment.
Something went wrong with that request. Please try again.