Skip to content

Commit

Permalink
Fix to VHDL scanner.
Browse files Browse the repository at this point in the history
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
//! \}
  • Loading branch information
Craig Thomas Noble committed Jan 17, 2014
1 parent 7683301 commit 5ca7d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vhdlscanner.l
Expand Up @@ -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;
Expand Down

0 comments on commit 5ca7d42

Please sign in to comment.