mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(idris): add parser and queries (#7274)
This commit is contained in:
parent
a67a312e7b
commit
8758abeb4d
7 changed files with 273 additions and 0 deletions
33
queries/idris/locals.scm
Normal file
33
queries/idris/locals.scm
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
(signature
|
||||
name: (loname)) @local.definition.var
|
||||
|
||||
(signature
|
||||
name: (caname)) @local.definition.type
|
||||
|
||||
(function
|
||||
(lhs
|
||||
(funvar
|
||||
subject: (loname)))) @local.definition.function
|
||||
|
||||
(function
|
||||
(lhs
|
||||
(funvar
|
||||
subject: (caname)))) @local.definition.function
|
||||
|
||||
(type_var
|
||||
(loname)) @local.definition.type
|
||||
|
||||
(pat_name
|
||||
(loname)) @local.definition.var
|
||||
|
||||
(pat_name
|
||||
(caname)) @local.definition.var
|
||||
|
||||
(exp_name
|
||||
(loname)) @local.reference
|
||||
|
||||
(exp_name
|
||||
(caname)) @local.reference
|
||||
|
||||
(function
|
||||
(rhs) @local.scope)
|
||||
Loading…
Add table
Add a link
Reference in a new issue