-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indent according to parent depth, even with trailing text
Previously we had custom logic to handle hanging arguments. foo($x, $y); This was getting confused by other forms of trailing text after parens: if (true) { // hello foo(); } foo() should not line up with { here. This heuristic isn't useful, because hackfmt only uses the following two forms: foo($x, $y); // or foo( $x, $y, ); Remove this heuristic. This also solves most of #29.
- Loading branch information
Showing
2 changed files
with
11 additions
and
20 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