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); c = Bgetrune(finput);
if(c == '\n') if(c == '\n')
lineno++; lineno++;
} else } else {
if(c == match) if(c == match)
goto lcopy; goto lcopy;
if(c == '\n') if(c == '\n')
error("newline in string or char. const."); error("newline in string or char. const.");
}
Bputrune(faction, c); Bputrune(faction, c);
} }
error("EOF in string or character constant"); error("EOF in string or character constant");