8000 accept all idents as Ruby 1.9 hash keys (#126) · tompave/coderay@a69d5d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit a69d5d4

Browse files
committed
accept all idents as Ruby 1.9 hash keys (rubychan#126)
1 parent cbf002e commit a69d5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/scanners/ruby.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def scan_tokens encoder, options
9696
/#{patterns::METHOD_NAME}/o)
9797

9898
kind = patterns::IDENT_KIND[match]
99-
if kind == :ident && value_expected != :colon_expected && scan(/:(?!:)/)
99+
if value_expected != :colon_expected && scan(/:(?!:)/)
100100
value_expected = true
101101
encoder.text_token match, :key
102102
encoder.text_token ':', :operator

0 commit comments

Comments
 (0)
0