summaryrefslogtreecommitdiff
path: root/lib/command_lex.l
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-10-20 19:17:36 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-10-20 19:17:36 +0000
commite0a467872b307021477ea7b4ba27ffc5d20aedd0 (patch)
tree8fffc082021bac80e8e383a0b342d859e60a0a62 /lib/command_lex.l
parent0a538fc98fb662b4cf2d927ac29fd9af4a4fab03 (diff)
lib: Allow '_' in arguments to VARIABLE_TKN
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_lex.l')
-rw-r--r--lib/command_lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command_lex.l b/lib/command_lex.l
index 5c709dce22..b9b6582788 100644
--- a/lib/command_lex.l
+++ b/lib/command_lex.l
@@ -30,7 +30,7 @@ extern void cleanup_lexer (void);
YY_BUFFER_STATE buffer;
%}
-WORD (\-|\+)?[a-z\*][-+_a-zA-Z0-9\*]*
+WORD (\-|\+)?[a-z\*][-+a-zA-Z0-9\*_]*
IPV4 A\.B\.C\.D
IPV4_PREFIX A\.B\.C\.D\/M
IPV6 X:X::X:X