aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rescript/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/rescript/textobjects.scm')
-rw-r--r--runtime/queries/rescript/textobjects.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/rescript/textobjects.scm b/runtime/queries/rescript/textobjects.scm
new file mode 100644
index 00000000..7ee8cd1a
--- /dev/null
+++ b/runtime/queries/rescript/textobjects.scm
@@ -0,0 +1,9 @@
+; Classes (modules)
+;------------------
+
+(module_declaration definition: ((_) @class.inside)) @class.around
+
+; Functions
+;----------
+
+(function body: (_) @function.inside) @function.around