mirror of
https://github.com/helix-editor/helix
synced 2024-11-10 10:34:45 +01:00
accept empty snippet regex replace elements
This commit is contained in:
parent
617f09adc4
commit
47420db516
@ -311,9 +311,9 @@ mod parser {
|
|||||||
seq!(
|
seq!(
|
||||||
"/",
|
"/",
|
||||||
// TODO parse as ECMAScript and convert to rust regex
|
// TODO parse as ECMAScript and convert to rust regex
|
||||||
non_empty(text(&['/'], &['/'])),
|
text(&['/'], &['/']),
|
||||||
"/",
|
"/",
|
||||||
one_or_more(choice!(
|
zero_or_more(choice!(
|
||||||
format(),
|
format(),
|
||||||
// text doesn't parse $, if format fails we just accept the $ as text
|
// text doesn't parse $, if format fails we just accept the $ as text
|
||||||
map("$", |_| FormatItem::Text("$".into())),
|
map("$", |_| FormatItem::Text("$".into())),
|
||||||
|
Loading…
Reference in New Issue
Block a user