-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Two dots in guard clause cause syntax highlighting issue in Helix #81
Comments
Good find! It looks like this is a Helix bug rather than anything wrong in tree-sitter-gleam. The problem is this highlight pattern: tree-sitter-gleam/queries/highlights.scm Lines 17 to 20 in 62c5388
Also see #7: tree-sitter previously did not allow us to gate more than one capture ( |
I have the same behaviour in Neovim. Do they have the same bug? |
I would bet that nvim also needs to add the equivalent of |
Ah actually it looks like nvim is using different highlights https://github.com/nvim-treesitter/nvim-treesitter/blob/cd4e0909948eb33d3959e133c16f837e4db122c6/queries/gleam/highlights.scm And nvim doesn't support So nvim might need a different fix for its highlights |
When I have code like:
in a case statement, the syntax highlighting fails on the second
.
inconfig.connection.host
.Louis was able to reproduce it and I did my best to check with the latest commit from this repo via an entry in the Helix
languages.toml
.Grateful for Gleam, this project and Helix :)
The text was updated successfully, but these errors were encountered: