This repository has been archived by the owner on Sep 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more careful when printing type parameter lists
This commit fixes some problems in the code, related to printing type parameter lists: It is no longer assumed, that the user prefers `A, B` over `A,B`, even if the original source code uses `A,B`. Also, layout splitting used to mess with the code, if newlines and comments where involved. This issue is addressed by adapting a few regular expressions in `LayoutHelper`, as well as by changing the order in which they are matched. Note that this commit replaces ", " with "," in quite a few places, since " " should now be part of the arguments themselves if it is needed. Each of these changes was motivated by failing unit tests. Since there are still lots of hard coded ", " in the library, we might see additional replacements of this type in the future. Fixes #1002618
- Loading branch information
Showing
3 changed files
with
12 additions
and
13 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