From cd5adc8965adbd8ab0f9b6a80d21f4eba770ae87 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 16 Jan 2021 16:31:55 +0100 Subject: issue #8338 \until and \skipline don't hide doxygen comments like \skip does The last line doesn't necessary contain the newline character, but the rule required it. The newline character will be handled, correctly, separately. --- src/code.l | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/code.l b/src/code.l index 6feda35..956034f 100644 --- a/src/code.l +++ b/src/code.l @@ -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)) { -- cgit v0.12