mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 01:37:53 +00:00
lib: Allow '_' in arguments to VARIABLE_TKN
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
0a538fc98f
commit
e0a467872b
1854
command_lex.c
Normal file
1854
command_lex.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -30,7 +30,7 @@ extern void cleanup_lexer (void);
|
|||||||
YY_BUFFER_STATE buffer;
|
YY_BUFFER_STATE buffer;
|
||||||
%}
|
%}
|
||||||
|
|
||||||
WORD (\-|\+)?[a-z\*][-+_a-zA-Z0-9\*]*
|
WORD (\-|\+)?[a-z\*][-+a-zA-Z0-9\*_]*
|
||||||
IPV4 A\.B\.C\.D
|
IPV4 A\.B\.C\.D
|
||||||
IPV4_PREFIX A\.B\.C\.D\/M
|
IPV4_PREFIX A\.B\.C\.D\/M
|
||||||
IPV6 X:X::X:X
|
IPV6 X:X::X:X
|
||||||
|
@ -838,7 +838,7 @@ match_word (struct cmd_token *token, const char *word)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define VARIABLE_ALPHABET \
|
#define VARIABLE_ALPHABET \
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890:/."
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890:/._"
|
||||||
|
|
||||||
static enum match_type
|
static enum match_type
|
||||||
match_variable (struct cmd_token *token, const char *word)
|
match_variable (struct cmd_token *token, const char *word)
|
||||||
|
Loading…
Reference in New Issue
Block a user