From d114b977e90d09fdfe228fa7feee5a1aadec8903 Mon Sep 17 00:00:00 2001 From: Daniel Walton Date: Thu, 14 Sep 2017 18:07:30 +0000 Subject: *: support keywords that begin with uppercase letter Signed-off-by: Daniel Walton 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 --- lib/command_match.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/command_match.c') 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: -- cgit v1.2.3