You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The warning regarding the nested comment block was already removed, though the `*` in the second and further lines in the block remained (also the one in front of the `end` command was still present
small example:
```
* @code
* root_group->remove("*/stepper_motor/*");
* root_group->remove("*/stepper_motor/*");
* @Endcode
```
- removed the `*`
- reset the block name when reaching the `end` command.
Copy file name to clipboardExpand all lines: src/scanner.l
+16-7Lines changed: 16 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -4751,13 +4751,15 @@ NONLopt [^\n]*
4751
4751
yyextra->fullArgString+=yytext;
4752
4752
if (&yytext[4]==yyextra->docBlockName)
4753
4753
{
4754
+
yyextra->docBlockName="";
4754
4755
BEGIN(CopyArgCommentLine);
4755
4756
}
4756
4757
}
4757
4758
<CopyArgVerbatim>[\\@]("f$"|"f]"|"f}"|"f)") { // end of verbatim block
4758
4759
yyextra->fullArgString+=yytext;
4759
4760
if (yyextra->docBlockName==&yytext[1])
4760
4761
{
4762
+
yyextra->docBlockName="";
4761
4763
BEGIN(CopyArgCommentLine);
4762
4764
}
4763
4765
}
@@ -6860,27 +6862,31 @@ NONLopt [^\n]*
6860
6862
yyextra->docBlock << yytext;
6861
6863
if (yyextra->docBlockName=="<pre>")
6862
6864
{
6865
+
yyextra->docBlockName="";
6863
6866
BEGIN(DocBlock);
6864
6867
}
6865
6868
}
6866
6869
<DocCopyBlock>"</"{CODE}">" { // end of a <code> block
6867
6870
yyextra->docBlock << yytext;
6868
6871
if (yyextra->docBlockName=="<code>")
6869
6872
{
6873
+
yyextra->docBlockName="";
6870
6874
BEGIN(DocBlock);
6871
6875
}
6872
6876
}
6873
6877
<DocCopyBlock>[\\@]("f$"|"f]"|"f}"|"f)") {
6874
6878
yyextra->docBlock << yytext;
6875
6879
if (yyextra->docBlockName==&yytext[1])
6876
6880
{
6881
+
yyextra->docBlockName="";
6877
6882
BEGIN(DocBlock);
6878
6883
}
6879
6884
}
6880
6885
<DocCopyBlock>[\\@]("endverbatim"|"endiliteral"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"enddocbookonly"|"endmanonly"|"endrtfonly"|"enddot"|"endmsc"|"enduml"|"endcode")/[^a-z_A-Z0-9] { // end of verbatim block
6881
6886
yyextra->docBlock << yytext;
6882
6887
if (&yytext[4]==yyextra->docBlockName)
6883
6888
{
6889
+
yyextra->docBlockName="";
6884
6890
BEGIN(DocBlock);
6885
6891
}
6886
6892
}
@@ -6959,14 +6965,17 @@ NONLopt [^\n]*
6959
6965
<DocCopyBlock>[^\<@/\*\]~\$\\\n]+ { // any character that is not special
6960
6966
yyextra->docBlock << yytext;
6961
6967
}
6962
-
<DocCopyBlock>{CCS}|{CCE}|{CPPC} {
6963
-
if (yytext[1]=='*')
6968
+
<DocCopyBlock>{CCS}|{CCE}|{CPPC} {
6969
+
if (!((yyextra->docBlockName=="code") || (yyextra->docBlockName=="iliteral")))
0 commit comments