mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-21 22:04:56 -06:00
cpp: Fixed issue with Alt+C after typedef #1313
git-svn-id: svn://ultimatepp.org/upp/trunk@9097 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
68a9173726
commit
b121df5ed5
1 changed files with 2 additions and 2 deletions
|
|
@ -1716,6 +1716,7 @@ void Parser::Do()
|
|||
if(q >= 0) { // class variable definition like: int Ctrl::EventLoop;
|
||||
ScopeCat(scope, d.name.Mid(0, q));
|
||||
current_scope = scope; // temporary until ';'
|
||||
LOG("Decl " << current_scope);
|
||||
name = d.name.Mid(q + 2);
|
||||
member_type = CLASSVARIABLE;
|
||||
}
|
||||
|
|
@ -1745,8 +1746,7 @@ void Parser::Do()
|
|||
lex.FinishStatCollection(), maxScopeDepth));
|
||||
lex.StartStatCollection(); // start collection of orphan symbols
|
||||
}
|
||||
Key(';');
|
||||
if(lex != t_eof)
|
||||
if(Key(';'))
|
||||
SetScopeCurrent(); // need to be after ';' to make class variable definitions work
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue