1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-28 00:50:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/comment/highlights.scm

26 lines
568 B
Scheme
Raw Normal View History

[
"("
")"
] @punctuation.bracket
":" @punctuation.delimiter
(tag (name) @text.note (user)? @constant)
((tag ((name) @text.warning))
(#any-of? @text.warning "TODO" "HACK" "WARNING"))
("text" @text.warning
(#any-of? @text.warning "TODO" "HACK" "WARNING"))
((tag ((name) @text.danger))
(#any-of? @text.danger "FIXME" "XXX" "BUG"))
("text" @text.danger
(#any-of? @text.danger "FIXME" "XXX" "BUG"))
; Issue number (#123)
("text" @number (#lua-match? @number "^#[0-9]+$"))
; User mention (@user)
("text" @constant (#lua-match? @constant "^[@][a-zA-Z0-9_-]+$"))