feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent c13e28f894
commit 2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions

View 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)