mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-05 20:07:44 +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,
|
default: None,
|
||||||
regex: None,
|
regex: None,
|
||||||
}),
|
}),
|
||||||
|
// ${var}
|
||||||
|
map(seq!("${", var(), "}",), |values| SnippetElement::Variable {
|
||||||
|
name: values.1,
|
||||||
|
default: None,
|
||||||
|
regex: None,
|
||||||
|
}),
|
||||||
// ${var:default}
|
// ${var:default}
|
||||||
map(
|
map(
|
||||||
seq!(
|
seq!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue