on master help sign in
accept empty snippet regex replace elements
commit47420db516ced2630e3b9c68b430e5f769947878 authorPascal Kuthe <pascal.kuthe@semimod.de> dateSun 19 Mar 2023, 22:05 (4 years ago) parent617f09a
1 file changed+2−2
helix-lsp/src/snippet.rs+2−2
helix-lsp/src/snippet.rs+2−2
@@ -311,9 +311,9 @@ mod parser {
311311 seq!(
312312 "/",
313313 // TODO parse as ECMAScript and convert to rust regex
314− non_empty(text(&['/'], &['/'])),
314+ text(&['/'], &['/']),
315315 "/",
316− one_or_more(choice!(
316+ zero_or_more(choice!(
317317 format(),
318318 // text doesn't parse $, if format fails we just accept the $ as text
319319 map("$", |_| FormatItem::Text("$".into())),