This patch removes trailing semicolons in blocklike contexts (for, if, ...). Semicolons are left alone in top level contexts since they are sometimes used there for output suppression (e.g. Documenter examples or scripts that are copy-pasted/included in the REPL).
Semicolons before comments are replaced with a single space instead of removed so that if the comments are aligned before, they will be aligned after, for example
This patch removes trailing semicolons in blocklike contexts (
for
,if
, ...). Semicolons are left alone in top level contexts since they are sometimes used there for output suppression (e.g. Documenter examples or scripts that are copy-pasted/included in the REPL).Semicolons before comments are replaced with a single space instead of removed so that if the comments are aligned before, they will be aligned after, for example
will become