accept bracket snippet variables without default

pull/6407/head
Pascal Kuthe 2 years ago committed by Blaž Hrastnik
parent 47420db516
commit 85c9dbf603

@ -388,6 +388,12 @@ mod parser {
default: None,
regex: None,
}),
// ${var}
map(seq!("${", var(), "}",), |values| SnippetElement::Variable {
name: values.1,
default: None,
regex: None,
}),
// ${var:default}
map(
seq!(

Loading…
Cancel
Save