tmm1/pygments.rb — pull request #40 by pwnall (2012-09-26 04:57:23+00:00)
Title: Support content-only lexer_name_for.

Thank you very much for the new pipe-based approach in pygments 0.3! rubypython kept crashing my Rails processes, so I had to disable syntax highlighting and wait for this.

Unfortunately, the piping changes lost support for passing code, with no metadata, into lexer_name_for.

This patch adds that support back, together with a (previously failing) test.

I hope you'll consider merging this patch. Please let me know if there are formatting / naming / other issues I can address. Thanks!