Don't permit repeated DELTA or REPEATs either.

This commit is contained in:
Dianne Skoll
2015-05-27 13:21:33 -04:00
parent 61ad405b4a
commit 739a938d32

View File

@@ -453,11 +453,13 @@ static int ParseTimeTrig(ParsePtr s, TimeTrig *tim, int save_in_globals)
case T_Delta:
DBufFree(&buf);
if (tim->delta != NO_DELTA) return E_DELTA_TWICE;
tim->delta = (tok.val > 0) ? tok.val : -tok.val;
break;
case T_Rep:
DBufFree(&buf);
if (tim->rep != NO_REP) return E_REP_TWICE;
tim->rep = tok.val;
break;