Add note to EOF error
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Fri, 2 Sep 2011 00:54:48 +0000 (20:54 -0400)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Fri, 2 Sep 2011 00:54:48 +0000 (20:54 -0400)
Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
parser.rl

index 45744fd..36d09af 100644 (file)
--- a/parser.rl
+++ b/parser.rl
@@ -210,7 +210,7 @@ void parser(const char *filename, inapt_block *top_block)
     }
 
     if (cs < inapt_first_final)
-        badsyntax(curfile, curline, 0, "Unexpected EOF");
+        badsyntax(curfile, curline, 0, "Unexpected EOF (forgot semicolon?)");
 
     if (top)
         badsyntax(curfile, curline, 0, "Unclosed block at EOF");