Skip to content

Commit

Permalink
feat(highlights): add more comment highlights (helix-editor#8564)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoloEdits authored and mtoohey31 committed Jun 2, 2024
1 parent 1403554 commit 51502df
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions runtime/queries/comment/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51502df

Please sign in to comment.