rcl/golden/error/parse_invalid_comment.test
Ruud van Asseldonk ef0528f9d6 Use box drawing chars for errors, fix column off-by-one
Inspired by Terraform's error output, the box drawing characters tend
to get connected in a terminal (but not IntelliJ it seems), it looks
slightly cleaner than pipes. And these code points are in Unicode since
1993, so I don't think they are particularly controversial to use
(unlike color emoji).

And now that I have to rewrite all the goldens, let's fix the column
counter too. It still counts bytes and not columns, but I'm not sure
if the way it's counted is consistent across applications. We could
the existing unicode-width dependency to count though.
2023-09-27 21:31:51 +02:00

21 lines
282 B
Text

let
weird1 = "this is allowed";
let
// But this is not.
weird2 = "oh no!";
# output:
stdin:7:1
7 │ // But this is not.
╵ ^~~~~~~~~~~~~~~~~~~
Error: A comment is not allowed here.
stdin:5:1
5 │ let
╵ ^
Note: Try inserting the comment above this instead.