mirror of
https://github.com/helix-editor/helix
synced 2026-08-06 15:02:59 +02:00
* Update to latest tree-sitter grammar for Clarity 4 * Improve tuple highlighting * Fix operator and pointy bracket highlighting * Make better use of highlight categories * Add punctuation captures * Add `indents.scm` file * Add `rainbows.scm` * Update tree-sitter grammar again to fix a couple bugs * Add `textobjects.scm` * Add `tags.scm` * Distinguish control and error handling functions from other built-in functions * Run `cargo xtask docgen` to update docs --------- Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
27 lines
577 B
Scheme
27 lines
577 B
Scheme
; Functions
|
|
(private_function
|
|
(function_signature)
|
|
(_) @function.inside) @function.around
|
|
|
|
(read_only_function
|
|
(function_signature)
|
|
(_) @function.inside) @function.around
|
|
|
|
(public_function
|
|
(function_signature)
|
|
(_) @function.inside) @function.around
|
|
|
|
; FIXME: trait_definition not matching — may be a grammar issue
|
|
; (trait_definition) @class.around
|
|
|
|
; Parameters
|
|
(function_signature
|
|
(function_parameter) @parameter.inside @parameter.around)
|
|
|
|
; Comments
|
|
(comment) @comment.inside
|
|
(comment)+ @comment.around
|
|
|
|
; Entries
|
|
(local_binding) @entry.inside @entry.around
|