diff options
author | Pascal Kuthe | 2023-03-19 21:06:29 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2023-03-22 05:33:08 +0000 |
commit | 85c9dbf6036978a3f021f0e29de47116360dea34 (patch) | |
tree | 7a84e5e9d18ee9d9ba208c610d8e5fd98a7bc2c7 /helix-lsp | |
parent | 47420db516ced2630e3b9c68b430e5f769947878 (diff) |
accept bracket snippet variables without default
Diffstat (limited to 'helix-lsp')
-rw-r--r-- | helix-lsp/src/snippet.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/helix-lsp/src/snippet.rs b/helix-lsp/src/snippet.rs index 5bfe9657..a11ff60f 100644 --- a/helix-lsp/src/snippet.rs +++ b/helix-lsp/src/snippet.rs @@ -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!( |