Closed seasonedfish closed 2 years ago
looks like this is handled here: https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/haskell/highlights.scm#L119
which only triggers for application.
you'll have to create an issue in the nvim-treesitter
repo!
just noticed that this file is also present in this repo, but in an older state. so I'd say that the other repo is the reference implementation
just noticed that this file is also present in this repo, but in an older state. so I'd say that the other repo is the reference implementation
Wait, so should I still open an issue in https://github.com/nvim-treesitter/nvim-treesitter?
yep!
@tek This has been fixed in the nvim-treesitter repo, should I open a PR to merge the changes here?
I guess it would make sense to synchronize the queries from nivim-treesitter…go ahead if you like!
Ah wait a second, the file in this repo contains some changes from the one in nvim-treesitter (https://github.com/tree-sitter/tree-sitter-haskell/pull/40), and it looks like both repos have commits since.
I don't feel confident enough in tree-sitter's query syntax to make the merge, could someone else take a look?
according to the commit message of the last big change for this file, it was copied from nvim-treesitter then as well. so I think you should just complete replace it with the current one from there
When I have multiple functions chained together using the $ operator, the outermost function doesn't get highlighted as a function.
The problem
Here is my code:
Here is what it looks like with the onedark.nvim colorscheme in neovim: The outermost function,
length
, is not highlighted the same color as the functionsfilter
andzip
. So, I suspect that tree-sitter isn't parsing it as a function.Expected behavior
I expected
length
to be highlighted the same color as other functions. When I use parentheses instead,length
is highlighted correctly.