Fixed bug
This commit is contained in:
parent
49f8a5a61b
commit
8998e56069
|
@ -69,6 +69,28 @@ skipline()
|
|||
|
||||
LoadChar(c);
|
||||
while (class(c) != STNL && c != EOI) {
|
||||
if (class(c) == STSTR || class(c) == STCHAR) {
|
||||
register int stopc = c;
|
||||
int escaped;
|
||||
do {
|
||||
escaped = 0;
|
||||
LoadChar(c);
|
||||
if (class(c) == STNL || c == EOI) {
|
||||
break;
|
||||
}
|
||||
if (c == '\\') {
|
||||
LoadChar(c);
|
||||
if (c == '\n') {
|
||||
++LineNumber;
|
||||
}
|
||||
else escaped = 1;
|
||||
}
|
||||
} while (escaped || c != stopc);
|
||||
if (class(c) != STNL && c != EOI) {
|
||||
LoadChar(c);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (c == '\\') {
|
||||
LoadChar(c);
|
||||
if (class(c) == STNL)
|
||||
|
|
Loading…
Reference in a new issue