Permalink
Browse files

Fix bug where 'this' keyword is highlighted when part of words.

Fixes #81
  • Loading branch information...
1 parent 659a9f8 commit 2c665a95ba4f29e959f7ba86e3e21bf8de168f85 @jart jart committed Apr 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 coffee-mode.el
View
@@ -381,7 +381,7 @@ called `coffee-compiled-buffer-name'."
;;
;; Instance variables (implicit this)
-(defvar coffee-this-regexp "@\\w+\\|this")
+(defvar coffee-this-regexp "\\(?:@\\w+\\|\\<this\\)\\>")
;; Prototype::access
(defvar coffee-prototype-regexp "\\(\\(\\w\\|\\.\\| \\|$\\)+?\\)::\\(\\(\\w\\|\\.\\| \\|$\\)+?\\):")

0 comments on commit 2c665a9

Please sign in to comment.