-
Notifications
You must be signed in to change notification settings - Fork 3
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
Highlighting issue when function has a comment #3
Comments
I can't seem to reproduce this on the latest commit (96d070c). Is it possible there's whitespace in the text where the parsing error appears? |
I do run on the latest version that was included with helix-editor/helix#10379 |
Hmm, that's strange... Running helix from master at helix-editor/helix@dbacaad, it looks like this for me: Just double checking: the issue is that the |
I did not, is that necessary? The helix docs suggest that is not needed for pre-packaged grammars. |
Whether it's necessary very much depends on how you've installed Helix/how you're running it with Cargo. You can try checking |
I don't believe nix runs on windows, which is where I'm running helix. I build from source using (If I were to -g fetch manually, it would write the grammars in %AppData%, which I don't want, because then I'd have to copy the queries etc also manually to %AppData%) |
I found something strange, I noticed the same thing in a nushell script, also with an if statement prepended with a comment:
This, and the fact that you cannot reproduce, suggests to me that something else is going on. Though I have no clue what that could be 🤔 |
Oh yeah, it's a line ending issue. Setting them to |
Yeah, it seems the issue persists. Can you reproduce the issue too, with CRLF line endings? |
Actually it looks like the problem might be on Helix's end, not the grammar's. If you check |
Issue created at the Helix repo |
Closing as this appears to be fixed now that helix-editor/helix#6417 has been merged. Thanks for creating that issue. |
The text was updated successfully, but these errors were encountered: