nvim-treesitter/runtime/queries/comment/highlights.scm

45 lines
1.3 KiB
Scheme
Raw Normal View History

; TODO(clason): use @comment.{error,warning,hint,info,ok} -- cf. Helix
2022-09-26 10:19:02 +01:00
(_) @spell
((tag
(name) @text.todo @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
2023-06-16 14:11:10 -05:00
(#any-of? @text.todo "TODO" "WIP"))
2022-10-17 20:09:56 +03:00
("text" @text.todo @nospell
2023-06-16 14:11:10 -05:00
(#any-of? @text.todo "TODO" "WIP"))
((tag
(name) @text.note @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
("text" @text.note @nospell
(#any-of? @text.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
((tag
(name) @text.warning @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
("text" @text.warning @nospell
(#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
((tag
(name) @text.danger @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @text.danger "FIXME" "BUG" "ERROR"))
("text" @text.danger @nospell
(#any-of? @text.danger "FIXME" "BUG" "ERROR"))
; Issue number (#123)
2022-10-17 20:09:56 +03:00
("text" @number
(#lua-match? @number "^#[0-9]+$"))
((uri) @text.uri @nospell)