summaryrefslogtreecommitdiff
path: root/lib/command_match.c
diff options
context:
space:
mode:
authorDaniel Walton <dwalton@cumulusnetworks.com>2017-09-14 18:07:30 +0000
committerDaniel Walton <dwalton@cumulusnetworks.com>2017-09-14 18:07:30 +0000
commitd114b977e90d09fdfe228fa7feee5a1aadec8903 (patch)
tree61a7795b833ec7a99db050c84d3dd0d533532fce /lib/command_match.c
parent461b76e4ed82f3bb3f71499cfb2025959affca9b (diff)
*: support keywords that begin with uppercase letter
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> VARIABLE tokens must be all uppercase, this allows us to support WORD tokens that begin with an uppercase letter. The "Null0" keyword is an example of where this is needed. The only VARIABLE we had that wasn't already all uppercase was ASN:nn_or_IP-address:nn
Diffstat (limited to 'lib/command_match.c')
-rw-r--r--lib/command_match.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command_match.c b/lib/command_match.c
index 62e7c63068..6384abe5ce 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -214,6 +214,7 @@ static enum matcher_rv command_match_r(struct graph_node *start, vector vline,
fprintf(stdout, "\"%-20s\" matches \"%-30s\" ? ", input_token,
token->text);
enum match_type mt = match_token(token, input_token);
+ fprintf(stdout, "type: %d ", token->type);
fprintf(stdout, "min: %d - ", minmatch);
switch (mt) {
case trivial_match: