Issue #12705: Raise SyntaxError when compiling multiple statements as single interactive statement

This commit is contained in:
Meador Inge 2012-01-19 01:08:41 -06:00
parent 00c7f85298
commit fa21bf015d
5 changed files with 52 additions and 0 deletions

View file

@ -2129,6 +2129,9 @@ err_input(perrdetail *err)
case E_IDENTIFIER:
msg = "invalid character in identifier";
break;
case E_BADSINGLE:
msg = "multiple statements found while compiling a single statement";
break;
default:
fprintf(stderr, "error=%d\n", err->error);
msg = "unknown parsing error";