diff options
author | murphy <murphy@rubychan.de> | 2011-06-16 00:53:18 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-06-16 00:53:18 +0000 |
commit | 4c8b5dac9d881b916a49e20401659bf107168e0b (patch) | |
tree | d5ce01f8257f61782a58184f2701149b7d2cc5a6 /lib/coderay/scanners/ruby.rb | |
parent | 3f5a6704e84b436d6cdb4110740af0c89222d520 (diff) | |
download | coderay-4c8b5dac9d881b916a49e20401659bf107168e0b.tar.gz |
changed :reserved to :keyword in Ruby scanner (issue #43)
Diffstat (limited to 'lib/coderay/scanners/ruby.rb')
-rw-r--r-- | lib/coderay/scanners/ruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/ruby.rb b/lib/coderay/scanners/ruby.rb index 549ae87..299accc 100644 --- a/lib/coderay/scanners/ruby.rb +++ b/lib/coderay/scanners/ruby.rb @@ -90,7 +90,7 @@ module Scanners if match[/\A[A-Z]/] && !(match[/[!?]$/] || match?(/\(/)) kind = :constant end - elsif kind == :reserved + elsif kind == :keyword state = patterns::KEYWORD_NEW_STATE[match] value_expected = true if patterns::KEYWORDS_EXPECTING_VALUE[match] end |