mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-21 04:40:08 -04:00
feat(r)!: update parser and queries
This commit is contained in:
parent
173515a5d2
commit
5373c90c55
9 changed files with 117 additions and 132 deletions
|
|
@ -1,16 +1,22 @@
|
|||
; locals.scm
|
||||
(function_definition) @local.scope
|
||||
|
||||
(formal_parameters
|
||||
(identifier) @local.definition.parameter)
|
||||
|
||||
(left_assignment
|
||||
(argument
|
||||
name: (identifier) @local.definition)
|
||||
|
||||
(equals_assignment
|
||||
(parameter
|
||||
name: (identifier) @local.definition)
|
||||
|
||||
(right_assignment
|
||||
name: (identifier) @local.definition)
|
||||
(binary_operator
|
||||
lhs: (identifier) @local.definition
|
||||
operator: "<-")
|
||||
|
||||
(binary_operator
|
||||
lhs: (identifier) @local.definition
|
||||
operator: "=")
|
||||
|
||||
(binary_operator
|
||||
operator: "->"
|
||||
rhs: (identifier) @local.definition)
|
||||
|
||||
(identifier) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue