summaryrefslogtreecommitdiff
path: root/helix-core/src/auto_pairs.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-03-22 08:58:49 +0000
committerBlaž Hrastnik2021-03-22 08:58:49 +0000
commit73c92a0bc1499f02092a7425c45d4992f4e573a1 (patch)
tree1de38a0f16e3acd44998b1f8368df726a7962e0c /helix-core/src/auto_pairs.rs
parentbd607b4cbd58e2bff06e36f614ff61b7d1a721c3 (diff)
Implement m / match_brackets (using tree sitter).
Diffstat (limited to 'helix-core/src/auto_pairs.rs')
-rw-r--r--helix-core/src/auto_pairs.rs2
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)] = &[
('(', ')'),
('{', '}'),