diff options
author | Blaž Hrastnik | 2021-05-06 13:59:59 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-05-06 14:02:32 +0000 |
commit | f8844c68116cbbb1f24c49a5a7da95da7963616e (patch) | |
tree | b4b38f168349dfa6a59cd45cbdbbe00f039aa32d /helix-core/src/auto_pairs.rs | |
parent | fd4fd12fa3dd565b56edb395bd625b0d2ec8ad46 (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.rs | 2 |
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)] = &[ ('(', ')'), ('{', '}'), ('[', ']'), |