unhelpful error message on invalid bytes inside multi line string literal #20900
Labels
error message
This issue points out an error message that is unhelpful and should be improved.
regression
It worked in a previous version of Zig, but stopped working.
Milestone
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:
The text was updated successfully, but these errors were encountered: