diff options
-rw-r--r-- | eshtrans/frontend/parser.esh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/eshtrans/frontend/parser.esh b/eshtrans/frontend/parser.esh index e967fc7..d18abee 100644 --- a/eshtrans/frontend/parser.esh +++ b/eshtrans/frontend/parser.esh @@ -364,14 +364,11 @@ until_clause() function_body() { ptrace_begn function_body - if accept T_LBRACE; then - inject T_FN_START - if ! compound_list; then - ptrace_fail function_body - return 1 - fi + inject T_LBRACE + inject T_FN_START + if compound_command; then inject T_FN_END - expect T_RBRACE + inject T_RBRACE ptrace_pass function_body return 0 fi |