From 9b7eb3e9df344c718825b91df4c089525282a8c0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 20 Feb 2016 00:11:46 -0500 Subject: Improve error when expecting EOF --- (limited to 'parsing') diff --git a/parsing/parse.sh b/parsing/parse.sh index 56a1d39..654199b 100644 --- a/parsing/parse.sh +++ b/parsing/parse.sh @@ -401,7 +401,9 @@ parse() # If this returns (does not exit), there are no errors. while complete_command; do :; done - expect T_EOF + if ! accept T_EOF; then + synexp '' + fi get_tokens -- cgit v0.9.1