[COMPILER]
* BUG: Be less tolerant with newlines in CASE expressions. git-svn-id: svn://localhost/gambas/trunk@3045 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
a02e468016
commit
483530dcff
1 changed files with 3 additions and 0 deletions
|
@ -695,6 +695,9 @@ void TRANS_case(void)
|
|||
if (i > MAX_CASE_EXPR)
|
||||
THROW("Too many expressions in CASE");
|
||||
|
||||
if (PATTERN_is_newline_end(*JOB->current))
|
||||
THROW("Unexpected end of line");
|
||||
|
||||
/*CODE_dup();
|
||||
TRANS_expression(FALSE);
|
||||
CODE_op(C_EQ, 2);*/
|
||||
|
|
Loading…
Reference in a new issue