pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter
MIT License
572 stars 141 forks source link

0.4.1+ breaks gollum's tests #64

Closed bootstraponline closed 11 years ago

bootstraponline commented 11 years ago

I updated pygments.rb from 0.3.7 and now there are test failures that go away when pygments is reverted. Were there breaking changes from 0.3 to 0.4?

bootstraponline commented 11 years ago

0.3.7

<div class="highlight"><pre><span class="s">'hi'</span>
</pre></div>

0.4.2

<div class="highlight"><pre><span class="err">'</span><span class="n">hi</span><span class="err">'</span>
</pre></div>

It looks like the lexer may have regressed.

nathany commented 11 years ago

Any idea which language? Might want to try pygmetize on that bit of code and search the Pygments issue base? https://bitbucket.org/birkenfeld/pygments-main

bootstraponline commented 11 years ago

I looked a bit more into this and in each case the language was undeclared. I think declaring a language would resolve any issues. I'm not sure what lexer is used by default when no language is set.