aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authortjohnes <tom@johnes.me>2021-10-25 09:59:45 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-11-24 18:45:09 -0800
commita130eac7857512db50320fb1c64079b0d696885d (patch)
treef886cd204f4e5d6657161f3d8f26cbfd18e1c4ca /src/Compilation.zig
parent36c8adf58922d8e357bbaf7ce914cfd4b7b56354 (diff)
downloadzig-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/Compilation.zig')
0 files changed, 0 insertions, 0 deletions