SkipToNewLine() fixed: did not work with a / at the end of a line
This commit is contained in:
parent
8061bab6a9
commit
c7b707c266
|
@ -81,12 +81,13 @@ SkipToNewLine()
|
||||||
delim = ch;
|
delim = ch;
|
||||||
garbage = 1;
|
garbage = 1;
|
||||||
} else if (ch == '/') {
|
} else if (ch == '/') {
|
||||||
if ((ch = GetChar()) == '*'
|
if (GetChar() == '*'
|
||||||
&& !InputLevel
|
&& !InputLevel
|
||||||
) {
|
) {
|
||||||
skipcomment();
|
skipcomment();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else UnGetChar();
|
||||||
}
|
}
|
||||||
else if (ch == TOKSEP && InputLevel) {
|
else if (ch == TOKSEP && InputLevel) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -74,10 +74,11 @@ SkipToNewLine()
|
||||||
delim = ch;
|
delim = ch;
|
||||||
garbage = 1;
|
garbage = 1;
|
||||||
} else if (ch == '/') {
|
} else if (ch == '/') {
|
||||||
if ((ch = GetChar()) == '*' && !InputLevel) {
|
if (GetChar() == '*' && !InputLevel) {
|
||||||
skipcomment();
|
skipcomment();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
else UnGetChar();
|
||||||
}
|
}
|
||||||
else if (ch == TOKSEP && InputLevel) {
|
else if (ch == TOKSEP && InputLevel) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue