c: Detect more unterminated strings.
authorBen Harris <bjh21@bjh21.me.uk>
Thu, 30 May 2019 20:44:48 +0000 (21:44 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Thu, 30 May 2019 20:44:48 +0000 (21:44 +0100)
commit471535e485a18c8a1320ee4765260ddf1c2060e5
tree3f18f51b086f58117b204f192d4cade91d1bab34
parenta003046c8d1566ebce4a5b18be1cb6ca8c9b4ffd
c: Detect more unterminated strings.

I split the string-recognizing part of the read_atom regexp in two, one
part for recognising valid strings (using a fragment of the tokenising
regexp) and another to recognize invalid strings.  This follows the
practice of other implementations with a single read_atom regexp.
c/reader.c