aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/erlang/textobjects.scm
diff options
context:
space:
mode:
authorMichael Davis2022-06-01 23:40:05 +0000
committerBlaž Hrastnik2022-06-07 11:03:31 +0000
commit7a9147489e8c058561bb37834c791b027fb0b4ae (patch)
tree1969e1de9a2f20172e5a507ca627571a75d1b021 /runtime/queries/erlang/textobjects.scm
parent9f8df05d96b0c475fefe079bca01c23eb492e6bb (diff)
add textobject queries for erlang
Diffstat (limited to 'runtime/queries/erlang/textobjects.scm')
-rw-r--r--runtime/queries/erlang/textobjects.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/queries/erlang/textobjects.scm b/runtime/queries/erlang/textobjects.scm
new file mode 100644
index 00000000..c46b5c6f
--- /dev/null
+++ b/runtime/queries/erlang/textobjects.scm
@@ -0,0 +1,8 @@
+(function_clause
+ pattern: (arguments (_)? @parameter.inside)
+ body: (_) @function.inside) @function.around
+
+(anonymous_function
+ (stab_clause body: (_) @function.inside)) @function.around
+
+(comment (comment_content) @comment.inside) @comment.around