aboutsummaryrefslogtreecommitdiff
path: root/text-objects.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-08-31 11:07:01 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-08-31 11:07:01 +0200
commitfbaeffb469d2fd6833a1301255f1ac73c7226a83 (patch)
tree16f635303aba7fc69a74c69c61bb79c168f70531 /text-objects.h
parent0ce017c2b813177eb425c0030852c140a662f800 (diff)
downloadvis-fbaeffb469d2fd6833a1301255f1ac73c7226a83.tar.gz
vis-fbaeffb469d2fd6833a1301255f1ac73c7226a83.tar.xz
Expose various text objects with individual functions
Diffstat (limited to 'text-objects.h')
-rw-r--r--text-objects.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/text-objects.h b/text-objects.h
index de3fdc3..211e4e6 100644
--- a/text-objects.h
+++ b/text-objects.h
@@ -8,11 +8,16 @@
* be a whitespace include all neighbouring leading whitespaces and the following word. */
Filerange text_object_word(Text*, size_t pos);
Filerange text_object_word_boundry(Text*, size_t pos, int (*isboundry)(int));
-Filerange text_object_char(Text*, size_t pos, char c);
Filerange text_object_sentence(Text*, size_t pos);
Filerange text_object_paragraph(Text*, size_t pos);
-/* range delimited by either (), {}, [], <>, ", '. the delimiters themself are not
- * included in the range */
-Filerange text_object_bracket(Text*, size_t pos, char type);
+
+/* the delimiters themself are not included in the range */
+Filerange text_object_square_bracket(Text*, size_t pos);
+Filerange text_object_curly_bracket(Text*, size_t pos);
+Filerange text_object_angle_bracket(Text*, size_t pos);
+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);
#endif