aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/bass/locals.scm
blob: daed7e5e19dfa2f0264de3e7dca219269df75a0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
; Scopes
[
  (list)
  (scope)
  (cons)
] @local.scope

; References
(symbol) @local.reference

; Definitions
((list
  .
  (symbol) @_fnkw
  .
  (symbol) @local.definition.function
  (symbol)? @local.definition.parameter)
  (#any-of? @_fnkw "def" "defop" "defn" "fn"))

((cons
  .
  (symbol) @_fnkw
  .
  (symbol) @local.definition.function
  (symbol)? @local.definition.parameter)
  (#any-of? @_fnkw "def" "defop" "defn" "fn"))