mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 06:20:01 -04:00
This syncs the queries that were updated in https://github.com/tree-sitter/tree-sitter-scala/pull/196. Co-authored-by: ghostbuster91 <ghostbuster91@users.noreply.github.com>
38 lines
604 B
Scheme
38 lines
604 B
Scheme
; Scopes
|
|
|
|
[
|
|
(template_body)
|
|
(lambda_expression)
|
|
(function_declaration)
|
|
] @scope
|
|
|
|
; References
|
|
|
|
(identifier) @reference
|
|
|
|
; Definitions
|
|
|
|
(function_declaration
|
|
name: (identifier) @definition.function)
|
|
|
|
(function_definition
|
|
name: (identifier) @definition.function)
|
|
|
|
(parameter
|
|
name: (identifier) @definition.parameter)
|
|
|
|
(binding
|
|
name: (identifier) @definition.var)
|
|
|
|
(val_definition
|
|
pattern: (identifier) @definition.var)
|
|
|
|
(var_definition
|
|
pattern: (identifier) @definition.var)
|
|
|
|
(val_declaration
|
|
name: (identifier) @definition.var)
|
|
|
|
(var_declaration
|
|
name: (identifier) @definition.var)
|
|
|