-
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.
Enforce leading and trailing newline in blocklike constructs (#46)
This patch introduces formatting for all blocklike constructs (`if`/`try`/`function`/`begin`/`for`/`while`/...) such that inner block always start and end with a newline character. For example, ```julia if x print("x") else print("y") end ``` will be reformatted as ```julia if x print("x") else print("y") end ``` An exception is (currently) made for comments, for example ```julia if x # comment print("x") end ``` will *not* be formatted as ```julia if x # comment print("x") end ``` even though the comment is technically inside the block. Closes #35.
- Loading branch information
1 parent
c0b4d87
commit e128bc9
Showing
4 changed files
with
626 additions
and
111 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
Oops, something went wrong.