From 0eaf1cd5d2eac57666b5ffea9e0f948b7a3e6b3a Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 3 Feb 2014 20:06:44 +0100 Subject: Bug 723516 - star is not printed in \code environment --- src/scanner.l | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/scanner.l b/src/scanner.l index 89ebb43..c854d60 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -6299,6 +6299,18 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) REJECT; } } +^{B}*"*"+/({ID}|"(") { // Assume *var or *(... is part of source code (see bug723516) + if (docBlockName=="code") + { + QCString indent; + indent.fill(' ',computeIndent(yytext,-1)); + docBlock+=indent+"*"; + } + else + { + REJECT; + } + } ^{B}*"*"+/{BN}* { // start of a comment line with one * if (docBlockName=="code") { -- cgit v0.12