diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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; |
