Add more surround pair characters

This commit is contained in:
Gokul Soumya 2021-06-21 22:19:05 +05:30 committed by Blaž Hrastnik
parent 13648d28b9
commit 4754b2e5ae

View file

@ -1,7 +1,15 @@
use crate::{search, Selection};
use ropey::RopeSlice;
pub const PAIRS: &[(char, char)] = &[('(', ')'), ('[', ']'), ('{', '}'), ('<', '>')];
pub const PAIRS: &[(char, char)] = &[
('(', ')'),
('[', ']'),
('{', '}'),
('<', '>'),
('«', '»'),
('「', '」'),
('', ''),
];
/// Given any char in [PAIRS], return the open and closing chars. If not found in
/// [PAIRS] return (ch, ch).