diff options
author | Richard Metzler <richard@launchco.com> | 2013-12-07 01:20:50 +0100 |
---|---|---|
committer | Richard Metzler <richard@launchco.com> | 2013-12-07 01:20:50 +0100 |
commit | 584974c292edbca8be0b6c2ccf8dc9dc1ba6e15a (patch) | |
tree | b7e5ccf5940f2e9a938ece64ff3bd04ff3667f43 /tests/examplefiles/hash_syntax.rb | |
parent | 0e187dc6d5b3735c7fe82d79e6c2ceebeebc2d55 (diff) | |
download | pygments-584974c292edbca8be0b6c2ccf8dc9dc1ba6e15a.tar.gz |
FIX 873 Ruby 1.9 hash syntax, symbol with underscore as key not highlighted properly
Bugreport: https://bitbucket.org/birkenfeld/pygments-main/issue/873/ruby-19-hash-syntax-symbol-with-underscore
Example: https://gist.github.com/rmetzler/7833554
Diffstat (limited to 'tests/examplefiles/hash_syntax.rb')
-rw-r--r-- | tests/examplefiles/hash_syntax.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/examplefiles/hash_syntax.rb b/tests/examplefiles/hash_syntax.rb new file mode 100644 index 00000000..35b27723 --- /dev/null +++ b/tests/examplefiles/hash_syntax.rb @@ -0,0 +1,5 @@ +{ :old_syntax => 'ok' } +{ 'stings as key' => 'should be ok' } +{ new_syntax: 'broken until now' } +{ withoutunderscore: 'should be ok' } +{ _underscoreinfront: 'might be ok, if I understand the pygments code correct' } |