fixed problem with line endings in case of a local variable redeclaration

actorid
Marc Zinnschlag 11 years ago
parent dde4fbd818
commit ac8290c4d3

@ -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
getErrorHandler().warning ("can't re-declare local variable (ignoring declaration)",
loc);
SkipParser skip (getErrorHandler(), getContext());
scanner.scan (skip);
mState = State_End;
return true;
}

Loading…
Cancel
Save