aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIstván Donkó2023-03-03 16:03:03 +0000
committerGitHub2023-03-03 16:03:03 +0000
commit2d5577dbe6b353bd266154ab693ffedc521afee0 (patch)
tree9de14fd385b53e7440a3d3d50c7476e170bda166
parentddc5bf4e606230dd8bc20c59b1cc114e93bbf1c0 (diff)
Extend the set of tags highlighted in comments (#6143)
-rw-r--r--runtime/queries/comment/highlights.scm24
1 files changed, 20 insertions, 4 deletions
diff --git a/runtime/queries/comment/highlights.scm b/runtime/queries/comment/highlights.scm
index 88685d59..3b25531a 100644
--- a/runtime/queries/comment/highlights.scm
+++ b/runtime/queries/comment/highlights.scm
@@ -5,17 +5,33 @@
":" @punctuation.delimiter
+; Hint level tags
+((tag (name) @hint)
+ (#match? @hint "^(HINT|MARK)$"))
+
+("text" @hint
+ (#match? @hint "^(HINT|MARK)$"))
+
+; Info level tags
+((tag (name) @info)
+ (#match? @info "^(INFO|NOTE|TODO)$"))
+
+("text" @info
+ (#match? @info "^(INFO|NOTE|TODO)$"))
+
+; Warning level tags
((tag (name) @warning)
- (#match? @warning "^(TODO|HACK|WARNING)$"))
+ (#match? @warning "^(HACK|WARN|WARNING)$"))
("text" @warning
- (#match? @warning "^(TODO|HACK|WARNING)$"))
+ (#match? @warning "^(HACK|WARN|WARNING)$"))
+; Error level tags
((tag (name) @error)
- (match? @error "^(FIXME|XXX|BUG)$"))
+ (match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
("text" @error
- (match? @error "^(FIXME|XXX|BUG)$"))
+ (match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
(tag
(name) @ui.text