Skip to content

Compiler: Incorrect parsing when string contains }} (two closing braces) #2944

@glen-84

Description

@glen-84

Version

3.0.5

Reproduction link

Vue 3 Template Explorer (credit: @ota-meshi)

Steps to reproduce

Use two consecutive closing braces in a string, inside a template.

What is expected?

Correct parsing.

What is actually happening?

Vue template compilation error: Error parsing JavaScript expression: Unterminated string constant (1:5)


This will happen frequently when using something like ICU message formatting, as seen in the example at the URL above.

(initially reported @ vuejs/vue-eslint-parser#94)

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions