diff options
| author | pseudometa <73286100+chrisgrieser@users.noreply.github.com> | 2023-06-09 10:14:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-09 10:14:08 +0200 |
| commit | e040eda9976533fa5dfa5e473079dcc7b0d95bbf (patch) | |
| tree | ff318f70e26d50a9fab48b6a5b1a052f7c195c6c /queries/comment | |
| parent | Update parsers: commonlisp, dart, scala (#4934) (diff) | |
| download | nvim-treesitter-e040eda9976533fa5dfa5e473079dcc7b0d95bbf.tar nvim-treesitter-e040eda9976533fa5dfa5e473079dcc7b0d95bbf.tar.gz nvim-treesitter-e040eda9976533fa5dfa5e473079dcc7b0d95bbf.tar.bz2 nvim-treesitter-e040eda9976533fa5dfa5e473079dcc7b0d95bbf.tar.lz nvim-treesitter-e040eda9976533fa5dfa5e473079dcc7b0d95bbf.tar.xz nvim-treesitter-e040eda9976533fa5dfa5e473079dcc7b0d95bbf.tar.zst nvim-treesitter-e040eda9976533fa5dfa5e473079dcc7b0d95bbf.zip | |
feat(comment): Add some common comment tags (#4909)
see also: https://github.com/stsewd/tree-sitter-comment/issues/22
Diffstat (limited to 'queries/comment')
| -rw-r--r-- | queries/comment/highlights.scm | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/queries/comment/highlights.scm b/queries/comment/highlights.scm index c5e98669f..c0e1df308 100644 --- a/queries/comment/highlights.scm +++ b/queries/comment/highlights.scm @@ -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 |
