summaryrefslogtreecommitdiff
path: root/lib/command_parse.y
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-07-07 13:31:08 -0400
committerGitHub <noreply@github.com>2017-07-07 13:31:08 -0400
commitceae5559a51b79ae86cfcae52d9ef512f36e3eb1 (patch)
tree0dbfcf927f26651c906ccd0db434be789427b66b /lib/command_parse.y
parent6ce6de887f53cbffa5bca7a02ef218d9776bb57a (diff)
parent007b0667e00fde98ccac07680291f5845e5da806 (diff)
Merge pull request #778 from qlyoung/fix-excess-docstring
Fix excess docstring
Diffstat (limited to 'lib/command_parse.y')
-rw-r--r--lib/command_parse.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y
index 3337481094..ba042c33be 100644
--- a/lib/command_parse.y
+++ b/lib/command_parse.y
@@ -443,6 +443,14 @@ terminate_graph (CMD_YYLTYPE *locp, struct parser_ctx *ctx,
struct graph_node *end_element_node =
graph_new_node (ctx->graph, element, NULL);
+ if (ctx->docstr && strlen (ctx->docstr) > 1) {
+ zlog_debug ("Excessive docstring while parsing '%s'", ctx->el->string);
+ zlog_debug ("----------");
+ while (ctx->docstr && ctx->docstr[1] != '\0')
+ zlog_debug ("%s", strsep(&ctx->docstr, "\n"));
+ zlog_debug ("----------\n");
+ }
+
graph_add_edge (finalnode, end_token_node);
graph_add_edge (end_token_node, end_element_node);
}