summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l1
1 files changed, 1 insertions, 0 deletions
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})
<SkipComment>[^\*\n]+
<*>"[[" { // C++11 attribute
+ if (!insideCpp) REJECT;
lastC11AttributeContext = YY_START;
BEGIN( SkipC11Attribute );
}