4 ms·
This would be much easier to understand if GitHub had proper ruby syntax highlighting. Just yesterday I was testing this, it appears they use very simplistic al
by tomp 13y ago
This would be much easier to understand if GitHub had proper ruby syntax highlighting. Just yesterday I was testing this, it appears they use very simplistic algorithm for parsing Ruby string interpolation - probably just regexes, which cannot handle nesting.
https://gist.github.com/tomprimozic/9113077 https://gist.github.com/tomprimozic/9113077
- samatman 13y agoIronically, Linguist+Pygments, the detection and highlighting engine, is a Ruby tool.
- halostatue 13y agoPygments is a Python tool, accessed through RubyPython* (for which I should really make sure it still works with Ruby 2.1 and maybe start trying to figure out how to make it work with Py3.) We have a few crashes that I can't figure out (but am putting in the test suite). * https://bitbucket.org/raineszm/rubypython/src https://bitbucket.org/raineszm/rubypython/src