You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: