Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/yara/locals.scm')
-rw-r--r--runtime/queries/yara/locals.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/queries/yara/locals.scm b/runtime/queries/yara/locals.scm
new file mode 100644
index 00000000..16f8768a
--- /dev/null
+++ b/runtime/queries/yara/locals.scm
@@ -0,0 +1,21 @@
+(rule_definition) @local.definition
+(string_identifier) @local.definition
+
+(for_expression
+ (string_identifier) @local.reference)
+
+(for_of_expression
+ (string_identifier) @local.reference)
+
+(of_expression
+ (string_set
+ (string_identifier) @local.reference))
+
+(string_count
+ (string_identifier) @local.reference)
+
+(string_offset
+ (string_identifier) @local.reference)
+
+(string_length
+ (string_identifier) @local.reference)