summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-20 15:28:39 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-20 15:28:39 (GMT)
commitc2f7cd247c5e712687640d88b834a54585e83425 (patch)
treede08f34f25a77a588ebb18998b4844a40773e61e /src/pre.l
parent0fc0de19ba79068ff7b6bad1e161393adcd865b8 (diff)
parentb007be7c1671661f31f056b7b7b5f480279ddbd6 (diff)
downloadDoxygen-c2f7cd247c5e712687640d88b834a54585e83425.zip
Doxygen-c2f7cd247c5e712687640d88b834a54585e83425.tar.gz
Doxygen-c2f7cd247c5e712687640d88b834a54585e83425.tar.bz2
Merge branch 'feature/bug_config' of https://github.com/albert-github/doxygen into albert-github-feature/bug_config
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index b6420e7..3a627b5 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -3267,7 +3267,10 @@ void Preprocessor::processFile(const char *fileName,BufStr &input,BufStr &output
int i_cbrace=ds.find(')');
bool nonRecursive = i_equals>0 && ds.at(i_equals-1)==':';
- if (i_obrace==0) continue; // no define name
+ if ((i_obrace==0) || (i_equals==0) || (i_equals==1 && ds.at(i_equals-1)==':'))
+ {
+ continue; // no define name
+ }
if (i_obrace<i_equals && i_cbrace<i_equals &&
i_obrace!=-1 && i_cbrace!=-1 &&