mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-17 13:27:30 +03:00
0031542faf
This is for consistency with the `cmark` style. Now the blocks we still pretty-print ourselves will match the bulk of them that `cmark` produces.
1.5 KiB
1.5 KiB
Just a bunch of random parse errors to test the error formatting.
x =
foo.123
Loading changes detected in scratch.u.
I got confused here:
2 | foo.123
I was surprised to find a 1 here.
I was expecting one of these instead:
* end of input
* hash (ex: #af3sj3)
* identifier (ex: abba1, snake_case, .foo.bar#xyz, .foo.++#xyz, or 🌻)
namespace.blah = 1
Loading changes detected in scratch.u.
The identifier `namespace` used here is a reserved keyword:
1 | namespace.blah = 1
You can avoid this problem either by renaming the identifier
or wrapping it in backticks (like `namespace` ).
x = 1 ]
Loading changes detected in scratch.u.
I found a closing ']' here without a matching '['.
1 | x = 1 ]
x = a.#abc
Loading changes detected in scratch.u.
I got confused here:
1 | x = a.#abc
I was surprised to find a '.' here.
x = "hi
Loading changes detected in scratch.u.
I got confused here:
1 | x = "hi
I was surprised to find an end of input here.
I was expecting one of these instead:
* "
* \s
* literal character
y : a
Loading changes detected in scratch.u.
I got confused here:
1 | y : a
I was surprised to find an end of section here.
I was expecting one of these instead:
* ->
* newline or semicolon