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

Refactor whitespace rules code #10

Open
DTW-DanWard opened this issue Jun 19, 2017 · 1 comment
Open

Refactor whitespace rules code #10

DTW-DanWard opened this issue Jun 19, 2017 · 1 comment

Comments

@DTW-DanWard
Copy link
Owner

Refactor code that identifies whether or not to add whitespace (currently not ideal for adding user-configurable options). Change to lambda-based design...?

@DTW-DanWard
Copy link
Owner Author

Needs a lot of experiments in conjunction with AST. Rules/rule processing should be along the lines of TokenPrev (some bool logic), TokenCurr (some bool logic), TokenNext (some bool logic) and should also be able to handle override contexts, like alignment around = within hashtables (including nested hashtables) and other scenarios (collapsing short statements? Or just apply those first?)

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