aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/koka/locals.scm
diff options
context:
space:
mode:
authorMatthew Toohey2024-03-18 12:14:10 +0000
committerGitHub2024-03-18 12:14:10 +0000
commit2e4653ea312dcb69d2453eccaa7c0f873cce6aa5 (patch)
treed5346475ed6f5c01e5daa8f834743b4c51a90c1f /runtime/queries/koka/locals.scm
parent94d210c9bf78af1d170534bc3398b334f289be33 (diff)
add koka language support (#8727)
Co-authored-by: Pascal Kuthe <pascal.kuthe@semimod.de>
Diffstat (limited to 'runtime/queries/koka/locals.scm')
-rw-r--r--runtime/queries/koka/locals.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/runtime/queries/koka/locals.scm b/runtime/queries/koka/locals.scm
new file mode 100644
index 00000000..f8a83e0c
--- /dev/null
+++ b/runtime/queries/koka/locals.scm
@@ -0,0 +1,30 @@
+(modulebody) @local.scope
+
+(block) @local.scope
+
+(pattern
+ (identifier
+ (varid) @local.definition))
+
+(decl
+ (apattern
+ (pattern
+ (identifier
+ (varid) @local.definition))))
+
+(puredecl
+ (funid
+ (identifier
+ (varid) @local.definition)))
+
+(puredecl
+ (binder
+ (identifier
+ (varid) @local.definition)))
+
+(decl
+ (binder
+ (identifier
+ (varid) @local.definition)))
+
+(identifier (varid) @local.reference)