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;
|
||||
garbage = 1;
|
||||
} else if (ch == '/') {
|
||||
if ((ch = GetChar()) == '*'
|
||||
if (GetChar() == '*'
|
||||
&& !InputLevel
|
||||
) {
|
||||
skipcomment();
|
||||
continue;
|
||||
}
|
||||
else UnGetChar();
|
||||
}
|
||||
else if (ch == TOKSEP && InputLevel) {
|
||||
continue;
|
||||
|
|
|
@ -74,10 +74,11 @@ SkipToNewLine()
|
|||
delim = ch;
|
||||
garbage = 1;
|
||||
} else if (ch == '/') {
|
||||
if ((ch = GetChar()) == '*' && !InputLevel) {
|
||||
if (GetChar() == '*' && !InputLevel) {
|
||||
skipcomment();
|
||||
continue;
|
||||
}
|
||||
else UnGetChar();
|
||||
}
|
||||
else if (ch == TOKSEP && InputLevel) {
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue