Closed kiryph closed 2 years ago
Sorry, this was a mix up on my side. I had installed nvim-treesitter with its own highlights.scm
which is responsible for not highlighting dollar and its parentheses of substitution references.
If one has installed nvim-treesitter
with its own highlights.scm
but want to use highlights.scm
of this repository, you can install it in ~/.config/nvim/queries/make/highlights.scm
which has higher priority as, e.g. the Packer.nvim path:
wget -P ~/.config/nvim/queries/make/ https://raw.githubusercontent.com/alemuller/tree-sitter-make/main/queries/highlights.scm
Consider this part of a Makefile:
(from https://www.gnu.org/software/make/manual/html_node/Text-Functions.html)
and this screenshot of neovim with treesitter syntax highlighting:
:TSPlaygroundToggle
reveals following syntax tree:I would expect that the dollar sign with the parentheses are highlighted in the first line.