fix yacc bug (found by dan cross)

This commit is contained in:
aiju 2017-04-21 17:16:44 +00:00
parent 99825e22ed
commit 094fc8b15f

View file

@ -2101,11 +2101,12 @@ swt:
c = Bgetrune(finput);
if(c == '\n')
lineno++;
} else
} else {
if(c == match)
goto lcopy;
if(c == '\n')
error("newline in string or char. const.");
}
Bputrune(faction, c);
}
error("EOF in string or character constant");