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

Comment containing URL breaks #3

Closed
flying-sheep opened this issue Sep 6, 2020 · 0 comments · Fixed by #6
Closed

Comment containing URL breaks #3

flying-sheep opened this issue Sep 6, 2020 · 0 comments · Fixed by #6

Comments

@flying-sheep
Copy link
Contributor

flying-sheep commented Sep 6, 2020

This comment will be interpreted as just /*, because the // line comment rule breaks parsing, incorrectly highlighting everything that follows as comment:

/* taken at 2020-09-06 from https://example.com */
some_rule = { "x" }

You probably wanted to support nested block comments but not nested line comments.

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 a pull request may close this issue.

1 participant