diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-04 18:39:15 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-08-04 18:39:15 +0200 |
commit | ef955a80a635f5fb821a640f7e1d7aaac8ec5e5e (patch) | |
tree | 8320bcdb4b0f2ef96dac5925e4206135cb24a75f /lib/command_lex.l | |
parent | lib: Add support for negative ranges (diff) | |
download | frr-ef955a80a635f5fb821a640f7e1d7aaac8ec5e5e.tar.xz frr-ef955a80a635f5fb821a640f7e1d7aaac8ec5e5e.zip |
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 0a997de8d..47723cbf9 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 |