diff options
Diffstat (limited to 'src/scanner.l')
-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; |