mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-27 20:03:29 +04:00
36 lines
701 B
Scheme
36 lines
701 B
Scheme
|
; See: https://tree-sitter.github.io/tree-sitter/syntax-highlighting#local-variables
|
||
|
|
||
|
; Scopes @local.scope
|
||
|
; -------------------------
|
||
|
|
||
|
[
|
||
|
(static_function)
|
||
|
(init_function)
|
||
|
(bounced_function)
|
||
|
(receive_function)
|
||
|
(external_function)
|
||
|
(function)
|
||
|
(block_statement)
|
||
|
] @local.scope
|
||
|
|
||
|
; Definitions @local.definition
|
||
|
; ------------------------------
|
||
|
|
||
|
(let_statement
|
||
|
name: (identifier) @local.definition)
|
||
|
|
||
|
(parameter
|
||
|
name: (identifier) @local.definition)
|
||
|
|
||
|
(constant
|
||
|
name: (identifier) @local.definition)
|
||
|
|
||
|
; References @local.reference
|
||
|
; -----------------------------
|
||
|
|
||
|
(self) @local.reference
|
||
|
|
||
|
(value_expression (identifier) @local.reference)
|
||
|
|
||
|
(lvalue (identifier) @local.reference)
|