nvim-treesitter/runtime/queries/jsonnet/locals.scm

28 lines
471 B
Scheme
Raw Normal View History

(parenthesis) @local.scope
2024-01-06 15:05:50 +09:00
(anonymous_function) @local.scope
2024-01-06 15:05:50 +09:00
(object) @local.scope
2024-01-06 15:05:50 +09:00
(field) @local.scope
2024-01-06 15:05:50 +09:00
(local_bind) @local.scope
(field
function: (fieldname
(id) @local.definition.function)
(#set! definition.function.scope "parent"))
2024-01-06 15:05:50 +09:00
(bind
(id) @local.definition.var)
(bind
function: (id) @local.definition.function)
2024-01-06 15:05:50 +09:00
(param
(id) @local.definition.parameter)
(id) @local.reference
2024-01-06 15:05:50 +09:00
;(fieldname (id) (#is-not? local)) ; (#is-not?) not supported yet