Strings and character constants now stop at end-of-line, unless escaped
by a backslash
This commit is contained in:
parent
f3b298586f
commit
85830c5f63
|
@ -122,18 +122,23 @@ preprocess(fn)
|
|||
do {
|
||||
echo(c);
|
||||
LoadChar(c);
|
||||
if (c == '\\') {
|
||||
echo(c);
|
||||
LoadChar(c);
|
||||
}
|
||||
if (c == '\n') {
|
||||
++LineNumber;
|
||||
lineno++;
|
||||
break;
|
||||
}
|
||||
else if (c == EOI) {
|
||||
flush(op-_obuf);
|
||||
return;
|
||||
}
|
||||
if (c == '\\') {
|
||||
echo(c);
|
||||
LoadChar(c);
|
||||
if (c == '\n') {
|
||||
++LineNumber;
|
||||
lineno++;
|
||||
}
|
||||
}
|
||||
}
|
||||
while (c != stopc);
|
||||
echo(c);
|
||||
|
|
Loading…
Reference in a new issue