pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github.py is included in pygments-main

tony opened this issue · comments

This is just to keep a note, it may already be mentioned.

The real pygments main package doesn't have a github.py lexer (https://bitbucket.org/birkenfeld/pygments-main/src/7941677dc77d4f2bf0bbd6140ade85a9454b8b80/pygments/lexers/?at=default).

I think the reason it's there is it's copied from custom_lexers https://github.com/tmm1/pygments.rb/blob/master/vendor/custom_lexers/github.py and the intention is to have it register automatically.

I'm going to follow up on the pygments project itself with a more sensible way to register lexers outside of setuptools entry points (http://pygments.org/docs/plugins/).

I followed up over here: https://bitbucket.org/birkenfeld/pygments-main/issues/1392/setuptools-entry-points-only-way-to

Maybe I'm missing something, but I find that I'm using my own lexers for corner cases (not worth patching upstream) and there's no way to make it searchable via lexers.get_lexer_by_name. That means plugins won't be able to find the new lexer.

github.py no longer exists: #206