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

// in string breaks highlighting #28

Closed
varon opened this issue Jul 19, 2023 · 1 comment · Fixed by #29
Closed

// in string breaks highlighting #28

varon opened this issue Jul 19, 2023 · 1 comment · Fixed by #29

Comments

@varon
Copy link
Contributor

varon commented Jul 19, 2023

Simple bug report:

let howToBreakTheHighlighting = "//"

Put that line anywhere in your code to instantly break all following highlighting for the rest of the file.

This is a pretty show stopping issue because any file with a URL (i.e. https:// breaks)

See also kaashyapan/tree-sitter-fsharp#1

@Nsidorenco
Copy link
Member

Hopefully this is not too hard to fix.
The string node does not explicitly deal with // which might cause the parser to interpret it as a comment

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.

2 participants