aboutsummaryrefslogtreecommitdiff
path: root/helix-22.03-x86_64-windows/runtime/queries/comment/highlights.scm
blob: 88685d59a1aa14ced60b405f989d9c8b47a87a63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[
 "("
 ")"
] @punctuation.bracket

":" @punctuation.delimiter

((tag (name) @warning)
 (#match? @warning "^(TODO|HACK|WARNING)$"))

("text" @warning
 (#match? @warning "^(TODO|HACK|WARNING)$"))

((tag (name) @error)
 (match? @error "^(FIXME|XXX|BUG)$"))

("text" @error
 (match? @error "^(FIXME|XXX|BUG)$"))

(tag
 (name) @ui.text
 (user)? @constant)

; Issue number (#123)
("text" @constant.numeric
 (#match? @constant.numeric "^#[0-9]+$"))

; User mention (@user)
("text" @tag
 (#match? @tag "^[@][a-zA-Z0-9_-]+$"))