-
Notifications
You must be signed in to change notification settings - Fork 901
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix indentation issue of secont and following lines in multiline comm…
…ent (enhanced1)
- Loading branch information
1 parent
98f2347
commit a36bcfa
Showing
6 changed files
with
242 additions
and
47 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,47 @@ | ||
// rustfmt-hard_tabs: true | ||
// Ensure multiline comments are indented properly, | ||
// including when second line is prefixed by tab or at the beginning of the line | ||
|
||
/* First comment line | ||
* second comment line - no prefix | ||
* last comment line */ | ||
|
||
/* First comment line | ||
* second comment line - blank prefix | ||
* last comment line */ | ||
|
||
/* First comment line | ||
* second comment line - tab prefix | ||
* last comment line */ | ||
|
||
/* First comment line | ||
* second comment line - blank prefix | ||
* last comment line - no prefix */ | ||
|
||
/* First comment line | ||
* second comment line - blank prefix | ||
* last comment line */ | ||
|
||
type T1 = TT< | ||
u32, /* First comment line | ||
* second comment line - no prefix | ||
* last comment line */ | ||
>; | ||
|
||
type T2 = TT< | ||
u32, /* First comment line | ||
* second comment line - blank prefix | ||
* last comment line */ | ||
>; | ||
|
||
type T2 = TT< | ||
u32, /* First comment line | ||
* second comment line - tab prefix | ||
* last comment line */ | ||
>; | ||
|
||
type T3 = TT< | ||
u32, /* First comment line | ||
* second comment line - tab prefix | ||
* last comment 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,47 @@ | ||
// rustfmt-hard_tabs: false | ||
// Ensure multiline comments are indented properly, | ||
// including when second line is prefixed by tab or at the beginning of the line | ||
|
||
/* First comment line | ||
* second comment line - no prefix | ||
* last comment line */ | ||
|
||
/* First comment line | ||
* second comment line - blank prefix | ||
* last comment line */ | ||
|
||
/* First comment line | ||
* second comment line - tab prefix | ||
* last comment line */ | ||
|
||
/* First comment line | ||
* second comment line - blank prefix | ||
* last comment line - no prefix */ | ||
|
||
/* First comment line | ||
* second comment line - blank prefix | ||
* last comment line */ | ||
|
||
type T1 = TT< | ||
u32, /* First comment line | ||
* second comment line - no prefix | ||
* last comment line */ | ||
>; | ||
|
||
type T2 = TT< | ||
u32, /* First comment line | ||
* second comment line - blank prefix | ||
* last comment line */ | ||
>; | ||
|
||
type T2 = TT< | ||
u32, /* First comment line | ||
* second comment line - tab prefix | ||
* last comment line */ | ||
>; | ||
|
||
type T3 = TT< | ||
u32, /* First comment line | ||
* second comment line - tab prefix | ||
* last comment line */ | ||
>; |
Oops, something went wrong.