Created
March 27, 2012 07:33
-
-
Save kei-q/2213714 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/CoffeeTags/parser.rb b/lib/CoffeeTags/parser.rb | |
index ee7501c..58860a9 100644 | |
--- a/lib/CoffeeTags/parser.rb | |
+++ b/lib/CoffeeTags/parser.rb | |
@@ -17,7 +17,7 @@ module Coffeetags | |
# regexes | |
@block = /^\s*(if|unless|switch|loop|do)/ | |
- @class_regex = /^\s*class\s*([\w\.]*)/ | |
+ @class_regex = /^\s*class\s*([@\w\.]*)/ | |
@proto_meths = /^\s*([A-Za-z]*)::([@a-zA-Z0-9_]*)/ | |
@var_regex = /([@a-zA-Z0-9_]*)\s*[=:]{1}\s*$/ | |
@token_regex = /([@a-zA-Z0-9_]*)\s*[:=]{1}/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment