diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-08-01 19:50:56 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-08-02 00:13:51 +0200 |
| commit | dec8bc0015c9fc0e6f4283557cb088718348ec80 (patch) | |
| tree | 2ea272cd29595a2810d4801244899bd34067729e /text-objects.h | |
| parent | dd3a6e2d9487c970fd007989833fc68a3261183a (diff) | |
| download | vis-dec8bc0015c9fc0e6f4283557cb088718348ec80.tar.gz vis-dec8bc0015c9fc0e6f4283557cb088718348ec80.tar.xz | |
vis: add text objects `af` and `if`
They try to match C-like function definitions. The inner variant
only contains the function body.
Diffstat (limited to 'text-objects.h')
| -rw-r--r-- | text-objects.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |
