File: locals.scm

package info (click to toggle)
tree-sitter-lua 0.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 740 kB
  • sloc: ansic: 13,222; javascript: 439; lisp: 229; makefile: 114; python: 51; cpp: 14; sh: 9
file content (36 lines) | stat: -rw-r--r-- 566 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
; Scopes

[
  (chunk)
  (do_statement)
  (while_statement)
  (repeat_statement)
  (if_statement)
  (for_statement)
  (function_declaration)
  (function_definition)
] @local.scope

; Definitions

(assignment_statement
  (variable_list
    (identifier) @local.definition))

(function_declaration
  name: (identifier) @local.definition)

(for_generic_clause
  (variable_list
    (identifier) @local.definition))

(for_numeric_clause
  name: (identifier) @local.definition)

(parameters (identifier) @local.definition)

; References

[
  (identifier)
] @local.reference