{
if (lex_token (lexer) == T_STOP)
{
- lex_error (lexer, NULL);
+ lex_error_expecting (lexer, "END IF");
break;
}
else if (lex_match_phrase (lexer, "ELSE IF"))
{
if (lex_token (lexer) == T_STOP)
{
- lex_error (lexer, NULL);
+ lex_error_expecting (lexer, "END LOOP");
ok = false;
break;
}
}
else
{
- lex_error (lexer, NULL);
+ if (command == COMB_UPDATE)
+ lex_error_expecting (lexer, "BY", "MAP", "DROP", "KEEP");
+ else
+ lex_error_expecting (lexer, "BY", "FIRST", "LAST",
+ "MAP", "DROP", "KEEP");
goto error;
}
20 | DO IF !.
| ^"
-error: DO IF: At end of input: Syntax error.
+error: DO IF: At end of input: Syntax error expecting END IF.
])
AT_CLEANUP
36 | END LOOP !.
| ^
-error: LOOP: At end of input: Syntax error.
+error: LOOP: At end of input: Syntax error expecting END LOOP.
])
AT_CLEANUP
\ No newline at end of file