feat(jsonnet): update parser and queries

This commit is contained in:
Jeroen Op 't Eynde 2023-08-25 19:55:22 +02:00 committed by GitHub
parent bae2c1824f
commit 4d41d9bfb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 110 additions and 54 deletions

View file

@ -0,0 +1,17 @@
(parenthesis) @scope
(anonymous_function) @scope
(object) @scope
(field) @scope
(local_bind) @scope
(field
function: (fieldname (id) @definition.function)
(#set! "definition.function.scope" "parent"))
(bind (id) @definition.var)
(bind function: (id) @definition.function)
(param (id) @definition.parameter)
(id) @reference
;(fieldname (id) (#is-not? local)) ; (#is-not?) not supported yet