diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-02-27 00:26:25 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-02-27 00:27:53 -0700 |
| commit | 3f844cba0b601186bb20efa6090e944b9267f538 (patch) | |
| tree | 1fe8a2020b0bf8293bfbea43a8a6835eeac4eb8e /src/codegen | |
| parent | 081698156141ba16a168d9448b9883c0f5a3edd0 (diff) | |
| download | zig-3f844cba0b601186bb20efa6090e944b9267f538.tar.gz zig-3f844cba0b601186bb20efa6090e944b9267f538.zip | |
std.zig.fmt escaped string formatting recognizes single quote style
This introduces {'} to indicate escape for a single-quoted string,
and {} to indicate escape for a double quoted string.
Without this, there would be unnecessary \' inside double quoted
strings, and unnecessary \" inside single quoted strings.
Motivated by the llvm12 branch, in the new tool I am writing for
updating target CPU features.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
