mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
38 lines
609 B
Scheme
38 lines
609 B
Scheme
; Scopes
|
|
;-------
|
|
|
|
(statement_block) @scope
|
|
(function) @scope
|
|
(arrow_function) @scope
|
|
(function_declaration) @scope
|
|
(method_definition) @scope
|
|
|
|
; Definitions
|
|
;------------
|
|
|
|
(formal_parameters
|
|
(identifier) @definition)
|
|
|
|
(formal_parameters
|
|
(object_pattern
|
|
(identifier) @definition))
|
|
|
|
(formal_parameters
|
|
(object_pattern
|
|
(shorthand_property_identifier) @definition))
|
|
|
|
(formal_parameters
|
|
(array_pattern
|
|
(identifier) @definition))
|
|
|
|
(variable_declarator
|
|
name: (identifier) @definition)
|
|
|
|
(import_specifier
|
|
(identifier) @definition.import)
|
|
|
|
; References
|
|
;------------
|
|
|
|
(identifier) @reference
|
|
|