aboutsummaryrefslogtreecommitdiffstats
path: root/queries/comment/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/comment/highlights.scm')
-rw-r--r--queries/comment/highlights.scm38
1 files changed, 20 insertions, 18 deletions
diff --git a/queries/comment/highlights.scm b/queries/comment/highlights.scm
index 87491c7a5..41b653e93 100644
--- a/queries/comment/highlights.scm
+++ b/queries/comment/highlights.scm
@@ -1,41 +1,43 @@
((tag
- (name) @text.todo @nospell
- ("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
+ (name) @comment.todo @nospell
+ ("(" @punctuation.bracket
+ (user) @constant
+ ")" @punctuation.bracket)?
":" @punctuation.delimiter)
- (#any-of? @text.todo "TODO" "WIP"))
+ (#any-of? @comment.todo "TODO" "WIP"))
-("text" @text.todo @nospell
- (#any-of? @text.todo "TODO" "WIP"))
+("text" @comment.todo @nospell
+ (#any-of? @comment.todo "TODO" "WIP"))
((tag
- (name) @text.note @nospell
+ (name) @comment.note @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
- (#any-of? @text.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
+ (#any-of? @comment.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
-("text" @text.note @nospell
- (#any-of? @text.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
+("text" @comment.note @nospell
+ (#any-of? @comment.note "NOTE" "XXX" "INFO" "DOCS" "PERF" "TEST"))
((tag
- (name) @text.warning @nospell
+ (name) @comment.warning @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
- (#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
+ (#any-of? @comment.warning "HACK" "WARNING" "WARN" "FIX"))
-("text" @text.warning @nospell
- (#any-of? @text.warning "HACK" "WARNING" "WARN" "FIX"))
+("text" @comment.warning @nospell
+ (#any-of? @comment.warning "HACK" "WARNING" "WARN" "FIX"))
((tag
- (name) @text.danger @nospell
+ (name) @comment.error @nospell
("(" @punctuation.bracket (user) @constant ")" @punctuation.bracket)?
":" @punctuation.delimiter)
- (#any-of? @text.danger "FIXME" "BUG" "ERROR"))
+ (#any-of? @comment.error "FIXME" "BUG" "ERROR"))
-("text" @text.danger @nospell
- (#any-of? @text.danger "FIXME" "BUG" "ERROR"))
+("text" @comment.error @nospell
+ (#any-of? @comment.error "FIXME" "BUG" "ERROR"))
; Issue number (#123)
("text" @number
(#lua-match? @number "^#[0-9]+$"))
-((uri) @text.uri @nospell)
+((uri) @string.special.url @nospell)