From 11f18457d229b84c3532c15c9080235e85d26866 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 23 Apr 2018 13:45:08 +0100 Subject: Allow short loops with "while" --- Src/parse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Src/parse.c') diff --git a/Src/parse.c b/Src/parse.c index 47e5a246a..83383f10c 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -1510,8 +1510,10 @@ par_while(int *cmplx) if (tok != ZEND) YYERRORV(oecused); zshlex(); - } else + } else if (unset(SHORTLOOPS)) { YYERRORV(oecused); + } else + par_save_list1(cmplx); ecbuf[p] = WCB_WHILE(type, ecused - 1 - p); } -- cgit 1.4.1