mirror of
https://github.com/janet-lang/janet
synced 2025-11-17 15:57:12 +00:00
Update for issue #62
This commit is contained in:
@@ -552,6 +552,9 @@ void janet_parser_consume(JanetParser *parser, uint8_t c) {
|
||||
void janet_parser_eof(JanetParser *parser) {
|
||||
janet_parser_checkdead(parser);
|
||||
janet_parser_consume(parser, '\n');
|
||||
if (parser->statecount > 1) {
|
||||
parser->error = "unexpected end of source";
|
||||
}
|
||||
parser->offset--;
|
||||
parser->flag = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user