Permalink
Browse files

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
  • Loading branch information...
albert-github committed Aug 18, 2017
1 parent 0072ba5 commit ec12eb659d8c8e78ad4bb15d1a941ac3153a0f66
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit ec12eb6

Please sign in to comment.