diff options
author | albert-github <albert.tests@gmail.com> | 2021-01-16 15:31:55 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-01-16 15:31:55 (GMT) |
commit | cd5adc8965adbd8ab0f9b6a80d21f4eba770ae87 (patch) | |
tree | 095d40b2c2154e19212abdd67bebc9005d9c06f5 | |
parent | 7c58b5d10167ea83e05f2f99acc79d0a3a89abe4 (diff) | |
download | Doxygen-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.l | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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)) { |