on master help sign in
Add more surround pair characters
commit4754b2e5aed1e4c5085657f8b31ae1c2161a7155 authorGokul Soumya <gokulps15@gmail.com> dateMon 21 Jun 2021, 22:19 (5 years ago) parent13648d2
1 file changed+9−1
helix-core/src/surround.rs+9−1
helix-core/src/surround.rs+9−1
@@ -1,7 +1,15 @@
11use crate::{search, Selection};
22use ropey::RopeSlice;
33
4−pub const PAIRS: &[(char, char)] = &[('(', ')'), ('[', ']'), ('{', '}'), ('<', '>')];
4+pub const PAIRS: &[(char, char)] = &[
5+ ('(', ')'),
6+ ('[', ']'),
7+ ('{', '}'),
8+ ('<', '>'),
9+ ('«', '»'),
10+ ('「', '」'),
11+ ('(', ')'),
12+];
513
614/// Given any char in [PAIRS], return the open and closing chars. If not found in
715/// [PAIRS] return (ch, ch).