From 9f7b248ef91b002b6a43429049fc41401af8bb2a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 23 Feb 2016 02:10:46 -0500 Subject: eshtrans/frontend: Accept any compound command in function body --- (limited to 'eshtrans/frontend/parser.esh') 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 -- cgit v0.9.1