mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
e72786df8e
* Add tree-sitter-comment Fix #1164 * fix precedence in tree-sitter-comment highlights connects https://github.com/helix-editor/helix/pull/1170 * set injection-regex for comment language * remove comment filetype * fix comment injections for neovim-style injections tags * add comment injections for elixir * remove f.comment * fix spacing in .gitmodules * run 'cargo xtask docgen' Co-authored-by: Ivan Tham <pickfire@riseup.net>
31 lines
519 B
Scheme
31 lines
519 B
Scheme
[
|
|
"("
|
|
")"
|
|
] @punctuation.bracket
|
|
|
|
":" @punctuation.delimiter
|
|
|
|
((tag (name) @warning)
|
|
(#match? @warning "^(TODO|HACK|WARNING)$"))
|
|
|
|
("text" @warning
|
|
(#match? @warning "^(TODO|HACK|WARNING)$"))
|
|
|
|
((tag (name) @error)
|
|
(match? @error "^(FIXME|XXX|BUG)$"))
|
|
|
|
("text" @error
|
|
(match? @error "^(FIXME|XXX|BUG)$"))
|
|
|
|
(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_-]+$"))
|