mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-11 16:07:00 +03:00
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,6 +1,13 @@
|
||||
use crate::{Rope, Syntax};
|
||||
|
||||
const PAIRS: &[(char, char)] = &[('(', ')'), ('{', '}'), ('[', ']'), ('<', '>')];
|
||||
const PAIRS: &[(char, char)] = &[
|
||||
('(', ')'),
|
||||
('{', '}'),
|
||||
('[', ']'),
|
||||
('<', '>'),
|
||||
('\'', '\''),
|
||||
('"', '"'),
|
||||
];
|
||||
// limit matching pairs to only ( ) { } [ ] < >
|
||||
|
||||
#[must_use]
|
||||
|
Loading…
Reference in New Issue
Block a user