fix yacc bug (found by dan cross)
This commit is contained in:
parent
99825e22ed
commit
094fc8b15f
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue