summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2017-08-18 09:52:28 (GMT)
committeralbert-github <albert.tests@gmail.com>2017-08-18 09:52:28 (GMT)
commitec12eb659d8c8e78ad4bb15d1a941ac3153a0f66 (patch)
treed525f5c1b02bf140ba414e34b427b28ddbc6c9ed
parent0072ba56aa994208b61515c60b6cbfaee2244d4d (diff)
downloadDoxygen-ec12eb659d8c8e78ad4bb15d1a941ac3153a0f66.zip
Doxygen-ec12eb659d8c8e78ad4bb15d1a941ac3153a0f66.tar.gz
Doxygen-ec12eb659d8c8e78ad4bb15d1a941ac3153a0f66.tar.bz2
Bug 786409 - parsing error in Fortran file with preprocessing
the // is in Fortran the indication for string concatenation and not for comment and should thus be ignored during, Fortran, preprocessing
-rw-r--r--src/pre.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index 4c4763d..40842f4 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -2902,7 +2902,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'"))
}
}
<*>"//"[/]? {
- if (YY_START==SkipVerbatim || YY_START==SkipCond)
+ if (YY_START==SkipVerbatim || YY_START==SkipCond || getLanguageFromFileName(g_yyFileName)==SrcLangExt_Fortran)
{
REJECT;
}