mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 19:37:54 +03:00
accept bracket snippet variables without default
This commit is contained in:
parent
47420db516
commit
85c9dbf603
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue