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