diff options
author | albert-github <albert.tests@gmail.com> | 2019-02-06 10:38:22 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-02-06 10:38:22 (GMT) |
commit | 73fcb789c5a9ded09cbf560e6d8f5e239739d3d5 (patch) | |
tree | 7aa81d34c0c7e05ca6bdb2e62bbbebcacf1d7925 /src/scanner.l | |
parent | a6a289243feff9c29b106ef934acd7c894409d76 (diff) | |
download | Doxygen-73fcb789c5a9ded09cbf560e6d8f5e239739d3d5.zip Doxygen-73fcb789c5a9ded09cbf560e6d8f5e239739d3d5.tar.gz Doxygen-73fcb789c5a9ded09cbf560e6d8f5e239739d3d5.tar.bz2 |
Issue #6818 Certain regex pattern in class constant causes PHP class to be ignored
In case of Cpp we also have to consider the case of strings that can contain the `[[...]]` part.
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l index 03c70c6..6633098 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -6829,7 +6829,8 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) <SkipComment>[^\*\n]+ <*>"[[" { // C++11 attribute - if (!insideCpp) REJECT; + if (!insideCpp) REJECT; + if (YY_START == CopyGString || YY_START == CopyGString) REJECT; lastC11AttributeContext = YY_START; BEGIN( SkipC11Attribute ); } |