on master help sign in
Extend the set of tags highlighted in comments (#6143)
2d5577dIstván Donkó
runtime/queries/comment/highlights.scm+20−4
@@ -5,17 +5,33 @@
5
5
6":" @punctuation.delimiter
6":" @punctuation.delimiter
7
7
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
8((tag (name) @warning)
23((tag (name) @warning)
9− (#match? @warning "^(TODO|HACK|WARNING)$"))
24+ (#match? @warning "^(HACK|WARN|WARNING)$"))
10
25
11("text" @warning
26("text" @warning
12− (#match? @warning "^(TODO|HACK|WARNING)$"))
27+ (#match? @warning "^(HACK|WARN|WARNING)$"))
13
28
29+; Error level tags
14((tag (name) @error)
30((tag (name) @error)
15− (match? @error "^(FIXME|XXX|BUG)$"))
31+ (match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
16
32
17("text" @error
33("text" @error
18− (match? @error "^(FIXME|XXX|BUG)$"))
34+ (match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
19
35
20(tag
36(tag
21 (name) @ui.text
37 (name) @ui.text