diff options
| -rw-r--r-- | queries/comment/highlights.scm | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/queries/comment/highlights.scm b/queries/comment/highlights.scm index 66bc99cc7..6466a4783 100644 --- a/queries/comment/highlights.scm +++ b/queries/comment/highlights.scm @@ -1,36 +1,37 @@ (_) @spell -[ - "(" - ")" -] @punctuation.bracket - -":" @punctuation.delimiter - -(tag +((tag (name) @text.todo - (user)? @constant) - -((tag ((name) @text.todo)) - (#eq? @text.todo "TODO")) + ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)? + ":" @punctuation.delimiter) + (#eq? @text.todo "TODO")) ("text" @text.todo (#eq? @text.todo "TODO")) -((tag ((name) @text.note)) - (#any-of? @text.note "NOTE" "XXX")) +((tag + (name) @text.note + ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)? + ":" @punctuation.delimiter) + (#any-of? @text.note "NOTE" "XXX")) ("text" @text.note (#any-of? @text.note "NOTE" "XXX")) -((tag ((name) @text.warning)) - (#any-of? @text.warning "HACK" "WARNING")) +((tag + (name) @text.warning + ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)? + ":" @punctuation.delimiter) + (#any-of? @text.warning "HACK" "WARNING")) ("text" @text.warning (#any-of? @text.warning "HACK" "WARNING")) -((tag ((name) @text.danger)) - (#any-of? @text.danger "FIXME" "BUG")) +((tag + (name) @text.danger + ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)? + ":" @punctuation.delimiter) + (#any-of? @text.danger "FIXME" "BUG")) ("text" @text.danger (#any-of? @text.danger "FIXME" "BUG")) |
