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

Support JSX spread property syntax #45

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Support JSX spread property syntax #45

wants to merge 3 commits into from

Conversation

MarcPorciuncula
Copy link
Collaborator

In jsx you can use the spread property syntax {...object} in place of a property-value pair in a tag. less-than-slash was skipping any tags that had this.

This adds support in the xml parser.

I'm getting concerned that maybe our regex is getting too complicated, but I don't know if it's actually causing any performance issues so it should be okay for now (Maybe JSX should get its own parser? Add a JSX option to the settings?). I changed the xmlparser test so that it checks that there is a (potential) whole tag before executing the more complex regex in the parse function. Not sure how much benefit this is.

@mrhanlon review?

@mrhanlon
Copy link
Owner

It looks like we stomped on this with some other PRs. @MarcoThePoro if you can fix the conflict I'll check and merge it and get it out there (finally).

@MarcPorciuncula
Copy link
Collaborator Author

This regex is becoming a monster

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

Successfully merging this pull request may close these issues.

2 participants