rouge-ruby / rouge

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

Recognize Thor files as Ruby files #2080

Closed vitallium closed 1 month ago

vitallium commented 1 month ago

Hi. This pull request add Thorfile and *.thor files to the filenames of the Ruby lexer since they are Ruby files.

Here are before&after screenshots.

I used these two files: Thorfile and command.thor from the Rails repo to make them:

Command: ./bin/rougify <filename> --theme=github

Before After
CleanShot 2024-10-22 at 18 26 59@2x CleanShot 2024-10-22 at 18 24 40@2x
CleanShot 2024-10-22 at 18 26 50@2x CleanShot 2024-10-22 at 18 25 24@2x

Reference:

Thanks!

tancnle commented 1 month ago

Thank you @vitallium. LGTM 🚀