diff options
Diffstat (limited to 'Src/parse.c')
-rw-r--r-- | Src/parse.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/Src/parse.c b/Src/parse.c index 5e90984ac..4f79b2e4b 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -799,10 +799,6 @@ par_cmd(int *complex) par_funcdef(); cmdpop(); break; - case TIME: - *complex = 1; - par_time(); - break; case DINBRACK: cmdpush(CS_COND); par_dinbrack(); @@ -813,6 +809,20 @@ par_cmd(int *complex) ecstr(tokstr); yylex(); break; + case TIME: + { + static int inpartime = 0; + + if (!inpartime) { + *complex = 1; + inpartime = 1; + par_time(); + inpartime = 0; + break; + } + } + tok = STRING; + /* fall through */ default: { int sr; |