-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
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
v-for compiler error case #5819
Labels
has PR
A pull request has already been submitted to solve the issue
🔩 p2-edge-case
scope: compiler
✨ feature request
New feature or request
Comments
Personally, I think the forAliasRE can be changed // origin
const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/
// suggestion
const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([^\s]+)/ |
@hchlq PR welcome. |
This was referenced Apr 28, 2022
I think this causes issues with expressions that contain spaces after in/of. You can try with |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
has PR
A pull request has already been submitted to solve the issue
🔩 p2-edge-case
scope: compiler
✨ feature request
New feature or request
Version
3.2.33
Reproduction link
sfc.vuejs.org/
Steps to reproduce
v-for only spaces after in or of
What is expected?
in this case, should report an X_V_FOR_MALFORMED_EXPRESSION error during compiler
What is actually happening?
error reporting during runtime. (Unexpected token ','. )
The text was updated successfully, but these errors were encountered: