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

Add a cosmetic mode #39

Closed
4 of 5 tasks
ichiriac opened this issue Dec 19, 2016 · 1 comment
Closed
4 of 5 tasks

Add a cosmetic mode #39

ichiriac opened this issue Dec 19, 2016 · 1 comment
Assignees
Milestone

Comments

@ichiriac
Copy link
Member

ichiriac commented Dec 19, 2016

This parser could be used to rebuild back from the AST a document, so some informations are lost during the transformations from tokens to AST.

With a cosmetic option set to true, we could retrieve these informations like :

  • T_INLINE_HTML tags instead their T_ECHO transformation
  • Whitespaces
  • Short tags forms
  • The brackets mode on namespaces or declares
  • The optional paranthesis on echo, require ...

This list may not be exaustive, has to be improved

@todo Write the spec in the wiki

@ichiriac ichiriac self-assigned this Dec 19, 2016
@ichiriac ichiriac added this to the 0.1.6 milestone Dec 19, 2016
@ichiriac
Copy link
Member Author

ichiriac commented Jan 2, 2017

The next 1.0.0 release addresses all these features except whitespaces. The whitespaces can break the AST logic, in the same way that comments could do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant