Skip to content

Commit

Permalink
bug_562008 cpp directives in \code fragments breaks subsequent links …
Browse files Browse the repository at this point in the history
…replacement

correcting rule so a statement direct after the directive and as last of a code block is also seen correctly
  • Loading branch information
albert-github committed Nov 2, 2021
1 parent 09fb676 commit cccdb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/code.l
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static bool isCastKeyword(const char *s);

//-------------------------------------------------------------------
#if USE_STATE2STRING
static const char *stateToString(yyscan_t yyscanner,int state);
static const char *stateToString(int state);
#endif

static void saveObjCContext(yyscan_t yyscanner);
Expand Down Expand Up @@ -1944,7 +1944,7 @@ ENDQopt ("const"|"volatile"|"sealed"|"override")({BN}+("const"|"volatile"|"seale
BEGIN( yyextra->lastCContext ) ;
}
}
<SkipCPP>\n/.*\n {
<SkipCPP>\n/(.|\n) {
endFontClass(yyscanner);
BEGIN( yyextra->lastSkipCppContext ) ;
unput('\n');
Expand Down

0 comments on commit cccdb5b

Please sign in to comment.