mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 18:29:55 +00:00
fixed problem with line endings in case of a local variable redeclaration
This commit is contained in:
parent
dde4fbd818
commit
ac8290c4d3
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ bool Compiler::DeclarationParser::parseName (const std::string& name, const Toke
|
||||||
/// \todo add option to make re-declared local variables an error
|
/// \todo add option to make re-declared local variables an error
|
||||||
getErrorHandler().warning ("can't re-declare local variable (ignoring declaration)",
|
getErrorHandler().warning ("can't re-declare local variable (ignoring declaration)",
|
||||||
loc);
|
loc);
|
||||||
SkipParser skip (getErrorHandler(), getContext());
|
|
||||||
scanner.scan (skip);
|
|
||||||
mState = State_End;
|
mState = State_End;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue