ref: 094fc8b15f98807833143e29f1f7d36a1ca4b28c
parent: 99825e22ed403c8636751238743d01a1b143f8e2
author: aiju <devnull@localhost>
date: Fri Apr 21 13:16:44 EDT 2017
fix yacc bug (found by dan cross)
--- a/sys/src/cmd/yacc.c
+++ b/sys/src/cmd/yacc.c
@@ -2101,11 +2101,12 @@
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");