2021-12-19 18:56:56 +04:00
|
|
|
[
|
|
|
|
"("
|
|
|
|
")"
|
|
|
|
] @punctuation.bracket
|
|
|
|
|
|
|
|
":" @punctuation.delimiter
|
|
|
|
|
2023-03-03 20:03:03 +04:00
|
|
|
; 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
|
2021-12-19 18:56:56 +04:00
|
|
|
((tag (name) @warning)
|
2023-03-03 20:03:03 +04:00
|
|
|
(#match? @warning "^(HACK|WARN|WARNING)$"))
|
2021-12-19 18:56:56 +04:00
|
|
|
|
|
|
|
("text" @warning
|
2023-03-03 20:03:03 +04:00
|
|
|
(#match? @warning "^(HACK|WARN|WARNING)$"))
|
2021-12-19 18:56:56 +04:00
|
|
|
|
2023-03-03 20:03:03 +04:00
|
|
|
; Error level tags
|
2021-12-19 18:56:56 +04:00
|
|
|
((tag (name) @error)
|
2023-03-03 20:03:03 +04:00
|
|
|
(match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
|
2021-12-19 18:56:56 +04:00
|
|
|
|
|
|
|
("text" @error
|
2023-03-03 20:03:03 +04:00
|
|
|
(match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
|
2021-12-19 18:56:56 +04:00
|
|
|
|
|
|
|
(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_-]+$"))
|