mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Comment: highlight text nodes
As requested in https://github.com/nvim-treesitter/nvim-treesitter/issues/236#issuecomment-797878646
This commit is contained in:
parent
7deedc4939
commit
4bfccba843
2 changed files with 7 additions and 1 deletions
|
|
@ -18,7 +18,7 @@
|
|||
"revision": "95c7959c461406381b42113dcf4591008c663d21"
|
||||
},
|
||||
"comment": {
|
||||
"revision": "4a47080791683ce1bdfba85255df4d512edbb5d5"
|
||||
"revision": "814bf323edb504caee2331872b854c9f19eb5d2b"
|
||||
},
|
||||
"cpp": {
|
||||
"revision": "c61212414a3e95b5f7507f98e83de1d638044adc"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue