Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actually add trailing commas to collection literals even if there are…
… terminating comments (#3393) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Richard Si <sichard26@gmail.com>
- Loading branch information
1 parent
ea5293b
commit ff53fc1
Showing
6 changed files
with
114 additions
and
21 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
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,55 @@ | ||
e = { | ||
"a": fun(msg, "ts"), | ||
"longggggggggggggggid": ..., | ||
"longgggggggggggggggggggkey": ..., "created": ... | ||
# "longkey": ... | ||
} | ||
f = [ | ||
arg1, | ||
arg2, | ||
arg3, arg4 | ||
# comment | ||
] | ||
g = ( | ||
arg1, | ||
arg2, | ||
arg3, arg4 | ||
# comment | ||
) | ||
h = { | ||
arg1, | ||
arg2, | ||
arg3, arg4 | ||
# comment | ||
} | ||
|
||
# output | ||
|
||
e = { | ||
"a": fun(msg, "ts"), | ||
"longggggggggggggggid": ..., | ||
"longgggggggggggggggggggkey": ..., | ||
"created": ..., | ||
# "longkey": ... | ||
} | ||
f = [ | ||
arg1, | ||
arg2, | ||
arg3, | ||
arg4, | ||
# comment | ||
] | ||
g = ( | ||
arg1, | ||
arg2, | ||
arg3, | ||
arg4, | ||
# comment | ||
) | ||
h = { | ||
arg1, | ||
arg2, | ||
arg3, | ||
arg4, | ||
# comment | ||
} |
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