*fixed a wrong multi-line enabled bug when met unexpected token.
This commit is contained in:
parent
305f698b9a
commit
94ab881209
3
HISTORY
3
HISTORY
@ -1,3 +1,6 @@
|
|||||||
|
May. 12 2017
|
||||||
|
Fixed a wrong multi-line enabled bug when met unexpected token
|
||||||
|
|
||||||
May. 10 2017
|
May. 10 2017
|
||||||
Added an mb_make_usertype_bytes macro
|
Added an mb_make_usertype_bytes macro
|
||||||
Fixed a crash bug when there's no receiver of a returned string value, thanks to Beyond07 for pointing it out
|
Fixed a crash bug when there's no receiver of a returned string value, thanks to Beyond07 for pointing it out
|
||||||
|
@ -11579,6 +11579,9 @@ int mb_attempt_func_begin(struct mb_interpreter_t* s, void** l) {
|
|||||||
ast = (_ls_node_t*)*l;
|
ast = (_ls_node_t*)*l;
|
||||||
obj = (_object_t*)ast->data;
|
obj = (_object_t*)ast->data;
|
||||||
if(!(obj->type == _DT_FUNC)) {
|
if(!(obj->type == _DT_FUNC)) {
|
||||||
|
#ifdef _MULTILINE_STATEMENT
|
||||||
|
_ls_popback(s->multiline_enabled);
|
||||||
|
#endif /* _MULTILINE_STATEMENT */
|
||||||
_handle_error_on_obj(s, SE_RN_INCOMPLETE_STRUCTURE, s->source_file, DON(ast), MB_FUNC_ERR, _exit, result);
|
_handle_error_on_obj(s, SE_RN_INCOMPLETE_STRUCTURE, s->source_file, DON(ast), MB_FUNC_ERR, _exit, result);
|
||||||
}
|
}
|
||||||
ast = ast->next;
|
ast = ast->next;
|
||||||
@ -11631,6 +11634,9 @@ int mb_attempt_open_bracket(struct mb_interpreter_t* s, void** l) {
|
|||||||
obj = (_object_t*)ast->data;
|
obj = (_object_t*)ast->data;
|
||||||
#endif /* _MULTILINE_STATEMENT */
|
#endif /* _MULTILINE_STATEMENT */
|
||||||
if(!_IS_FUNC(obj, _core_open_bracket)) {
|
if(!_IS_FUNC(obj, _core_open_bracket)) {
|
||||||
|
#ifdef _MULTILINE_STATEMENT
|
||||||
|
_ls_popback(s->multiline_enabled);
|
||||||
|
#endif /* _MULTILINE_STATEMENT */
|
||||||
_handle_error_on_obj(s, SE_RN_OPEN_BRACKET_EXPECTED, s->source_file, DON(ast), MB_FUNC_ERR, _exit, result);
|
_handle_error_on_obj(s, SE_RN_OPEN_BRACKET_EXPECTED, s->source_file, DON(ast), MB_FUNC_ERR, _exit, result);
|
||||||
}
|
}
|
||||||
ast = ast->next;
|
ast = ast->next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user