Skip to content

Commit

Permalink
lib: parser: accept number-only word tokens
Browse files Browse the repository at this point in the history
There seems to be no reason why numbers don't work as plain word tokens;
this is useful to have "number choices" or constants, e.g. <128|192|256>
for bit encryption lengths.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
  • Loading branch information
eqvinox committed Dec 16, 2016
1 parent a6cf5da commit bca1a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/command_lex.l
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "command_parse.h"
%}

WORD (\-|\+)?[a-z\*][-+_a-zA-Z0-9\*]*
WORD (\-|\+)?[a-z0-9\*][-+_a-zA-Z0-9\*]*
IPV4 A\.B\.C\.D
IPV4_PREFIX A\.B\.C\.D\/M
IPV6 X:X::X:X
Expand Down

0 comments on commit bca1a30

Please sign in to comment.