Skip to content

Commit 57b5311

Browse files
committed
issue #9857 C# incorrect interpretation of '?'-operators
Not only should question marks inside round brackets but also inside curly brackets be handled in the same way.
1 parent 8f7d18e commit 57b5311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6918,7 +6918,7 @@ NONLopt [^\n]*
69186918
}
69196919
}
69206920
<*>\? {
6921-
if (yyextra->insideCS && (YY_START != SkipRound))
6921+
if (yyextra->insideCS && (YY_START != SkipRound) && (YY_START != CSAccessorDecl))
69226922
{
69236923
if (yyextra->current->type.isEmpty())
69246924
{

0 commit comments

Comments
 (0)