From f8844c68116cbbb1f24c49a5a7da95da7963616e Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Thu, 6 May 2021 22:59:59 +0900 Subject: Implement pair expansion when pressing new line between bracket pairs. From: {|} To: { | } --- helix-core/src/auto_pairs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-core') diff --git a/helix-core/src/auto_pairs.rs b/helix-core/src/auto_pairs.rs index bbd1cea4..ffd16daf 100644 --- a/helix-core/src/auto_pairs.rs +++ b/helix-core/src/auto_pairs.rs @@ -3,7 +3,7 @@ use smallvec::SmallVec; // Heavily based on https://github.com/codemirror/closebrackets/ -const PAIRS: &[(char, char)] = &[ +pub const PAIRS: &[(char, char)] = &[ ('(', ')'), ('{', '}'), ('[', ']'), -- cgit v1.2.3-70-g09d2