From f8503881ded44ed60d5270200a2344fca3849f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 3 Feb 2016 13:15:44 +0100 Subject: text-object: add utility function for abitrarily delimited text objects --- text-objects.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'text-objects.h') 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*); -- cgit v1.2.3