From 98eb981dba723ed1d71fdcbcd7ca2de0e086b1e0 Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 1 Feb 2018 14:05:31 +0100 Subject: Bug 638606 - Support for C# nullable type Added, basic, support for C# nullable types. --- src/scanner.l | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/scanner.l b/src/scanner.l index fd1568b..ac2f515 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -6611,6 +6611,22 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) BEGIN(SkipString); } } +<*>\? { + if (insideCS) + { + if (current->type.isEmpty()) + { + if (current->name.isEmpty()) + current->name="?"; + else + current->name+="?"; + } + else + { + current->type+="?"; + } + } + } <*>. "//"|"/*" <*>"/*" { lastCContext = YY_START ; -- cgit v0.12