mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -04:00
feat(gap): add gap and gaptst parser and queries (#7110)
This commit is contained in:
parent
4e47268c6d
commit
2d8f0f37c4
10 changed files with 326 additions and 0 deletions
43
queries/gap/locals.scm
Normal file
43
queries/gap/locals.scm
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[
|
||||
(lambda)
|
||||
(function)
|
||||
(atomic_function)
|
||||
] @local.scope
|
||||
|
||||
(parameters
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(qualified_parameters
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(qualified_parameters
|
||||
(qualified_identifier
|
||||
(identifier) @local.definition.parameter))
|
||||
|
||||
(lambda_parameters
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(locals
|
||||
(identifier) @local.definition.var)
|
||||
|
||||
(record_entry
|
||||
left: [
|
||||
(identifier)
|
||||
(integer)
|
||||
] @local.definition.field)
|
||||
|
||||
(assignment_statement
|
||||
left: (identifier) @local.definition.var)
|
||||
|
||||
(for_statement
|
||||
identifier: (identifier) @local.definition.var)
|
||||
|
||||
(assignment_statement
|
||||
left: (identifier) @local.definition.function
|
||||
right: [
|
||||
(lambda)
|
||||
(function)
|
||||
(atomic_function)
|
||||
])
|
||||
|
||||
(identifier) @local.reference
|
||||
Loading…
Add table
Add a link
Reference in a new issue