Skip to content

Instantly share code, notes, and snippets.

@kei-q
Created March 27, 2012 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kei-q/2213714 to your computer and use it in GitHub Desktop.
Save kei-q/2213714 to your computer and use it in GitHub Desktop.
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