Skip to content

Commit

Permalink
Bug 722112 - 'static' and 'throw' C++ keywords not colored
Browse files Browse the repository at this point in the history
In case we don't specify a name with a type in the prototype of a function the type is still stored and should be moved to the type/
  • Loading branch information
albert-github committed Sep 11, 2016
1 parent ca38847 commit 794ae9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/code.l
Expand Up @@ -3038,12 +3038,18 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
if (yytext[0]==')') // no a pointer cast
{
//printf("addVariable(%s,%s)\n",g_parmType.data(),g_parmName.data());
if (g_parmType.isEmpty())
{
g_parmType=g_parmName;
g_parmName.resize(0);
}
g_theVarContext.addVariable(g_parmType,g_parmName);
}
else
{
g_parmType.resize(0);
g_parmType = g_parmName;
g_parmName.resize(0);
g_theVarContext.addVariable(g_parmType,g_parmName);
}
g_theCallContext.popScope();
g_inForEachExpression = FALSE;
Expand Down

0 comments on commit 794ae9c

Please sign in to comment.