Adds single and double quotes to matching pairs (#995)
This enables `mm` to work on quote characters as well as highlighting of
matching quote when on it.
commit1e793c2bbfb4e6d3226f4ba97d99a70934b5cf5c
authorDaniel S Poulin <dan.poulin@digitalsurgeons.com>
dateSun 7 Nov 2021, 19:57 (5 years ago)
parenta252ecd
helix-core/src/match_brackets.rs+8−1
@@ -1,6 +1,13 @@
11use crate::{Rope, Syntax};
22
3−const PAIRS: &[(char, char)] = &[('(', ')'), ('{', '}'), ('[', ']'), ('<', '>')];
3+const PAIRS: &[(char, char)] = &[
4+ ('(', ')'),
5+ ('{', '}'),
6+ ('[', ']'),
7+ ('<', '>'),
8+ ('\'', '\''),
9+ ('"', '"'),
10+];
411// limit matching pairs to only ( ) { } [ ] < >
512
613#[must_use]