stsewd / tree-sitter-comment

Tree-sitter grammar for comment tags like TODO, FIXME(user).
https://stsewd.dev/tree-sitter-comment/
MIT License
126 stars 8 forks source link

Enhancement: also highlight FIXME and XXX #19

Closed craigmac closed 1 year ago

craigmac commented 1 year ago

FIXME and XXX are both highlighted in Vim's traditional syntax highlighting, along with TODO, can we add them to match what Vim does?

stsewd commented 1 year ago

Hi, this is already supported out of the box with nvim-treesitter

https://github.com/nvim-treesitter/nvim-treesitter/blob/8ec9a50965ccd34d504db86f09c580edfcff0c0f/queries/comment/highlights.scm#L18-L19

https://github.com/nvim-treesitter/nvim-treesitter/blob/8ec9a50965ccd34d504db86f09c580edfcff0c0f/queries/comment/highlights.scm#L36-L37

You are probably not using the comment parser, make sure you have it installed.