diff options
| author | tjohnes <tom@johnes.me> | 2021-10-25 09:59:45 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-11-24 18:45:09 -0800 |
| commit | a130eac7857512db50320fb1c64079b0d696885d (patch) | |
| tree | f886cd204f4e5d6657161f3d8f26cbfd18e1c4ca /src | |
| parent | 36c8adf58922d8e357bbaf7ce914cfd4b7b56354 (diff) | |
| download | zig-a130eac7857512db50320fb1c64079b0d696885d.tar.gz zig-a130eac7857512db50320fb1c64079b0d696885d.zip | |
zig fmt: fix formatting for single-line containers with comments
* Fixes #8810.
* Prevent a single-line container declaration if it contains a comment
or multiline string.
* If a container declaration cannot be single-line, ensure container
fields are rendered with a trailing comma.
* If `Space.comma` is passed to `renderExpressionComma` or
`renderTokenComma`, and there already exists a comma in the source,
then render one comma instead of two.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
