mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
15
runtime/queries/nix/locals.scm
Normal file
15
runtime/queries/nix/locals.scm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
; let bindings
|
||||
(let_expression (binding_set (binding . (attrpath) @definition.var))) @scope
|
||||
|
||||
; rec attrsets
|
||||
(rec_attrset_expression (binding_set (binding . (attrpath) @definition.field))) @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)
|
||||
|
||||
(variable_expression (identifier) @reference)
|
||||
(inherited_attrs attr: (identifier) @reference)
|
||||
Loading…
Add table
Add a link
Reference in a new issue