on master help sign in
Adds single and double quotes to matching pairs (#995)
1e793c2Daniel S Poulin
helix-core/src/match_brackets.rs+8−1
@@ -1,6 +1,13 @@
1use crate::{Rope, Syntax};
1use crate::{Rope, Syntax};
2
2
3−const PAIRS: &[(char, char)] = &[('(', ')'), ('{', '}'), ('[', ']'), ('<', '>')];
3+const PAIRS: &[(char, char)] = &[
4+ ('(', ')'),
5+ ('{', '}'),
6+ ('[', ']'),
7+ ('<', '>'),
8+ ('\'', '\''),
9+ ('"', '"'),
10+];
4// limit matching pairs to only ( ) { } [ ] < >
11// limit matching pairs to only ( ) { } [ ] < >
5
12
6#[must_use]
13#[must_use]