icerpc / slicec

The Slice compiler library
Apache License 2.0
13 stars 5 forks source link

Snippet that ends at EOF is missing last character #590

Closed externl closed 1 year ago

externl commented 1 year ago

When you compile

module A

[a

ensuring there is no ending newline, just [aEOF, the a is missing from the snippet.

error [E002]: invalid syntax: expected one of '(' or ']', but found 'EOF'
 --> foo.slice:3:3
  |
3 | [
  |  /\
  |

Failed: Compilation failed with 1 error(s)