diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-02-20 00:11:46 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-02-20 00:11:46 (EST) |
commit | 9b7eb3e9df344c718825b91df4c089525282a8c0 (patch) | |
tree | 8ef17b83f5d8ffde54aa528af76b2e225d468d27 | |
parent | b10d0a07d4ee734ad1dd1e32924687b21f6bbb21 (diff) | |
download | eggshell-9b7eb3e9df344c718825b91df4c089525282a8c0.zip eggshell-9b7eb3e9df344c718825b91df4c089525282a8c0.tar.gz eggshell-9b7eb3e9df344c718825b91df4c089525282a8c0.tar.bz2 |
Improve error when expecting EOF
-rw-r--r-- | parsing/parse.sh | 4 |
1 files changed, 3 insertions, 1 deletions
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 |