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 option to preserve/track whitespace during parsing #177

Open
bitwiseman opened this issue Mar 31, 2013 · 0 comments
Open

Add option to preserve/track whitespace during parsing #177

bitwiseman opened this issue Mar 31, 2013 · 0 comments

Comments

@bitwiseman
Copy link

There is an option to track the comments before a token in the parser. There are scenarios for beautification that are only possible by keeping the whitespace found before a token during a parsing.

For example, given how tokens were indented relative to each other during input, we could make some guesses about how they'd like to beautifier to format them.

It looks like this would involve making skip_whitespace() return the whitespace and they tracking that through the token and the resulting AST.

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

1 participant