summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGokul Soumya2021-06-21 16:49:05 +0000
committerBlaž Hrastnik2021-06-22 05:27:51 +0000
commit4754b2e5aed1e4c5085657f8b31ae1c2161a7155 (patch)
treeb4f70f5b791f994b39c89b86d1c062c729ee1432
parent13648d28b902ed9d0db2afe3824786fa844f50e7 (diff)
Add more surround pair characters
-rw-r--r--helix-core/src/surround.rs10
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).