mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
44
runtime/queries/comment/highlights.scm
Normal file
44
runtime/queries/comment/highlights.scm
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
; TODO(clason): use @comment.{error,warning,hint,info,ok} -- cf. Helix
|
||||
(_) @spell
|
||||
|
||||
((tag
|
||||
(name) @text.todo @nospell
|
||||
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
|
||||
":" @punctuation.delimiter)
|
||||
(#any-of? @text.todo "TODO" "WIP"))
|
||||
|
||||
("text" @text.todo @nospell
|
||||
(#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)
|
||||
("text" @number
|
||||
(#lua-match? @number "^#[0-9]+$"))
|
||||
|
||||
((uri) @text.uri @nospell)
|
||||
Loading…
Add table
Add a link
Reference in a new issue