From 4fe4ce026d75972018516d81507ae20db9cdc589 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 2 Sep 2019 19:39:31 +0200 Subject: issue #7243: Some PHP classes are not properly extracted/documented --- src/scanner.l | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/scanner.l b/src/scanner.l index 970b1e8..75786ef 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -861,6 +861,12 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) lineCount() ; BEGIN( FindMembers ); } +"?>"|"" { // PHP code end + if (insidePHP) + BEGIN( FindMembersPHP ); + else + REJECT; + } [^\n<]+ { // Non-PHP code text, ignore } \n { // Non-PHP code text, ignore @@ -6904,13 +6910,6 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) /* ------------ Generic rules -------------- */ -<*>"?>"|"" { // PHP code end - if (insidePHP) - BEGIN( FindMembersPHP ); - else - REJECT; - } - <*>"[[" { // C++11 attribute if (!insideCpp) REJECT; if (YY_START == CopyGString || YY_START == CopyGString) REJECT; -- cgit v0.12