Browse files

local var doesn't match member assignment.

  • Loading branch information...
1 parent bdb258b commit ac354b9da1b4baf34af1850d60c3f11927edcc3c Shawn Krisman committed Sep 15, 2012
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 "\\(\\(_\\|\\.\\|\\w\\|\\$\\)+\\)\s+=")
+(defvar coffee-local-assign-regexp "\\(^\\|\s\\)\\(\\(_\\|\\.\\|\\w\\|\\$\\)+\\)\s+=")
;; Lambda
(defvar coffee-lambda-regexp "\\((.+)\\)?\\s *\\(->\\|=>\\)")
@@ -307,7 +307,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 1 font-lock-variable-name-face)
+ (,coffee-local-assign-regexp 2 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))

0 comments on commit ac354b9

Please sign in to comment.