aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/ispc/locals.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/ispc/locals.scm')
-rw-r--r--runtime/queries/ispc/locals.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/queries/ispc/locals.scm b/runtime/queries/ispc/locals.scm
new file mode 100644
index 000000000..985b3c9e0
--- /dev/null
+++ b/runtime/queries/ispc/locals.scm
@@ -0,0 +1,18 @@
+; inherits: c
+
+(reference_declarator
+ (identifier) @local.definition.var)
+
+(type_parameter_declaration
+ (type_identifier) @local.definition.type)
+
+(template_declaration) @local.scope
+
+(template_function
+ name: (identifier) @local.definition.function) @local.scope
+
+[
+ (foreach_statement)
+ (foreach_instance_statement)
+ (unmasked_statement)
+] @local.scope