mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(comment): Add some common comment tags (#4909)
see also: https://github.com/stsewd/tree-sitter-comment/issues/22
This commit is contained in:
parent
7dd2f83764
commit
e040eda997
1 changed files with 8 additions and 8 deletions
|
|
@ -4,37 +4,37 @@
|
|||
(name) @text.todo @nospell
|
||||
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
||||
":" @punctuation.delimiter)
|
||||
(#eq? @text.todo "TODO"))
|
||||
(#eq? @text.todo "TODO" "WIP"))
|
||||
|
||||
("text" @text.todo @nospell
|
||||
(#eq? @text.todo "TODO"))
|
||||
(#eq? @text.todo "TODO" "WIP"))
|
||||
|
||||
((tag
|
||||
(name) @text.note @nospell
|
||||
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
||||
":" @punctuation.delimiter)
|
||||
(#any-of? @text.note "NOTE" "XXX"))
|
||||
(#any-of? @text.note "NOTE" "XXX" "INFO"))
|
||||
|
||||
("text" @text.note @nospell
|
||||
(#any-of? @text.note "NOTE" "XXX"))
|
||||
(#any-of? @text.note "NOTE" "XXX" "INFO"))
|
||||
|
||||
((tag
|
||||
(name) @text.warning @nospell
|
||||
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
||||
":" @punctuation.delimiter)
|
||||
(#any-of? @text.warning "HACK" "WARNING"))
|
||||
(#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
|
||||
|
||||
("text" @text.warning @nospell
|
||||
(#any-of? @text.warning "HACK" "WARNING"))
|
||||
(#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"))
|
||||
(#any-of? @text.danger "FIXME" "BUG" "ERROR"))
|
||||
|
||||
("text" @text.danger @nospell
|
||||
(#any-of? @text.danger "FIXME" "BUG"))
|
||||
(#any-of? @text.danger "FIXME" "BUG" "ERROR"))
|
||||
|
||||
; Issue number (#123)
|
||||
("text" @number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue