aboutsummaryrefslogtreecommitdiff
path: root/text-motions.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-motions.c')
-rw-r--r--text-motions.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/text-motions.c b/text-motions.c
index e948fae..a25299b 100644
--- a/text-motions.c
+++ b/text-motions.c
@@ -612,6 +612,14 @@ size_t text_block_end(Text *txt, size_t pos) {
return text_paren_start_end(txt, pos, +1, text_object_curly_bracket);
}
+size_t text_parenthese_start(Text *txt, size_t pos) {
+ return text_paren_start_end(txt, pos, -1, text_object_paranthese);
+}
+
+size_t text_parenthese_end(Text *txt, size_t pos) {
+ return text_paren_start_end(txt, pos, +1, text_object_paranthese);
+}
+
size_t text_bracket_match(Text *txt, size_t pos) {
return text_bracket_match_symbol(txt, pos, NULL);
}