-
Notifications
You must be signed in to change notification settings - Fork 10
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
Adds duplicated placeholder code for second iteration of Cypher formatter #353
base: main
Are you sure you want to change the base?
Conversation
|
Description
This introduces the first draft of the second iteration of the cypher formatter, intended to be able to handle line breaks in a reasonably good way. The PR does not change any of the existing files, and instead creates new files with a "v2" extension that are copies of the old files, with new changes introduced. This is done because of the following reasons:
Given that the files are fully copied, the easiest way to review is probably to check this out locally and open a diff view in your editor of choice, e.g.
since otherwise everything will look like a change.
Changes (v2 compared to v1)
This PR introduces significant architectural changes to the formatter, since that is necessary for the line break logic. Much of it is inspired by this blog post
Chunks
A simplified overview of the flow from source code to formatted source code would be something like this:
Testing