-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix underflows when formatting certain call chains
For certain call chains the formatter wouldn't reset the indentation correctly, resulting in an underflow for the indent count. Changelog: fixed
- Loading branch information
1 parent
63086b2
commit b3cc7cf
Showing
3 changed files
with
48 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
fn foo { | ||
aaa.aaaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.cccc('aaaaaaaa').cccc('aaa').cccc(aaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) | ||
100 | ||
} | ||
|
||
fn bar { | ||
aaa.aaaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.cccc('aaaaaaaa').cccc('aaa').cccc(aaaa) | ||
100 | ||
} | ||
|
||
fn baz { | ||
# line | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
fn foo { | ||
aaa | ||
.aaaaaaaaaaaaaaaaa | ||
.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | ||
.cccc('aaaaaaaa') | ||
.cccc('aaa') | ||
.cccc( | ||
aaaa, | ||
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, | ||
) | ||
100 | ||
} | ||
|
||
fn bar { | ||
aaa | ||
.aaaaaaaaaaaaaaaaa | ||
.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb | ||
.cccc('aaaaaaaa') | ||
.cccc('aaa') | ||
.cccc(aaaa) | ||
100 | ||
} | ||
|
||
fn baz { | ||
# line | ||
} |