diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2021-09-09 12:22:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-09 12:22:53 -0400 |
| commit | 32acb4a7adc4e7fcd72b36a124e8ec3929d79e10 (patch) | |
| tree | 59036d4eb3c66e713097fac4308da117011c37d4 /lib/command_graph.c | |
| parent | f334c88ed9675eab624728ecd6eaaff3a9b41255 (diff) | |
| parent | 3be280bb8c48de8bb71ad8b193a83a0b4eec4b62 (diff) | |
Merge pull request #9497 from opensourcerouting/cli-better-no
Diffstat (limited to 'lib/command_graph.c')
| -rw-r--r-- | lib/command_graph.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/command_graph.c b/lib/command_graph.c index c6c3840455..15c8302e63 100644 --- a/lib/command_graph.c +++ b/lib/command_graph.c @@ -388,6 +388,7 @@ static void cmd_node_names(struct graph_node *gn, struct graph_node *join, case START_TKN: case JOIN_TKN: + case NEG_ONLY_TKN: /* "<foo|bar> WORD" -> word is not "bar" or "foo" */ prevname = NULL; break; @@ -511,6 +512,9 @@ void cmd_graph_node_print_cb(struct graph_node *gn, struct buffer *buf) case JOIN_TKN: color = "#ddaaff"; break; + case NEG_ONLY_TKN: + color = "#ffddaa"; + break; case WORD_TKN: color = "#ffffff"; break; |
