Closed
Description
Describe the bug
At a couple of places during parsing, we need to skip ahead to figure out what to feed Acorn — inside read_pattern
, and as of #12070 inside snippets using a separate mechanism. The logic fails if characters like {
appear inside strings, comments or regular expressions and are not balanced:
<!-- ok -->
{#each x as { y = 'z' }}{/each}
<!-- not ok -->
{#each x as { y = '{' }}{/each}
Reproduction
Logs
No response
System Info
next
Severity
annoyance