mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
feat(locals)!: switch to upstream captures
This commit is contained in:
parent
306367a7f4
commit
8fb218dbfd
95 changed files with 1154 additions and 1154 deletions
|
|
@ -1,17 +1,17 @@
|
|||
(parenthesis) @scope
|
||||
(anonymous_function) @scope
|
||||
(object) @scope
|
||||
(field) @scope
|
||||
(local_bind) @scope
|
||||
(parenthesis) @local.scope
|
||||
(anonymous_function) @local.scope
|
||||
(object) @local.scope
|
||||
(field) @local.scope
|
||||
(local_bind) @local.scope
|
||||
|
||||
(field
|
||||
function: (fieldname (id) @definition.function)
|
||||
function: (fieldname (id) @local.definition.function)
|
||||
(#set! "definition.function.scope" "parent"))
|
||||
|
||||
(bind (id) @definition.var)
|
||||
(bind function: (id) @definition.function)
|
||||
(bind (id) @local.definition.var)
|
||||
(bind function: (id) @local.definition.function)
|
||||
|
||||
(param (id) @definition.parameter)
|
||||
(param (id) @local.definition.parameter)
|
||||
|
||||
(id) @reference
|
||||
(id) @local.reference
|
||||
;(fieldname (id) (#is-not? local)) ; (#is-not?) not supported yet
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue