mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-08-17 03:50:21 +03:00
feat(highlights): add more comment highlights (#8564)
This commit is contained in:
parent
ab266b99e6
commit
f992c3b597
@ -7,31 +7,31 @@
|
||||
|
||||
; Hint level tags
|
||||
((tag (name) @hint)
|
||||
(#match? @hint "^(HINT|MARK)$"))
|
||||
(#match? @hint "^(HINT|MARK|PASSED|STUB|MOCK)$"))
|
||||
|
||||
("text" @hint
|
||||
(#match? @hint "^(HINT|MARK)$"))
|
||||
(#match? @hint "^(HINT|MARK|PASSED|STUB|MOCK)$"))
|
||||
|
||||
; Info level tags
|
||||
((tag (name) @info)
|
||||
(#match? @info "^(INFO|NOTE|TODO)$"))
|
||||
(#match? @info "^(INFO|NOTE|TODO|PERF|OPTIMIZE|PERFORMANCE|QUESTION|ASK)$"))
|
||||
|
||||
("text" @info
|
||||
(#match? @info "^(INFO|NOTE|TODO)$"))
|
||||
(#match? @info "^(INFO|NOTE|TODO|PERF|OPTIMIZE|PERFORMANCE|QUESTION|ASK)$"))
|
||||
|
||||
; Warning level tags
|
||||
((tag (name) @warning)
|
||||
(#match? @warning "^(HACK|WARN|WARNING)$"))
|
||||
(#match? @warning "^(HACK|WARN|WARNING|TEST|TEMP)$"))
|
||||
|
||||
("text" @warning
|
||||
(#match? @warning "^(HACK|WARN|WARNING)$"))
|
||||
(#match? @warning "^(HACK|WARN|WARNING|TEST|TEMP)$"))
|
||||
|
||||
; Error level tags
|
||||
((tag (name) @error)
|
||||
(#match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
|
||||
(#match? @error "^(BUG|FIXME|ISSUE|XXX|FIX|SAFETY|FIXIT|FAILED|DEBUG)$"))
|
||||
|
||||
("text" @error
|
||||
(#match? @error "^(BUG|FIXME|ISSUE|XXX)$"))
|
||||
(#match? @error "^(BUG|FIXME|ISSUE|XXX|FIX|SAFETY|FIXIT|FAILED|DEBUG)$"))
|
||||
|
||||
(tag
|
||||
(name) @ui.text
|
||||
|
Loading…
Reference in New Issue
Block a user