-
Notifications
You must be signed in to change notification settings - Fork 750
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 lexing of line comments at EOF #1371
Fix lexing of line comments at EOF #1371
Conversation
Actually, there are a few other lexers with the same problem. I'll fix them too, while I'm at it, and rename the PR. |
Those are all the occurrences I found of the same mistake! All fixed, and I added visual tests and unit tests. |
@MaximeKjaer Thank you so much for doing all this! I've know there were more of these lurking in the codebase for a while but just hadn't got around to cleaning them up. This PR is a real time saver! I took the liberty of removing some of the extraneous regex operators that sometimes get thrown in (Ruby's regex engine will by default match to the end of the line so there's generally no need to explicitly mark that in the pattern, for instance). How does it look to you? |
That looks good! It really simplifies things nicely 👍 |
Great! Thanks again for this! 🎉 |
This PR fixes Scala comments at EOF. See #797 for a previous instance of this problem.