fix: unterminated \-escape
commitb801b7b670872b8a31d11b3683b4afc3e45a07f8
authorAkim Demaille <akim.demaille@gmail.com>
Sat, 8 Aug 2020 05:36:34 +0000 (8 07:36 +0200)
committerAkim Demaille <akim.demaille@gmail.com>
Sat, 8 Aug 2020 05:53:33 +0000 (8 07:53 +0200)
tree1100410a486a4213a41a3841666b33e2fd1dad63
parentb7aab2dbad43aaf14eebe78d54aafa245a000988
fix: unterminated \-escape

An assertion failed when the last character is a '\' and we're in a
character or a string.
Reported by Agency for Defense Development.
https://lists.gnu.org/r/bug-bison/2020-08/msg00009.html

* src/scan-gram.l: Catch unterminated escapes.
* tests/input.at (Unexpected end of file): New.
src/scan-gram.l
tests/input.at