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.
This commit is contained in:
parent
a252ecd8c8
commit
1e793c2bbf
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,13 @@
|
|||
use crate::{Rope, Syntax};
|
||||
|
||||
const PAIRS: &[(char, char)] = &[('(', ')'), ('{', '}'), ('[', ']'), ('<', '>')];
|
||||
const PAIRS: &[(char, char)] = &[
|
||||
('(', ')'),
|
||||
('{', '}'),
|
||||
('[', ']'),
|
||||
('<', '>'),
|
||||
('\'', '\''),
|
||||
('"', '"'),
|
||||
];
|
||||
// limit matching pairs to only ( ) { } [ ] < >
|
||||
|
||||
#[must_use]
|
||||
|
|
Loading…
Add table
Reference in a new issue