fix(comments)!: consolidate note captures

Distinguishing `hint` and `info` is too confusing; it's enough to have
`error`, `warning`, `todo`, and `note`.
This commit is contained in:
Christian Clason 2024-01-20 17:41:40 +01:00
parent 64b3d5e569
commit 5cc5627487
4 changed files with 9 additions and 10 deletions

View file

@ -4,10 +4,10 @@
(user) @constant
")" @punctuation.bracket)?
":" @punctuation.delimiter)
(#any-of? @comment.todo "TODO" "WIP"))
(#any-of? @comment.todo "TODO" "WIP" "FIXME"))
("text" @comment.todo @nospell
(#any-of? @comment.todo "TODO" "WIP"))
(#any-of? @comment.todo "TODO" "WIP" "FIXME"))
((tag
(name) @comment.note @nospell

View file

@ -44,7 +44,7 @@
; (trailer (value) @none)
(breaking_change
(token) @comment.warning)
(token) @comment.error)
(breaking_change
(value) @none @spell)

View file

@ -48,8 +48,8 @@
(url) @string.special.url
((note) @comment.hint
(#any-of? @comment.hint "Note:" "NOTE:" "Notes:"))
((note) @comment.note
(#any-of? @comment.note "Note:" "NOTE:" "Notes:"))
((note) @comment.warning
(#any-of? @comment.warning "Warning:" "WARNING:"))