Skip to content

Commit

Permalink
issue #8338 \until and \skipline don't hide doxygen comments like \sk…
Browse files Browse the repository at this point in the history
…ip does

The last line doesn't necessary contain the newline character, but the rule required it. The newline character will be handled, correctly, separately.
  • Loading branch information
albert-github committed Jan 16, 2021
1 parent 7c58b5d commit cd5adc8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/code.l
Original file line number Diff line number Diff line change
Expand Up @@ -2016,20 +2016,15 @@ NUMBER {INTEGER_NUMBER}|{FLOAT_NUMBER}
BEGIN(SkipComment);
}
}
<*>^{B}*"//"[!/][^\n]*\n { // remove special one-line comment
if (Config_getBool(STRIP_CODE_COMMENTS))
{
yyextra->yyLineNr++;
//nextCodeLine(yyscanner);
}
else
<*>^{B}*"//"[!/][^\n]* { // remove special one-line comment
if (!Config_getBool(STRIP_CODE_COMMENTS))
{
startFontClass(yyscanner,"comment");
codifyLines(yyscanner,yytext);
endFontClass(yyscanner);
}
}
<*>"//"[!/][^\n]*/\n { // strip special one-line comment
<*>"//"[!/][^\n]* { // strip special one-line comment
if (YY_START==SkipComment || YY_START==SkipString) REJECT;
if (!Config_getBool(STRIP_CODE_COMMENTS))
{
Expand Down

0 comments on commit cd5adc8

Please sign in to comment.