Skip to content

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.

3 participants