Skip to content
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

Spreading attributes from object requires comma #101

Closed
ezhlobo opened this issue May 30, 2019 · 3 comments
Closed

Spreading attributes from object requires comma #101

ezhlobo opened this issue May 30, 2019 · 3 comments

Comments

@ezhlobo
Copy link
Member

ezhlobo commented May 30, 2019

Better to show an example:

Invalid

button(type="button" ...props)

Proof

Valid

button(type="button", ...props)

Proof

Will be nice to have both cases working.

@ForbesLindesay
Copy link
Member

This should just be a case of treating ... as a special case like we do with : in https://github.com/pugjs/pug/blob/2f1110ec2ed8656253331e1e4b1b20b9d12185ee/packages/pug-lexer/index.js#L1221

@ezhlobo
Copy link
Member Author

ezhlobo commented Jun 15, 2019

@ForbesLindesay thank you, that helped! Created pull request to pug-lexer:

pugjs/pug#3152

@ezhlobo
Copy link
Member Author

ezhlobo commented Jun 19, 2019

Fixed in v7.0.1

@ezhlobo ezhlobo closed this as completed Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants