summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-02-09 18:25:58 (GMT)
committerGitHub <noreply@github.com>2019-02-09 18:25:58 (GMT)
commit7e67864f43c10281b2c8db542f4e0330477a76af (patch)
treecda2360a2db0dc6c2da082036e808014a020d354
parent1a5c152901de27db53f5cb69dce87df63f426cf4 (diff)
parent73fcb789c5a9ded09cbf560e6d8f5e239739d3d5 (diff)
downloadDoxygen-7e67864f43c10281b2c8db542f4e0330477a76af.zip
Doxygen-7e67864f43c10281b2c8db542f4e0330477a76af.tar.gz
Doxygen-7e67864f43c10281b2c8db542f4e0330477a76af.tar.bz2
Merge pull request #6823 from albert-github/feature/issue_6818
Issue #6818 Certain regex pattern in class constant causes PHP class to be ignored
-rw-r--r--src/scanner.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index cad997e..6633098 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -6829,6 +6829,8 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
<SkipComment>[^\*\n]+
<*>"[[" { // C++11 attribute
+ if (!insideCpp) REJECT;
+ if (YY_START == CopyGString || YY_START == CopyGString) REJECT;
lastC11AttributeContext = YY_START;
BEGIN( SkipC11Attribute );
}