From a9c98552fcdd38279d98e3ecf550d3ec01cbee30 Mon Sep 17 00:00:00 2001 From: ggujjula <43194746+ggujjula@users.noreply.github.com> Date: Thu, 6 Jan 2022 16:17:54 -0600 Subject: [PATCH] Set the default rule as having a newline so that it will trigger the yylineno parsing code when the default action is taken. --- src/parse.y | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parse.y b/src/parse.y index 3b8fb9cc4..99dafe945 100644 --- a/src/parse.y +++ b/src/parse.y @@ -130,6 +130,8 @@ goal : initlex sect1 sect1end sect2 initforrule */ default_rule = num_rules; + rule_has_nl[default_rule] = true; + finish_rule( def_rule, false, 0, 0, 0); for ( i = 1; i <= lastsc; ++i )