Skip to content

[wip] Autoformatter#2560

Closed
GKFX wants to merge 6 commits into
processing:masterfrom
GKFX:autoform2
Closed

[wip] Autoformatter#2560
GKFX wants to merge 6 commits into
processing:masterfrom
GKFX:autoform2

Conversation

@GKFX
Copy link
Copy Markdown
Contributor

@GKFX GKFX commented Jun 4, 2014

Fix #2540, #1041, and lack of EOF checking. Also tried to continue neatening and commenting code. I find it amusing that I am fixing a bug that should have been spotted before I was born (the EOF one).

GKFX added 3 commits June 4, 2014 14:45
Miscellaneous fixes. I broke the indent-on-continued-lines feature, but it
was bad to start with.
This wraps up my changes to the autoformatter.
@GKFX
Copy link
Copy Markdown
Contributor Author

GKFX commented Jun 5, 2014

After some thought, I realised that there is a small bug in my new indent algorithm, so that I think it will produce the following:
arrayCopy(new byte[] {
1, 2, 3}, x);
with no indent, because the curly bracket "ends" the statement. I will come up with a method involving the curlyLvl to fix it.

@GKFX
Copy link
Copy Markdown
Contributor Author

GKFX commented Jun 5, 2014

Sorry, that should have been
arrayCopy(new byte[]{}
);.

@GKFX GKFX changed the title Autoform2 Autoformatter Jun 6, 2014
@GKFX GKFX closed this Jun 7, 2014
Am commiting before attempting to fix by mass deletion of code.
@GKFX GKFX changed the title Autoformatter [wip] Autoformatter Aug 25, 2014
@GKFX GKFX reopened this Aug 25, 2014
This adds proper support for indents caused by continuing to a new line, allows arrays to be expressed in more compact form, prevents the final line being eaten if it isn't properly ended, and neatens code.
@GKFX GKFX force-pushed the autoform2 branch 2 times, most recently from 9a6160e to eb8b08c Compare September 28, 2014 17:47
@benfry
Copy link
Copy Markdown
Contributor

benfry commented Nov 14, 2014

Doing some cleanup here, so closing this one since it's WIP. Please re-submit when it's ready to go.

@benfry benfry closed this Nov 14, 2014
@GKFX GKFX mentioned this pull request Dec 6, 2014
@github-actions
Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autoformat deletes the last line of this code.

2 participants