summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--yacc/reader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/yacc/reader.c b/yacc/reader.c
index 9902d852a..40277a9a7 100644
--- a/yacc/reader.c
+++ b/yacc/reader.c
@@ -779,6 +779,7 @@ get_tag(void)
while (1) {
c = *++cptr;
if (c == EOF) unexpected_EOF();
+ if (c == '\n') syntax_error(lineno, line, cptr);
if (c == '>' && cptr[-1] != '-') break;
cachec(c);
}