summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-10 23:29:14 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-10 23:29:14 +0200
commita69d5d43b79a4f2cf5aaccc50b2275bf0dab4aba (patch)
tree01b5b8c2193388d2d504f057d9f91bc07436d2ef /lib/coderay/scanners/ruby.rb
parentcbf002e7c5e78cee9c2ef7f565b064d9f666bc2b (diff)
downloadcoderay-a69d5d43b79a4f2cf5aaccc50b2275bf0dab4aba.tar.gz
accept all idents as Ruby 1.9 hash keys (#126)
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 c5cf1e2..c282f31 100644
--- a/lib/coderay/scanners/ruby.rb
+++ b/lib/coderay/scanners/ruby.rb
@@ -96,7 +96,7 @@ module Scanners
/#{patterns::METHOD_NAME}/o)
kind = patterns::IDENT_KIND[match]
- if kind == :ident && value_expected != :colon_expected && scan(/:(?!:)/)
+ if value_expected != :colon_expected && scan(/:(?!:)/)
value_expected = true
encoder.text_token match, :key
encoder.text_token ':', :operator