diff options
author | Roel Standaert <roel@emweb.be> | 2019-11-12 13:23:57 (GMT) |
---|---|---|
committer | Roel Standaert <roel@emweb.be> | 2019-11-12 13:30:00 (GMT) |
commit | 0809acf9d38525578080e50a4b23b61127706ebe (patch) | |
tree | 2ccc4cca65868c0e91b1c6ba76e464bd8c79bc9b | |
parent | 502d7aa8101222b6fdd7fe3c5b56869f3efff195 (diff) | |
download | Doxygen-0809acf9d38525578080e50a4b23b61127706ebe.zip Doxygen-0809acf9d38525578080e50a4b23b61127706ebe.tar.gz Doxygen-0809acf9d38525578080e50a4b23b61127706ebe.tar.bz2 |
Fix line count after multiline close group
Fix for issue #7393
When closing a group on multiple lines, like:
/*! @}
*/
The line count of subsequent lines is wrong (it's one line less than it
should be).
-rw-r--r-- | src/scanner.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l index abc0c3b..393d6d4 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -2852,6 +2852,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) <FindMembers,FindFields,ReadInitializer>"//"([!/]){B}*{CMD}"}".*|"/*"([!*]){B}*{CMD}"}"[^*]*"*/" { bool insideEnum = YY_START==FindFields || (YY_START==ReadInitializer && lastInitializerContext==FindFields); // see bug746226 Doxygen::docGroup.close(current.get(),yyFileName,yyLineNr,insideEnum); + lineCount(); } <FindMembers>"=" { // in PHP code this could also be due to "<?=" current->bodyLine = yyLineNr; |