summaryrefslogtreecommitdiffstats
path: root/src/vhdlscanner.l
diff options
context:
space:
mode:
authorCraig Thomas Noble <craig.noble@calnexsol.com>2014-01-17 11:07:05 (GMT)
committerCraig Thomas Noble <craig.noble@calnexsol.com>2014-01-17 11:07:05 (GMT)
commit5ca7d423a11337d5c31082f52a287a3dc0986642 (patch)
tree7a1bd2b8ec38c34b2306f99199b7cea43ad8658d /src/vhdlscanner.l
parent76833018f203368d012b473913d9f898ef104869 (diff)
downloadDoxygen-5ca7d423a11337d5c31082f52a287a3dc0986642.zip
Doxygen-5ca7d423a11337d5c31082f52a287a3dc0986642.tar.gz
Doxygen-5ca7d423a11337d5c31082f52a287a3dc0986642.tar.bz2
Fix to VHDL scanner.
The following code should produce two groups, each containing one page, within the same documentation scope, currently it nests these groups and pages, resulting in incorrect documentation. --! \defgroup group1 Group 1 --! \{ --! @brief Group 1 --! \} --! \ingroup group1 --! \{ --! \page group1_page1 Page 1 --! \verbatim --! Some Page 1 text --! \endverbatim --! \} --! \defgroup group2 Group 2 --! \{ --! @brief Group 2 --! \} --! \ingroup group2 --! \{ --! \page group2_page1 Page 1 --! \verbatim --! Some Page 1 text --! \endverbatim --! \} Similar C code to demonstrate the correct output. //! \defgroup group1 Group 1 //! \{ //! @brief Group 1 //! \} //! \ingroup group1 //! \{ //! \page group1_page1 Page 1 //! \verbatim //! Some Page 1 text //! \endverbatim //! \} //! \defgroup group2 Group 2 //! \{ //! @brief Group 2 //! \} //! \ingroup group2 //! \{ //! \page group2_page1 Page 1 //! \verbatim //! Some Page 1 text //! \endverbatim //! \}
Diffstat (limited to 'src/vhdlscanner.l')
-rw-r--r--src/vhdlscanner.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vhdlscanner.l b/src/vhdlscanner.l
index e1257ec..a3603c8 100644
--- a/src/vhdlscanner.l
+++ b/src/vhdlscanner.l
@@ -543,7 +543,7 @@ BR [ \t\n\r]
. { /* unknown characters */ }
-<*>{BR}*"--!"[^{}\n]*[^\n]*\n/{B}*"--!" { // multi line comment
+<*>{B}*"--!"[^{}\n]*[^\n]*\n/{B}*"--!" { // multi line comment
if (iDocLine==-1) iDocLine=yyLineNr;
QCString qc(vhdlscannerYYtext);
int len=qc.contains('\n')+yyLineNr-1;