From e040eda9976533fa5dfa5e473079dcc7b0d95bbf Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:14:08 +0200 Subject: feat(comment): Add some common comment tags (#4909) see also: https://github.com/stsewd/tree-sitter-comment/issues/22 --- queries/comment/highlights.scm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'queries/comment') 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 -- cgit v1.2.3-70-g09d2