From f4f3e381dba1bc5d46feea3c39e8f076e27463d1 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 27 Apr 2014 18:17:57 +0200 Subject: Bug 729017 - function object in member initializer causes documentation loss --- src/scanner.l | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/scanner.l b/src/scanner.l index a7ac841..323dc65 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -682,7 +682,6 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) %x SkipCurlyBlock %x SkipRoundBlock %x Sharp -%x SkipSharp %x SkipRound %x SkipSquare %x SkipRemainder @@ -5353,13 +5352,13 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) BEGIN( ClassVar ); } } -"(" { roundCount=1; +"(" { roundCount=0; BEGIN( AlignAsEnd ); } \n { lineCount(); } . "(" { roundCount++; } -")" { if (--roundCount<=0) +")" { if (--roundCount<0) { BEGIN( lastAlignAsContext ); } @@ -5843,12 +5842,8 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) . { *specName += *yytext; } -"<" { ++sharpCount; } -">" { if (--sharpCount<=0) - BEGIN ( lastSkipSharpContext ); - } "(" { ++roundCount; } -")" { if (--roundCount<=0) +")" { if (--roundCount<0) BEGIN ( lastSkipRoundContext ); } \" { -- cgit v0.12