Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recognize Thor files as Ruby files #2080

Merged

Conversation

vitallium
Copy link
Contributor

@vitallium vitallium commented Oct 22, 2024

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!

Recognize `Thorfile` and `*.thor` files
as Ruby files since they are Ruby files.

Reference:

- https://github.com/rails/thor/wiki/Getting-Started#file-names
@tancnle tancnle added this pull request to the merge queue Oct 22, 2024
Merged via the queue into rouge-ruby:master with commit b22c4f8 Oct 22, 2024
8 checks passed
@tancnle
Copy link
Collaborator

tancnle commented Oct 22, 2024

Thank you @vitallium. LGTM 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants