mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 09:26:19 +04:00
accept bracket snippet variables without default
This commit is contained in:
parent
47420db516
commit
85c9dbf603
@ -388,6 +388,12 @@ fn variable<'a>() -> impl Parser<'a, Output = SnippetElement<'a>> {
|
||||
default: None,
|
||||
regex: None,
|
||||
}),
|
||||
// ${var}
|
||||
map(seq!("${", var(), "}",), |values| SnippetElement::Variable {
|
||||
name: values.1,
|
||||
default: None,
|
||||
regex: None,
|
||||
}),
|
||||
// ${var:default}
|
||||
map(
|
||||
seq!(
|
||||
|
Loading…
Reference in New Issue
Block a user