summaryrefslogtreecommitdiff
path: root/glcpp-lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'glcpp-lex.l')
-rw-r--r--glcpp-lex.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/glcpp-lex.l b/glcpp-lex.l
index 8e3ab661e6..13e4d6f0ef 100644
--- a/glcpp-lex.l
+++ b/glcpp-lex.l
@@ -173,7 +173,12 @@ TOKEN [^[:space:](),]+
}
\n {
+ /* XXX: Printing here (rather than in a parser production)
+ * *and* frobbing a bit of the parser state here are both ugly
+ * things. But all my attempts to avoid this by returning a
+ * NEWLINE token here have led to even more ugly things. */
printf ("\n");
+ yyextra->just_printed_separator = 1;
}
{HSPACE}+