Permalink
Browse files

Regex for "this" variable includes underscore.

  • Loading branch information...
1 parent 123dff3 commit 2bb69bee23fa9613bcb9adcaf8b568f3d60dccc4 Ryan Koopmans committed with Aug 13, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 coffee-mode.el
View
@@ -228,7 +228,7 @@ print the compiled JavaScript."
;;
;; 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 2bb69be

Please sign in to comment.