summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/main.c b/main.c
index 626e066..ee25eac 100644
--- a/main.c
+++ b/main.c
@@ -144,6 +144,8 @@ static inline u32 bracket_opp(u32 c) {
case ']': return '[';
case '(': return ')';
case ')': return '(';
+ case '<': return '>';
+ case '>': return '<';
default:
return c;
}
@@ -151,8 +153,8 @@ static inline u32 bracket_opp(u32 c) {
static inline int bracket_dir(u32 c) {
switch (c) {
- case '{': case '[': case '(': return 1;
- case '}': case ']': case ')': return -1;
+ case '{': case '[': case '(': case '<': return 1;
+ case '}': case ']': case ')': case '>': return -1;
default:
return 0;
}
@@ -500,6 +502,9 @@ loop:
case ']':
l = next_func(l);
break;
+ case '%':
+ l = match_bracket(l);
+ break;
case KEY_PGUP:
for (u32 i = 0; i < LINES; i += 3) l = prev_line(l);
break;