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)
|
2023-10-27 03:41:09 +04:00
|
|
|
(#match? @hint "^(HINT|MARK|PASSED|STUB|MOCK)$"))
|
2023-03-03 20:03:03 +04:00
|
|
|
|
|
|
|
("text" @hint
|
2023-10-27 03:41:09 +04:00
|
|
|
(#match? @hint "^(HINT|MARK|PASSED|STUB|MOCK)$"))
|
2023-03-03 20:03:03 +04:00
|
|
|
|
|
|
|
; Info level tags
|
|
|
|
((tag (name) @info)
|
2023-10-27 03:41:09 +04:00
|
|
|
(#match? @info "^(INFO|NOTE|TODO|PERF|OPTIMIZE|PERFORMANCE|QUESTION|ASK)$"))
|
2023-03-03 20:03:03 +04:00
|
|
|
|
|
|
|
("text" @info
|
2023-10-27 03:41:09 +04:00
|
|
|
(#match? @info "^(INFO|NOTE|TODO|PERF|OPTIMIZE|PERFORMANCE|QUESTION|ASK)$"))
|
2023-03-03 20:03:03 +04:00
|
|
|
|
|
|
|
; Warning level tags
|
2021-12-19 18:56:56 +04:00
|
|
|
((tag (name) @warning)
|
2023-10-27 03:41:09 +04:00
|
|
|
(#match? @warning "^(HACK|WARN|WARNING|TEST|TEMP)$"))
|
2021-12-19 18:56:56 +04:00
|
|
|
|
|
|
|
("text" @warning
|
2023-10-27 03:41:09 +04:00
|
|
|
(#match? @warning "^(HACK|WARN|WARNING|TEST|TEMP)$"))
|
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-10-27 03:41:09 +04:00
|
|
|
(#match? @error "^(BUG|FIXME|ISSUE|XXX|FIX|SAFETY|FIXIT|FAILED|DEBUG)$"))
|
2021-12-19 18:56:56 +04:00
|
|
|
|
|
|
|
("text" @error
|
2023-10-27 03:41:09 +04:00
|
|
|
(#match? @error "^(BUG|FIXME|ISSUE|XXX|FIX|SAFETY|FIXIT|FAILED|DEBUG)$"))
|
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_-]+$"))
|
2024-01-09 04:56:51 +04:00
|
|
|
|
|
|
|
(uri) @markup.link.url
|