Permalink
Browse files

local variable assignment is now highlighted.

  • Loading branch information...
1 parent 291e9c6 commit 7c5b19b77b7363c5b2770c666dc6c2023d3269e7 Shawn Krisman committed Sep 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 coffee-mode.el
View
@@ -250,6 +250,9 @@ called `coffee-compiled-buffer-name'."
;; Assignment
(defvar coffee-assign-regexp "\\(\\(\\w\\|\\.\\|_\\|$\\)+?\s*\\):")
+;; Local Assignment
+(defvar coffee-local-assign-regexp "\\(\\w\\|\\.\\|_\\|$\\)+?\s*=")
+
;; Lambda
(defvar coffee-lambda-regexp "\\((.+)\\)?\\s *\\(->\\|=>\\)")
@@ -304,6 +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 . font-lock-variable-name-face)
(,coffee-regexp-regexp . font-lock-constant-face)
(,coffee-boolean-regexp . font-lock-constant-face)
(,coffee-keywords-regexp . font-lock-keyword-face)))

0 comments on commit 7c5b19b

Please sign in to comment.