summaryrefslogtreecommitdiffstats
path: root/eshtrans/frontend/parser.esh
diff options
context:
space:
mode:
Diffstat (limited to 'eshtrans/frontend/parser.esh')
-rw-r--r--eshtrans/frontend/parser.esh12
1 files changed, 7 insertions, 5 deletions
diff --git a/eshtrans/frontend/parser.esh b/eshtrans/frontend/parser.esh
index 2607d96..9a63c03 100644
--- a/eshtrans/frontend/parser.esh
+++ b/eshtrans/frontend/parser.esh
@@ -421,12 +421,14 @@ simple_command()
return 0
elif accept T_FNAME; then
if accept T_LPAREN; then
- if accept T_TYPE; then
- expect T_NAME
- while accept T_COMMA; do
- expect T_TYPE
+ if ! accept T_VOID; then
+ if accept T_TYPE; then
expect T_NAME
- done
+ while accept T_COMMA; do
+ expect T_TYPE
+ expect T_NAME
+ done
+ fi
fi
expect T_RPAREN
if linebreak && function_body; then