T++ style adjustments...

git-svn-id: svn://ultimatepp.org/upp/trunk@431 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2008-09-12 11:10:28 +00:00
parent 2ac6e1ad79
commit 9910b25b87
11 changed files with 1980 additions and 191 deletions

View file

@ -1398,23 +1398,25 @@ void Parser::Do(Stream& in, const Vector<String>& ignore, CppBase& _base, const
while(lex != t_eof)
try {
Do();
try {
Do();
}
catch(Error) {
if(lex.IsBody()) {
Resume(lex.GetBracesLevel());
Key(';');
}
else {
++lex;
lex.SkipToGrounding();
lex.ClearBracesLevel();
}
}
}
catch(Lex::Grounding) {
lex.ClearBracesLevel();
lex.ClearBody();
}
catch(Error) {
if(lex.IsBody()) {
Resume(lex.GetBracesLevel());
Key(';');
}
else {
++lex;
lex.SkipToGrounding();
lex.ClearBracesLevel();
}
}
}
void Parse(Stream& s, const Vector<String>& ignore, CppBase& base, const String& fn,