summaryrefslogtreecommitdiff
path: root/conf/gen_parser.m4
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-01-03 19:09:51 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2023-01-03 19:11:34 +0100
commitd1cd5e5a63b2256eb71661f7438537e4ded7b01a (patch)
tree81f2b36c52aa74a6cbaf0fa29b193639fc527510 /conf/gen_parser.m4
parent309c874f9c8b217dbed1569c73b4a3035f5cb170 (diff)
BGP: Allow role specific keywords to be used as symbols
Some of these new BGP role keywords use generic names that collides with user-defined symbols. Allow them to be redefined. Also remove duplicit keyword definition for 'prefer'.
Diffstat (limited to 'conf/gen_parser.m4')
-rw-r--r--conf/gen_parser.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/gen_parser.m4 b/conf/gen_parser.m4
index 5b378a93..af4b1455 100644
--- a/conf/gen_parser.m4
+++ b/conf/gen_parser.m4
@@ -31,7 +31,7 @@ m4_define(CF_iterate, `m4_define([[CF_iter]], m4_defn([[$1]]))CF_itera($2)')
# Keywords act as untyped %token
m4_define(CF_keywd, `m4_ifdef([[CF_tok_$1]],,[[m4_define([[CF_tok_$1]],1)m4_define([[CF_toks]],CF_toks $1)]])')
-m4_define(CF_KEYWORDS, `m4_define([[CF_toks]],[[]])CF_iterate([[CF_keywd]], [[$@]])m4_ifelse(CF_toks,,,%token[[]]CF_toks
+m4_define(CF_KEYWORDS, `m4_define([[CF_toks]],[[]])CF_iterate([[CF_keywd]], [[$@]])m4_ifelse(CF_toks,,,%token<s>[[]]CF_toks
)DNL')
# CLI commands