summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-06-16 00:53:18 +0000
committermurphy <murphy@rubychan.de>2011-06-16 00:53:18 +0000
commit4c8b5dac9d881b916a49e20401659bf107168e0b (patch)
treed5ce01f8257f61782a58184f2701149b7d2cc5a6 /lib/coderay/scanners/ruby.rb
parent3f5a6704e84b436d6cdb4110740af0c89222d520 (diff)
downloadcoderay-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.rb2
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