Comment after if condition results in incorrect code
If I put a comment after the condition in a three-line if/then/else expression, purty will move the then
into the comment. For example:
if foo --Some comment
then bar
else baz
will be formatted to:
if foo --Some comment then
bar
else
baz
which doesn't compile. It should be:
if foo then --Some comment
bar
else
baz
Edited to add: version is 4.5.2
Edited by Charles Frayne