From 483a8a9be50f2848f0a79a6e3172417567282b05 Mon Sep 17 00:00:00 2001 From: Wang Renxin Date: Tue, 20 Oct 2015 10:03:27 +0800 Subject: [PATCH] *improved error handling. --- core/my_basic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/my_basic.c b/core/my_basic.c index a4e0feb..42427b7 100755 --- a/core/my_basic.c +++ b/core/my_basic.c @@ -6809,6 +6809,9 @@ int mb_attempt_close_bracket(struct mb_interpreter_t* s, void** l) { _handle_error_on_obj(s, SE_RN_CLOSE_BRACKET_EXPECTED, 0, DON(ast), MB_FUNC_ERR, _exit, result); } ast = ast->next; + if(_IS_FUNC(ast->data, _core_open_bracket)) { + _handle_error_on_obj(s, SE_RN_SYNTAX, 0, DON(ast), MB_FUNC_ERR, _exit, result); + } _exit: *l = ast;