Skip to content

Instantly share code, notes, and snippets.

@rmetzler
Last active December 30, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmetzler/7833554 to your computer and use it in GitHub Desktop.
Save rmetzler/7833554 to your computer and use it in GitHub Desktop.
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
{ :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' }
@rmetzler
Copy link
Author

rmetzler commented Dec 6, 2013

as you can see in line #3 the one hash syntax is broken, and I think the problem is in this line of code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment