Permalink
Browse files

keywords can now be member names.

  • Loading branch information...
1 parent ac354b9 commit fad39cc1f237aaa903a89711306c3a3114771166 Shawn Krisman committed Sep 15, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 coffee-mode.el
View
@@ -289,12 +289,14 @@ called `coffee-compiled-buffer-name'."
'("await" "defer"))
;; Regular expression combining the above three lists.
-(defvar coffee-keywords-regexp (regexp-opt
- (append
- coffee-js-reserved
- coffee-js-keywords
- coffee-cs-keywords
- iced-coffee-cs-keywords) 'words))
+(defvar coffee-keywords-regexp
+ ;; keywords can be member names.
+ (concat "[^.]" (regexp-opt
+ (append
+ coffee-js-reserved
+ coffee-js-keywords
+ coffee-cs-keywords
+ iced-coffee-cs-keywords) 'words)))
;; Create the list for font-lock. Each class of keyword is given a

0 comments on commit fad39cc

Please sign in to comment.