summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-02-01 13:05:31 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-02-01 13:05:31 (GMT)
commit98eb981dba723ed1d71fdcbcd7ca2de0e086b1e0 (patch)
tree37f98b5f44f143bccd3431af2b50852e17a95c31 /src/scanner.l
parenta1474373a0be8b099a2458b9c02d19e191e457e7 (diff)
downloadDoxygen-98eb981dba723ed1d71fdcbcd7ca2de0e086b1e0.zip
Doxygen-98eb981dba723ed1d71fdcbcd7ca2de0e086b1e0.tar.gz
Doxygen-98eb981dba723ed1d71fdcbcd7ca2de0e086b1e0.tar.bz2
Bug 638606 - Support for C# nullable type
Added, basic, support for C# nullable types.
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l16
1 files changed, 16 insertions, 0 deletions
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+="?";
+ }
+ }
+ }
<*>.
<SkipComment>"//"|"/*"
<*>"/*" { lastCContext = YY_START ;