Files
helix/runtime/queries/clarity/textobjects.scm
15c08cffe6 chore(languages): Update Clarity language support (#15431)
* 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>
2026-07-04 13:59:10 -05:00

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