public
Last active

This is a test for the pygments ruby syntax higlighter to test hash symbols syntax in Ruby 1.9 https://bitbucket.org/birkenfeld/pygments-main/issue/873/ruby-19-hash-syntax-symbol-with-underscore

  • Download Gist
hash_symbols.rb
Ruby
1 2 3 4 5
{ :old_syntax => 'ok' }
{ 'stings as key' => 'should be ok' }
{ new_syntax: 'broken' }
{ withoutunderscore: 'should be ok' }
{ _underscoreinfront: 'might be ok, if I understand the pygments code correct' }

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.