mirror of
https://github.com/helix-editor/helix
synced 2026-08-04 02:12: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>
53 lines
864 B
Scheme
53 lines
864 B
Scheme
; Definitions
|
|
[
|
|
(trait_definition)
|
|
(trait_implementation)
|
|
(trait_usage)
|
|
(fungible_token_definition)
|
|
(non_fungible_token_definition)
|
|
(constant_definition)
|
|
(variable_definition)
|
|
(mapping_definition)
|
|
(private_function)
|
|
(read_only_function)
|
|
(public_function)
|
|
] @rainbow.scope
|
|
|
|
; Function calls
|
|
[
|
|
(basic_native_form)
|
|
(contract_function_call)
|
|
(let_expression)
|
|
] @rainbow.scope
|
|
|
|
; Bindings and signatures
|
|
[
|
|
(local_binding)
|
|
(function_signature)
|
|
(function_parameter)
|
|
(function_signature_for_trait)
|
|
] @rainbow.scope
|
|
|
|
; Literals
|
|
[
|
|
(list_lit)
|
|
(some_lit)
|
|
(response_lit)
|
|
(tuple_lit)
|
|
] @rainbow.scope
|
|
|
|
; Types
|
|
[
|
|
(buffer_type)
|
|
(ascii_string_type)
|
|
(utf8_string_type)
|
|
(list_type)
|
|
(optional_type)
|
|
(tuple_type)
|
|
(tuple_type_for_trait)
|
|
(response_type)
|
|
] @rainbow.scope
|
|
|
|
; Bracket characters
|
|
["(" ")" "{" "}"] @rainbow.bracket
|