-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop trailing semicolons in block contexts (#47)
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 ```julia begin x = 1; # This is x y = 2 # This is y end ``` will become ```julia begin x = 1 # This is x y = 2 # This is y end ``` Closes #34.
- Loading branch information
1 parent
92a8d73
commit d4431f1
Showing
3 changed files
with
217 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters