git.iko.soy
/
helix
readme
files
commits
refs
on
master
help
sign in
Adds single and double quotes to matching pairs (#995)
1e793c2
Daniel S Poulin
5 years ago
helix-core/src/match_brackets.rs
+8
−1
compare with master
unified
split
@@ -1,6 +1,13 @@
1
use
crate
::{Rope, Syntax};
1
use
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]
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list