Closed bwRavencl closed 3 weeks ago
Maybe a similar problem like what was fixed for the NaiveASTFlattener (but for some reasons did not make it into the distribution)? Didn't check, though...
Maybe a similar problem like what was fixed for the NaiveASTFlattener (but for some reasons did not make it into the distribution)? Didn't check, though...
It is very unlikely to be related to that. I think this originates from 's use as unnamed variable - a very recent feature - earlier the scanner would classify as an identifier. Not now. I think some code is not adapted to deal with the new token type.
I'll investigate
Description
This issue first appeared with Eclipse >= 4.32 and is also present in 4.33.
The formatter seems to add a superfluous space when a conditional statement (
if
orwhile
) follows directly after a try-catch block with an unnamed variable.It can be observed with the
Eclipse [built-in]
formatter config and custom configs.Example
Input:
Output (after formatter is applied):