diff options
author | murphy <murphy@rubychan.de> | 2010-04-15 00:50:20 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-04-15 00:50:20 +0000 |
commit | 286a3c6d71fcb3d59820833c022d1af5e6e03b0a (patch) | |
tree | 63dc5e5a54b3f3ec0a695dd519dd1265f2bc63b7 | |
parent | 5b780920ea3224e3973c582b7aed03929c1003d7 (diff) | |
download | coderay-286a3c6d71fcb3d59820833c022d1af5e6e03b0a.tar.gz |
More cleanup.
-rw-r--r-- | lib/coderay/scanners/ruby.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/coderay/scanners/ruby.rb b/lib/coderay/scanners/ruby.rb index e4de0d1..0e8e802 100644 --- a/lib/coderay/scanners/ruby.rb +++ b/lib/coderay/scanners/ruby.rb @@ -32,18 +32,22 @@ module Scanners def scan_tokens tokens, options + patterns = Patterns # avoid constant lookup + state = :initial last_state = nil + method_call_expected = false value_expected = true + heredocs = nil inline_block_stack = nil inline_block_curly_depth = 0 + # def_object_stack = nil # def_object_paren_depth = 0 - unicode = string.respond_to?(:encoding) && string.encoding.name == 'UTF-8' - patterns = Patterns # avoid constant lookup + unicode = string.respond_to?(:encoding) && string.encoding.name == 'UTF-8' until eos? match = nil |