aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/jsonnet/locals.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/jsonnet/locals.scm')
-rw-r--r--runtime/queries/jsonnet/locals.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/runtime/queries/jsonnet/locals.scm b/runtime/queries/jsonnet/locals.scm
new file mode 100644
index 000000000..778077764
--- /dev/null
+++ b/runtime/queries/jsonnet/locals.scm
@@ -0,0 +1,27 @@
+(parenthesis) @local.scope
+
+(anonymous_function) @local.scope
+
+(object) @local.scope
+
+(field) @local.scope
+
+(local_bind) @local.scope
+
+(field
+ function: (fieldname
+ (id) @local.definition.function)
+ (#set! definition.function.scope "parent"))
+
+(bind
+ (id) @local.definition.var)
+
+(bind
+ function: (id) @local.definition.function)
+
+(param
+ (id) @local.definition.parameter)
+
+(id) @local.reference
+
+;(fieldname (id) (#is-not? local)) ; (#is-not?) not supported yet