Skip to content

Commit

Permalink
Bug 786409 - parsing error in Fortran file with preprocessing
Browse files Browse the repository at this point in the history
the // is in Fortran the indication for string concatenation and not for comment and should thus be ignored during, Fortran, preprocessing
  • Loading branch information
albert-github committed Aug 18, 2017
1 parent 0072ba5 commit ec12eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pre.l
Expand Up @@ -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;
}
Expand Down

0 comments on commit ec12eb6

Please sign in to comment.