From dec8bc0015c9fc0e6f4283557cb088718348ec80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 1 Aug 2015 19:50:56 +0200 Subject: vis: add text objects `af` and `if` They try to match C-like function definitions. The inner variant only contains the function body. --- text-objects.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'text-objects.h') diff --git a/text-objects.h b/text-objects.h index fb35d13..1ff728a 100644 --- a/text-objects.h +++ b/text-objects.h @@ -29,6 +29,10 @@ Filerange text_object_line(Text*, size_t pos); Filerange text_object_sentence(Text*, size_t pos); Filerange text_object_paragraph(Text*, size_t pos); +/* C like function definition */ +Filerange text_object_function(Text*, size_t pos); +/* inner variant only contains the function body */ +Filerange text_object_function_inner(Text*, size_t pos); /* these are inner text objects i.e. the delimiters themself are not * included in the range */ Filerange text_object_square_bracket(Text*, size_t pos); -- cgit v1.2.3