*fixed a bug of the EXIT statement with multiple line IF statement.

This commit is contained in:
Wang Renxin 2016-02-11 22:04:49 +08:00
parent 4ba4af6853
commit 03ab021597

View File

@ -12369,8 +12369,11 @@ _exit:
ast = ast->prev;
} else {
if(multi_line) {
int ret = MB_FUNC_OK;
if(skip)
result = _skip_struct(s, &ast, _core_if, _core_endif);
ret = _skip_struct(s, &ast, _core_if, _core_endif);
if(result != MB_FUNC_END && result != MB_LOOP_BREAK && result != MB_LOOP_CONTINUE && result != MB_SUB_RETURN)
result = ret;
}
}