From 4754b2e5aed1e4c5085657f8b31ae1c2161a7155 Mon Sep 17 00:00:00 2001 From: Gokul Soumya Date: Mon, 21 Jun 2021 22:19:05 +0530 Subject: Add more surround pair characters --- helix-core/src/surround.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'helix-core/src') 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). -- cgit v1.2.3-70-g09d2