unison/unison-src/transcripts/generic-parse-errors.output.md
Greg Pfeil 0031542faf
Add a space before code block info strings
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.
2024-07-10 13:56:07 -06:00

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