diff options
Diffstat (limited to 'helix-core/src/auto_pairs.rs')
-rw-r--r-- | helix-core/src/auto_pairs.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-core/src/auto_pairs.rs b/helix-core/src/auto_pairs.rs index 52a45075..e6b8f667 100644 --- a/helix-core/src/auto_pairs.rs +++ b/helix-core/src/auto_pairs.rs @@ -1,6 +1,8 @@ use crate::{Range, Rope, Selection, Tendril, Transaction}; use smallvec::SmallVec; +// Heavily based on https://github.com/codemirror/closebrackets/ + const PAIRS: &[(char, char)] = &[ ('(', ')'), ('{', '}'), |