From a6a289243feff9c29b106ef934acd7c894409d76 Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 5 Feb 2019 18:39:50 +0100 Subject: Issue #6818 Certain regex pattern in class constant causes PHP class to be ignored Only ally the rule `<*>"[["` for Cpp See also fix d8001efd89146e04d92f5ea41ab27a7de09b6c53 i.e. Problem parsing c++ gnu::visibility (Origin: bugzilla #787952) #6259 --- src/scanner.l | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scanner.l b/src/scanner.l index cad997e..03c70c6 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -6829,6 +6829,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) [^\*\n]+ <*>"[[" { // C++11 attribute + if (!insideCpp) REJECT; lastC11AttributeContext = YY_START; BEGIN( SkipC11Attribute ); } -- cgit v0.12