;; Forked from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/scala/locals.scm ;; Licensed under the Apache License 2.0 ; 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 )