We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider the following
<h1 attr=static{dynamic} />
svelte parses (and compiles) this as an attribute made of two values (text part and moustache tag)
{ "type": "Attribute", "name": "attr", "value": [ { "type": "Text", "raw": "static", "data": "static" }, { "type": "MustacheTag", "expression": { "type": "Identifier", "name": "dynamic" } } ] }
svast currently parses this as
{ "type": "svelteProperty", "name": "attr", "value": [ { "type": "text", "value": "staticdynamic", } ], "modifiers": [], "shorthand": "none", }
The text was updated successfully, but these errors were encountered:
However this does work if it is quoted
Sorry, something went wrong.
Ah. This will be due to the special handling of quoted and unquoted attribute values.
This is kindof hardcoded to be a single value right now, it needs similar handling to quoted expressions. See #174 (comment)
This should be fixed in svelte-parse@0.1.0.
svelte-parse@0.1.0
Successfully merging a pull request may close this issue.
consider the following
svelte parses (and compiles) this as an attribute made of two values (text part and moustache tag)
svast currently parses this as
The text was updated successfully, but these errors were encountered: