summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-12 16:04:45 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-12 16:04:45 +0200
commit69246fc8ed0344eae4dab35286813a00010a08cb (patch)
tree9c4faf0bcc2bb53e7955aff0b139492ea04dbe2e /lib/coderay/scanners/ruby.rb
parent34e823d709ce19a480dbd78e72e63ada0d3425fb (diff)
parent40bd2ef5d33d32c3b3987da1d115b717259819e4 (diff)
downloadcoderay-69246fc8ed0344eae4dab35286813a00010a08cb.tar.gz
Merge branch 'master' into lua-scanner
Conflicts: lib/coderay/token_kinds.rb
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