diff options
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 9a7f698..1b55244 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -272,7 +272,7 @@ class DocCmdMapper { if (m_map.find(p->cmdName)!=0) { - printf("Error: command %s already added\n",p->cmdName); + printf("Error: DocCmdMapper: command %s already added\n",p->cmdName); exit(1); } Cmd *cmd = new Cmd; @@ -687,7 +687,14 @@ static inline void setOutput(OutputContext ctx) current->briefLine = yyLineNr; } } - pOutputString = ¤t->brief; + if (current->brief.isEmpty()) + { + pOutputString = ¤t->brief; + } + else + { + pOutputString = ¤t->doc; + } break; case OutputXRef: pOutputString = &outputXRef; |