Fix for issue in new parser where no error would be reported if the very

first token is an error. Fixes #1239.
This commit is contained in:
ridiculousfish
2014-01-14 00:38:55 -08:00
parent dc8014562b
commit ff5e2746da
2 changed files with 11 additions and 10 deletions

View File

@@ -2453,6 +2453,7 @@ static void test_new_parser_errors(void)
tests[] =
{
{L"echo 'abc", parse_error_tokenizer_unterminated_quote},
{L"'", parse_error_tokenizer_unterminated_quote},
{L"echo (abc", parse_error_tokenizer_unterminated_subshell},
{L"end", parse_error_unbalancing_end},