summaryrefslogtreecommitdiff
path: root/helix-core/src/auto_pairs.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-05-06 13:59:59 +0000
committerBlaž Hrastnik2021-05-06 14:02:32 +0000
commitf8844c68116cbbb1f24c49a5a7da95da7963616e (patch)
treeb4b38f168349dfa6a59cd45cbdbbe00f039aa32d /helix-core/src/auto_pairs.rs
parentfd4fd12fa3dd565b56edb395bd625b0d2ec8ad46 (diff)
Implement pair expansion when pressing new line between bracket pairs.
From: {|} To: { | }
Diffstat (limited to 'helix-core/src/auto_pairs.rs')
-rw-r--r--helix-core/src/auto_pairs.rs2
1 files changed, 1 insertions, 1 deletions
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)] = &[
('(', ')'),
('{', '}'),
('[', ']'),