Debian Codegraph @

runtime/queries/elisp/locals.scm

raw symbols SCIP
1 ; Scopes
2
3 [
4 (function_definition)
5 (macro_definition)
6 ] @local.scope
7
8 ; `lambda`/`let`/`let*` are `special_form`s; the leading keyword is an anonymous
9 ; token, so scope on the specific form rather than all special forms.
10 (special_form
11 .
12 ["lambda" "let" "let*"]) @local.scope
13
14 ; Definitions
15
16 (function_definition
17 parameters: (list (symbol) @local.definition.variable.parameter))
18 (macro_definition
19 parameters: (list (symbol) @local.definition.variable.parameter))
20
21 ; (lambda (a b) ...)
22 (special_form
23 .
24 "lambda"
25 .
26 (list (symbol) @local.definition.variable.parameter))
27
28 ; (let ((x v) (y w)) ...) / let* — each binding's first symbol
29 (special_form
30 .
31 ["let" "let*"]
32 .
33 (list
34 (list
35 .
36 (symbol) @local.definition.variable)))
37
38 ; References
39
40 (symbol) @local.reference