From 37cf9b2648bf12cf6c3db9f734735a4682535b9a Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 10 Jun 2019 15:54:09 +0200 Subject: Bug 535853 - C# consts incorrectly placed under instance variables Handle consts separately and in case of CSharp set the static flag. --- src/scanner.l | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/scanner.l b/src/scanner.l index f94e4f8..e36b36d 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -1390,6 +1390,10 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) current->explicitExternal = TRUE; lineCount(); } +{B}*"const"{BN}+ { current->type += " const "; + if (insideCS) current->stat = TRUE; + lineCount(); + } {B}*"virtual"{BN}+ { current->type += " virtual "; current->virt = Virtual; lineCount(); -- cgit v0.12