diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-04 16:39:15 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-04 16:39:15 +0000 |
| commit | ef955a80a635f5fb821a640f7e1d7aaac8ec5e5e (patch) | |
| tree | 8320bcdb4b0f2ef96dac5925e4206135cb24a75f /lib/command_lex.l | |
| parent | 5a8bbed0b1e9b22526fd23946593f47487709497 (diff) | |
lib: Allow optional whitespace in ranges
Makes ranges where both endpoints are negative
somewhat more readable. Also validate ranges.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_lex.l')
| -rw-r--r-- | lib/command_lex.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_lex.l b/lib/command_lex.l index 0a997de8df..47723cbf91 100644 --- a/lib/command_lex.l +++ b/lib/command_lex.l @@ -11,7 +11,7 @@ IPV6 X:X::X:X IPV6_PREFIX X:X::X:X\/M VARIABLE [A-Z][-_a-zA-Z:0-9]+ NUMBER [-|+]?[0-9]{1,20} -RANGE \({NUMBER}\-{NUMBER}\) +RANGE \({NUMBER}[ ]?\-[ ]?{NUMBER}\) /* yytext shall be a pointer */ %pointer |
