Comment: highlight text nodes

As requested in https://github.com/nvim-treesitter/nvim-treesitter/issues/236#issuecomment-797878646
This commit is contained in:
Santos Gallegos 2021-04-02 11:58:45 -05:00 committed by Kiyan
parent 7deedc4939
commit 4bfccba843
2 changed files with 7 additions and 1 deletions

View file

@ -10,9 +10,15 @@
((tag ((name) @text.warning))
(#match? @text.warning "^(TODO|HACK|WARNING)$"))
("text" @text.warning
(#match? @text.warning "^(TODO|HACK|WARNING)$"))
((tag ((name) @text.danger))
(#match? @text.danger "^(FIXME|XXX|BUG)$"))
("text" @text.danger
(#match? @text.danger "^(FIXME|XXX|BUG)$"))
; Issue number (#123)
("text" @number (#match? @number "^#[0-9]+$"))
; User mention (@user)