mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -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
|
(name) @text.todo @nospell
|
||||||
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
(#eq? @text.todo "TODO"))
|
(#eq? @text.todo "TODO" "WIP"))
|
||||||
|
|
||||||
("text" @text.todo @nospell
|
("text" @text.todo @nospell
|
||||||
(#eq? @text.todo "TODO"))
|
(#eq? @text.todo "TODO" "WIP"))
|
||||||
|
|
||||||
((tag
|
((tag
|
||||||
(name) @text.note @nospell
|
(name) @text.note @nospell
|
||||||
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
(#any-of? @text.note "NOTE" "XXX"))
|
(#any-of? @text.note "NOTE" "XXX" "INFO"))
|
||||||
|
|
||||||
("text" @text.note @nospell
|
("text" @text.note @nospell
|
||||||
(#any-of? @text.note "NOTE" "XXX"))
|
(#any-of? @text.note "NOTE" "XXX" "INFO"))
|
||||||
|
|
||||||
((tag
|
((tag
|
||||||
(name) @text.warning @nospell
|
(name) @text.warning @nospell
|
||||||
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
(#any-of? @text.warning "HACK" "WARNING"))
|
(#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
|
||||||
|
|
||||||
("text" @text.warning @nospell
|
("text" @text.warning @nospell
|
||||||
(#any-of? @text.warning "HACK" "WARNING"))
|
(#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
|
||||||
|
|
||||||
((tag
|
((tag
|
||||||
(name) @text.danger @nospell
|
(name) @text.danger @nospell
|
||||||
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
||||||
":" @punctuation.delimiter)
|
":" @punctuation.delimiter)
|
||||||
(#any-of? @text.danger "FIXME" "BUG"))
|
(#any-of? @text.danger "FIXME" "BUG" "ERROR"))
|
||||||
|
|
||||||
("text" @text.danger @nospell
|
("text" @text.danger @nospell
|
||||||
(#any-of? @text.danger "FIXME" "BUG"))
|
(#any-of? @text.danger "FIXME" "BUG" "ERROR"))
|
||||||
|
|
||||||
; Issue number (#123)
|
; Issue number (#123)
|
||||||
("text" @number
|
("text" @number
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue