summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-09-03 09:10:50 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-09-03 09:10:50 (GMT)
commit2d11c2c58faa79ccc511523c68f7488cfd4232bd (patch)
tree50a57dd27eeca4f4d351d51e918d41b8bc03afa9 /src/commentscan.l
parent72591fd5ecc2aef1c6809fb8ce405f2326ec4ae2 (diff)
downloadDoxygen-2d11c2c58faa79ccc511523c68f7488cfd4232bd.zip
Doxygen-2d11c2c58faa79ccc511523c68f7488cfd4232bd.tar.gz
Doxygen-2d11c2c58faa79ccc511523c68f7488cfd4232bd.tar.bz2
Command \ilinebr reamained
When having the alias: ``` ALIASES += sbl_add_package_main_class{4}="\addtogroup \1-ref-manual ^^ @{ ^^ \class \2 ^^ \brief \3 \4 ^^ @}" ``` for the comment block: ``` /** \sbl_add_package_main_class{Molecular_potential_energy, T_Phi_psi_dihedral_angles_visitor, Defines iterator over all successive pairs of dihedrals., \details Defines iterator over all successive pairs of dihedrals. \tparam CovalentStructure The type of the input covalent structure } */ ``` we get the warning: ``` warning: the name '\ilinebr' supplied as the argument of the \class, \struct, \union, or \include command is not an input file ``` The problem was that the rule: ``` <ClassDocArg2>{FILE}|"<>" { // second argument; include file ``` took the `\ilinebr`, the rule: ``` <ClassDocArg2>{DOCNL} { ``` should habe been checked before. (reported as: https://stackoverflow.com/questions/63710433/doxygen-alias-with-arguments-the-classical-linebr-problem)
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index 5a71b14..05643b5 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -1043,6 +1043,12 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
<ClassDocArg1,CategoryDocArg1>. { // ignore other stuff
}
+<ClassDocArg2>{DOCNL} {
+ //addOutput(yyscanner,'\n');
+ //if (*yytext=='\n') yyextra->lineNr++;
+ unput('\n');
+ BEGIN( Comment );
+ }
<ClassDocArg2>{FILE}|"<>" { // second argument; include file
yyextra->current->includeFile = yytext;
BEGIN( ClassDocArg3 );
@@ -1051,12 +1057,6 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
yyextra->lineNr++;
addOutput(yyscanner,'\n');
}
-<ClassDocArg2>{DOCNL} {
- //addOutput(yyscanner,'\n');
- //if (*yytext=='\n') yyextra->lineNr++;
- unput('\n');
- BEGIN( Comment );
- }
<ClassDocArg2>. { // ignore other stuff
}