mirror of https://github.com/helix-editor/helix
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.pull/959/head
parent
a252ecd8c8
commit
1e793c2bbf
|
@ -1,6 +1,13 @@
|
||||||
use crate::{Rope, Syntax};
|
use crate::{Rope, Syntax};
|
||||||
|
|
||||||
const PAIRS: &[(char, char)] = &[('(', ')'), ('{', '}'), ('[', ']'), ('<', '>')];
|
const PAIRS: &[(char, char)] = &[
|
||||||
|
('(', ')'),
|
||||||
|
('{', '}'),
|
||||||
|
('[', ']'),
|
||||||
|
('<', '>'),
|
||||||
|
('\'', '\''),
|
||||||
|
('"', '"'),
|
||||||
|
];
|
||||||
// limit matching pairs to only ( ) { } [ ] < >
|
// limit matching pairs to only ( ) { } [ ] < >
|
||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
|
Loading…
Reference in New Issue