alemuller / tree-sitter-make

MIT License
39 stars 14 forks source link

VPATH_assignment is not highlighted #13

Closed kiryph closed 2 years ago

kiryph commented 2 years ago
OUTPUT_DIR   := output/
VPATH        := input/
variable_assignment [0, 0] - [1, 0]
  name: word [0, 0] - [0, 10]
  value: text [0, 16] - [0, 23]
VPATH_assignment [1, 0] - [3, 0]
  value: paths [1, 16] - [1, 22]
    word [1, 16] - [1, 22]

Screenshot 2022-09-03 at 09 38 44

kiryph commented 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 the built-in variable VPATH.

https://github.com/nvim-treesitter/nvim-treesitter/blob/73cd1f189bf19e99af9b1349cdca590a40b985b0/queries/make/highlights.scm

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