aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/nu/locals.scm
blob: 2a341f80ea95f963341e091f644c775cc4cc1f66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
; Scopes
(function_definition) @scope

; Definitions
(variable_declaration 
  name: (identifier) @definition.var)

(function_definition
  func_name: (identifier) @definition.function)

; References
(value_path) @reference
(word) @reference