on master help sign in
Extend the set of tags highlighted in comments (#6143)
commit2d5577dbe6b353bd266154ab693ffedc521afee0 authorIstván Donkó <istvan.donko@gmail.com> dateFri 3 Mar 2023, 17:03 (4 years ago) parentddc5bf4
1 file changed+20−4
runtime/queries/comment/highlights.scm+20−4
runtime/queries/comment/highlights.scm+20−4
@@ -5,17 +5,33 @@
55
66":" @punctuation.delimiter
77
8+; Hint level tags
9+((tag (name) @hint)
10+ (#match? @hint "^(HINT|MARK)$"))
11+
12+("text" @hint
13+ (#match? @hint "^(HINT|MARK)$"))
14+
15+; Info level tags
16+((tag (name) @info)
17+ (#match? @info "^(INFO|NOTE|TODO)$"))
18+
19+("text" @info
20+ (#match? @info "^(INFO|NOTE|TODO)$"))
21+
22+; Warning level tags
823((tag (name) @warning)
9− (#match? @warning "^(TODO|HACK|WARNING)$"))
24+ (#match? @warning "^(HACK|WARN|WARNING)$"))
1025
1126("text" @warning
12− (#match? @warning "^(TODO|HACK|WARNING)$"))
27+ (#match? @warning "^(HACK|WARN|WARNING)$"))
1328
29+; Error level tags
1430((tag (name) @error)
15− (match? @error "^(FIXME|XXX|BUG)$"))
31+ (match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
1632
1733("text" @error
18− (match? @error "^(FIXME|XXX|BUG)$"))
34+ (match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
1935
2036(tag
2137 (name) @ui.text