summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-09-11 16:47:44 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-09-11 16:47:44 (GMT)
commit794ae9cbc40b73d00cce5f0096b53f18e1d3e325 (patch)
tree362aa58f32f35e325abb413ffdf59a337f7b0f5a
parentca388471e61564211123e1f40dd57ece3e4cb2c5 (diff)
downloadDoxygen-794ae9cbc40b73d00cce5f0096b53f18e1d3e325.zip
Doxygen-794ae9cbc40b73d00cce5f0096b53f18e1d3e325.tar.gz
Doxygen-794ae9cbc40b73d00cce5f0096b53f18e1d3e325.tar.bz2
Bug 722112 - 'static' and 'throw' C++ keywords not colored
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/
-rw-r--r--src/code.l8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/code.l b/src/code.l
index c2eaeed..a1365de 100644
--- a/src/code.l
+++ b/src/code.l
@@ -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;