We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90348b8 commit f87299fCopy full SHA for f87299f
helix-lsp/src/snippet.rs
@@ -336,7 +336,12 @@ mod parser {
336
"${",
337
digit(),
338
":",
339
- one_or_more(anything(TEXT_ESCAPE_CHARS)),
+ // according to the grammar there is just a single anything here.
340
+ // However in the procese it is explained that placeholders can be nested
341
+ // the example there contains both a placeholder text and a nested placeholder
342
+ // which indicates a list. Looking at the VSCode sourcecode, the placeholder
343
+ // is indeed parsed as zero_or_more so the grammar is simply incorrect here
344
+ zero_or_more(anything(TEXT_ESCAPE_CHARS)),
345
"}"
346
),
347
|seq| SnippetElement::Placeholder {
0 commit comments