-
Notifications
You must be signed in to change notification settings - Fork 744
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
[Fix #895] allow numbers within variable names #896
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! See below for a slight improvement.
@fmichonneau I'm sorry it's taken so long to get to this. I also apologise for force pushing to your branch. It's been so long since your submission that Rouge's test suite has evolved quite a bit and I needed to rebase against master to bring that all up to date. I think the regex I've added (described here) now does the trick but please let me know if there's an edge case that's not being properly considered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Thanks for your help, @klmr! Rouge is a on a two-week cadence for releases as we work our way through the backlog. This fix will come out in v3.8.0 next Tuesday :) |
thank you for taking care of this! |
Attempt to address #895
This is my first contribution to a Ruby project. Please provide feedback if anything else is needed.
@klmr given that you improved the R lexer, could you please double check that this looks reasonable?