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);
|
||||
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");
|
||||
|
|
Loading…
Reference in a new issue