ide: Fixed assist++ handling of SKYLARK macro

git-svn-id: svn://ultimatepp.org/upp/trunk@5341 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-09-09 14:35:11 +00:00
parent b3b6ccb8a9
commit 297ebcebce
4 changed files with 222 additions and 209 deletions

View file

@ -669,7 +669,7 @@ Array<Parser::Decl> Parser::Declaration0(bool l0, bool more)
}
Qualifier();
if(l0)
if(lex == tk_SKYLARK && lex[1] == '(') {
if(lex == tk_SKYLARK && lex[1] == '(' && lex.IsId(2)) {
++lex;
++lex;
Decl& a = r.Add();
@ -684,8 +684,9 @@ Array<Parser::Decl> Parser::Declaration0(bool l0, bool more)
lex.GetText();
Key(')');
return r;
} else
if((lex == tk_RPC_METHOD || lex == tk_RPC_GMETHOD) && lex[1] == '(') {
}
else
if((lex == tk_RPC_METHOD || lex == tk_RPC_GMETHOD) && lex[1] == '(' && lex.IsId(2)) {
++lex;
++lex;
Decl& a = r.Add();