nvim-treesitter/queries/comment/highlights.scm

42 lines
1 KiB
Scheme
Raw Normal View History

2022-09-26 10:19:02 +01:00
(_) @spell
((tag
(name) @text.todo @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#eq? @text.todo "TODO"))
2022-10-17 20:09:56 +03:00
("text" @text.todo @nospell
2022-10-17 20:09:56 +03:00
(#eq? @text.todo "TODO"))
((tag
(name) @text.note @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.note "NOTE" "XXX"))
("text" @text.note @nospell
2022-10-17 20:09:56 +03:00
(#any-of? @text.note "NOTE" "XXX"))
((tag
(name) @text.warning @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.warning "HACK" "WARNING"))
("text" @text.warning @nospell
2022-10-17 20:09:56 +03:00
(#any-of? @text.warning "HACK" "WARNING"))
((tag
(name) @text.danger @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.danger "FIXME" "BUG"))
("text" @text.danger @nospell
2022-10-17 20:09:56 +03:00
(#any-of? @text.danger "FIXME" "BUG"))
; Issue number (#123)
2022-10-17 20:09:56 +03:00
("text" @number
(#lua-match? @number "^#[0-9]+$"))