diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2016-09-21 17:56:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21 17:56:36 (GMT) |
commit | fc8b41e932f9f1ef50a37f4d2ee09509333990d0 (patch) | |
tree | 06fa3ce51a44b180257a3c3926abfdba4a28fe1f /src | |
parent | a437e0a19b30bf303870020b9a525eb173ad9c18 (diff) | |
parent | 794ae9cbc40b73d00cce5f0096b53f18e1d3e325 (diff) | |
download | Doxygen-fc8b41e932f9f1ef50a37f4d2ee09509333990d0.zip Doxygen-fc8b41e932f9f1ef50a37f4d2ee09509333990d0.tar.gz Doxygen-fc8b41e932f9f1ef50a37f4d2ee09509333990d0.tar.bz2 |
Merge pull request #521 from albert-github/feature/bug_722112
Bug 722112 - 'static' and 'throw' C++ keywords not colored
Diffstat (limited to 'src')
-rw-r--r-- | src/code.l | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3040,12 +3040,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; |