diff options
author | Gokul Soumya | 2021-06-21 16:49:05 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-22 05:27:51 +0000 |
commit | 4754b2e5aed1e4c5085657f8b31ae1c2161a7155 (patch) | |
tree | b4f70f5b791f994b39c89b86d1c062c729ee1432 /helix-core | |
parent | 13648d28b902ed9d0db2afe3824786fa844f50e7 (diff) |
Add more surround pair characters
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/surround.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/helix-core/src/surround.rs b/helix-core/src/surround.rs index a629d2d3..07ef241c 100644 --- a/helix-core/src/surround.rs +++ b/helix-core/src/surround.rs @@ -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). |