mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
parent
3b8c2ea492
commit
e4083fc8e1
47 changed files with 126 additions and 3 deletions
19
queries/comment/highlights.scm
Normal file
19
queries/comment/highlights.scm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
":" @punctuation.delimiter
|
||||
|
||||
(tag (name) @text.note (user)? @constant)
|
||||
|
||||
((tag ((name) @text.warning))
|
||||
(#match? @text.warning "^(TODO|HACK|WARNING)$"))
|
||||
|
||||
((tag ((name) @text.danger))
|
||||
(#match? @text.danger "^(FIXME|XXX|BUG)$"))
|
||||
|
||||
; Issue number (#123)
|
||||
("text" @number (#match? @number "^#[0-9]+$"))
|
||||
; User mention (@user)
|
||||
("text" @constant (#match? @constant "^[@][a-zA-Z0-9_-]+$"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue