summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2021-01-16 15:31:55 (GMT)
committeralbert-github <albert.tests@gmail.com>2021-01-16 15:31:55 (GMT)
commitcd5adc8965adbd8ab0f9b6a80d21f4eba770ae87 (patch)
tree095d40b2c2154e19212abdd67bebc9005d9c06f5
parent7c58b5d10167ea83e05f2f99acc79d0a3a89abe4 (diff)
downloadDoxygen-cd5adc8965adbd8ab0f9b6a80d21f4eba770ae87.zip
Doxygen-cd5adc8965adbd8ab0f9b6a80d21f4eba770ae87.tar.gz
Doxygen-cd5adc8965adbd8ab0f9b6a80d21f4eba770ae87.tar.bz2
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.
-rw-r--r--src/code.l11
1 files 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))
{