diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/scanner.l | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/scanner.l b/src/scanner.l index e373ff84..d09189ae 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -370,11 +370,13 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr}) "rate" { return RATE; } "burst" { return BURST; } } -"until" { return UNTIL; } -"over" { return OVER; } +<SCANSTATE_CT,SCANSTATE_LIMIT,SCANSTATE_QUOTA>"over" { return OVER; } "quota" { scanner_push_start_cond(yyscanner, SCANSTATE_QUOTA); return QUOTA; } -<SCANSTATE_QUOTA>"used" { return USED; } +<SCANSTATE_QUOTA>{ + "used" { return USED; } + "until" { return UNTIL; } +} "second" { return SECOND; } "minute" { return MINUTE; } |