diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-09-02 17:39:31 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-09-02 17:39:31 (GMT) |
commit | 4fe4ce026d75972018516d81507ae20db9cdc589 (patch) | |
tree | 2aa848536b7c00b6225e326582d7eca05ccfdc98 | |
parent | 3ffbbd77dcf450b37d17fb0f1b33754e1af10987 (diff) | |
download | Doxygen-4fe4ce026d75972018516d81507ae20db9cdc589.zip Doxygen-4fe4ce026d75972018516d81507ae20db9cdc589.tar.gz Doxygen-4fe4ce026d75972018516d81507ae20db9cdc589.tar.bz2 |
issue #7243: Some PHP classes are not properly extracted/documented
-rw-r--r-- | src/scanner.l | 13 |
1 files 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 ); } +<FindMembers>"?>"|"</script>" { // PHP code end + if (insidePHP) + BEGIN( FindMembersPHP ); + else + REJECT; + } <FindMembersPHP>[^\n<]+ { // Non-PHP code text, ignore } <FindMembersPHP>\n { // Non-PHP code text, ignore @@ -6904,13 +6910,6 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) /* ------------ Generic rules -------------- */ -<*>"?>"|"</script>" { // PHP code end - if (insidePHP) - BEGIN( FindMembersPHP ); - else - REJECT; - } - <*>"[[" { // C++11 attribute if (!insideCpp) REJECT; if (YY_START == CopyGString || YY_START == CopyGString) REJECT; |