小编Jam*_*s L的帖子

当有多个捕获时,如何对 nvim treesitter 进行语法高亮?

I am using NVIM v0.8.0-1210-gd367ed9b2 and I am trying to perform syntax highlighting for haskell in using treesitter. I would like the identifier for a function and its identifier for a function in a type definition to be highlighted differently, similar to how it is in VSCode. Currently, they are both highlighted as a function. If I perform :TSHighlightCaptureUnderCursor over the identifer for a function type definition, it says it is a capture of @variable, @function, @type. …

customization haskell syntax-highlighting neovim treesitter

5
推荐指数
0
解决办法
799
查看次数