fix to previous one. The previous one did not help, this one does
This commit is contained in:
parent
c8afae83c9
commit
831cdc7580
|
@ -138,8 +138,11 @@ preprocess(fn)
|
||||||
case STSTR:
|
case STSTR:
|
||||||
case STCHAR: {
|
case STCHAR: {
|
||||||
register int stopc = c;
|
register int stopc = c;
|
||||||
|
int escaped;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
||||||
|
escaped = 0;
|
||||||
echo(c);
|
echo(c);
|
||||||
LoadChar(c);
|
LoadChar(c);
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
|
@ -156,10 +159,10 @@ preprocess(fn)
|
||||||
++LineNumber;
|
++LineNumber;
|
||||||
lineno++;
|
lineno++;
|
||||||
}
|
}
|
||||||
else if (c == '\'') continue;
|
else if (c == '\'') escaped = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (c != stopc);
|
while (escaped || c != stopc);
|
||||||
echo(c);
|
echo(c);
|
||||||
if (c == '\n')
|
if (c == '\n')
|
||||||
break; /* Don't eat # */
|
break; /* Don't eat # */
|
||||||
|
|
Loading…
Reference in a new issue