mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-07 14:00:00 -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,15 +1,15 @@
|
|||
; let bindings
|
||||
(let_expression (binding_set (binding . (attrpath) @definition.var))) @scope
|
||||
(let_expression (binding_set (binding . (attrpath) @local.definition.var))) @local.scope
|
||||
|
||||
; rec attrsets
|
||||
(rec_attrset_expression (binding_set (binding . (attrpath) @definition.field))) @scope
|
||||
(rec_attrset_expression (binding_set (binding . (attrpath) @local.definition.field))) @local.scope
|
||||
|
||||
; functions and parameters
|
||||
(function_expression . [
|
||||
(identifier) @definition.parameter
|
||||
(formals (formal . (identifier) @definition.parameter))
|
||||
]) @scope
|
||||
((formals) "@" (identifier) @definition.parameter) ; I couldn't get this to work properly inside the (function)
|
||||
(identifier) @local.definition.parameter
|
||||
(formals (formal . (identifier) @local.definition.parameter))
|
||||
]) @local.scope
|
||||
((formals) "@" (identifier) @local.definition.parameter) ; I couldn't get this to work properly inside the (function)
|
||||
|
||||
(variable_expression (identifier) @reference)
|
||||
(inherited_attrs attr: (identifier) @reference)
|
||||
(variable_expression (identifier) @local.reference)
|
||||
(inherited_attrs attr: (identifier) @local.reference)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue