mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
T++ style adjustments...
git-svn-id: svn://ultimatepp.org/upp/trunk@431 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2ac6e1ad79
commit
9910b25b87
11 changed files with 1980 additions and 191 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue