diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-03 13:15:44 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-03 16:22:44 +0100 |
| commit | f8503881ded44ed60d5270200a2344fca3849f17 (patch) | |
| tree | 2c8a281eaee2f191ad7e06d7723012a62d2ee7b8 /text-objects.h | |
| parent | 1d315c96a4b53f4bf3e08dfcb8ff6bac01f130e1 (diff) | |
| download | vis-f8503881ded44ed60d5270200a2344fca3849f17.tar.gz vis-f8503881ded44ed60d5270200a2344fca3849f17.tar.xz | |
text-object: add utility function for abitrarily delimited text objects
Diffstat (limited to 'text-objects.h')
| -rw-r--r-- | text-objects.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/text-objects.h b/text-objects.h index 5781b51..127b127 100644 --- a/text-objects.h +++ b/text-objects.h @@ -43,6 +43,8 @@ Filerange text_object_paranthese(Text*, size_t pos); Filerange text_object_quote(Text*, size_t pos); Filerange text_object_single_quote(Text*, size_t pos); Filerange text_object_backtick(Text*, size_t pos); +/* text object delimited by arbitrary chars for which isboundary returns non-zero */ +Filerange text_object_range(Text*, size_t pos, int (*isboundary)(int)); /* extend a range to cover whole lines */ Filerange text_range_linewise(Text*, Filerange*); |
