We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf002e commit a69d5d4Copy full SHA for a69d5d4
lib/coderay/scanners/ruby.rb
@@ -96,7 +96,7 @@ def scan_tokens encoder, options
96
/#{patterns::METHOD_NAME}/o)
97
98
kind = patterns::IDENT_KIND[match]
99
- if kind == :ident && value_expected != :colon_expected && scan(/:(?!:)/)
+ if value_expected != :colon_expected && scan(/:(?!:)/)
100
value_expected = true
101
encoder.text_token match, :key
102
encoder.text_token ':', :operator
0 commit comments