aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/nix/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/nix/textobjects.scm')
-rw-r--r--runtime/queries/nix/textobjects.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/queries/nix/textobjects.scm b/runtime/queries/nix/textobjects.scm
new file mode 100644
index 00000000..1508d4c2
--- /dev/null
+++ b/runtime/queries/nix/textobjects.scm
@@ -0,0 +1,9 @@
+(comment) @comment.inside
+(comment)+ @comment.around
+
+(formals
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+
+(function_expression
+ body: (_) @function.inside) @function.around
+