mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
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.
21 lines
282 B
Text
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.
|