Fix #2095: correct the indentation.
This also made it obvious some code was (functionally correctly) repeated, so deleted that too.
This commit is contained in:
parent
9606a5cb99
commit
c480237be2
1 changed files with 6 additions and 8 deletions
|
|
@ -187,13 +187,11 @@ bool TInputScanner::scanVersion(int& version, EProfile& profile, bool& notFirstT
|
||||||
if (lookingInMiddle) {
|
if (lookingInMiddle) {
|
||||||
notFirstToken = true;
|
notFirstToken = true;
|
||||||
// make forward progress by finishing off the current line plus extra new lines
|
// make forward progress by finishing off the current line plus extra new lines
|
||||||
if (peek() == '\n' || peek() == '\r') {
|
if (peek() != '\n' && peek() != '\r') {
|
||||||
while (peek() == '\n' || peek() == '\r')
|
|
||||||
get();
|
|
||||||
} else
|
|
||||||
do {
|
do {
|
||||||
c = get();
|
c = get();
|
||||||
} while (c != EndOfInput && c != '\n' && c != '\r');
|
} while (c != EndOfInput && c != '\n' && c != '\r');
|
||||||
|
}
|
||||||
while (peek() == '\n' || peek() == '\r')
|
while (peek() == '\n' || peek() == '\r')
|
||||||
get();
|
get();
|
||||||
if (peek() == EndOfInput)
|
if (peek() == EndOfInput)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue