Open Techatrix opened 3 months ago
This bug also bite me, does this mean we are not allowed to use tab in multi line string?
does this mean we are not allowed to use tab in multi line string?
Yes, see https://github.com/ziglang/zig-spec/issues/38 for details.
The unhelpful error also occurs when a comment has an invalid byte.
Zig Version
0.14.0-dev.764+eb1a199df
Steps to Reproduce and Observed Output
Running
zig fmt --check example.zig
outputs:This message had me so confused that I though that there was a bug in the parser or tokenizer. Luckily it was just #20885 rejecting tabs inside multiline string literals.
Expected Output
I would expect an error message that does fulfills these requirements:
Something like this: