1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 03:00:06 +08:00
SpaceVim/bundle/nvim-treesitter/queries/scala/locals.scm

43 lines
675 B
Scheme

; Scopes
[
(template_body)
(lambda_expression)
(function_definition)
(block)
] @scope
; References
(identifier) @reference
; Definitions
(function_declaration
name: (identifier) @definition.function)
(function_definition
name: (identifier) @definition.function)
(parameter
name: (identifier) @definition.parameter)
(class_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)