lix/tests/functional/lang/parse-fail-eof-in-string.err.exp
pennae a2bf8a66a2 diagnose "unexpected EOF" at EOF
this needs a string comparison because there seems to be no other way to
get that information out of bison. usually the location info is going to
be correct (pointing at a bad token), but since EOF isn't a token as
such it'll be wrong in that this case.

this hasn't shown up much so far because a single line ending *is* a
token, so any file formatted in the usual manner (ie, ending in a line
ending) would have its EOF position reported correctly.
2024-02-26 15:49:57 +01:00

6 lines
193 B
Plaintext

error: syntax error, unexpected end of file, expecting '"'
at «stdin»:3:6:
2| # Note that this file must not end with a newline.
3| a 1"$
| ^