rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

Guess `.pyi` files as Python #1996

Closed ryderben closed 9 months ago

ryderben commented 9 months ago

Python .pyi files are defined in PEP 484 as Stub Files. They have the same syntax as Python modules, except are only for use by the type checker, and are not used at runtime. This change recognizes files with this extension as Python stub files.

Similar behaviour was introduced to Pygments in https://github.com/pygments/pygments/pull/2231.

tancnle commented 9 months ago

Thank you for the contributions @ryderben ❤️ LGTM 🚀

hryanjones commented 9 months ago

Thanks for the quick review! Sorry if I missed it somewhere else, but I'm curious what the process is for this to be rolled into a new release? (e.g. the 4.1.3 release)