Add more surround pair characters

imgbot
Gokul Soumya 4 years ago committed by Blaž Hrastnik
parent 13648d28b9
commit 4754b2e5ae

@ -1,7 +1,15 @@
use crate::{search, Selection}; use crate::{search, Selection};
use ropey::RopeSlice; 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 /// Given any char in [PAIRS], return the open and closing chars. If not found in
/// [PAIRS] return (ch, ch). /// [PAIRS] return (ch, ch).

Loading…
Cancel
Save