summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index ee04dd9..cc497e3 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -1394,6 +1394,18 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
current->virt = Virtual;
lineCount();
}
+<FindMembers>{B}*"constexpr"{BN}+ {
+ if (insideCpp)
+ {
+ current->type += " constexpr ";
+ current->spec |= Entry::ConstExpr;
+ lineCount();
+ }
+ else
+ {
+ REJECT;
+ }
+ }
<FindMembers>{B}*"published"{BN}+ { // UNO IDL published keyword
if (insideIDL)
{