Skip to content

Commit 3a5167e

Browse files
committed
newExpression
1 parent b2b3f84 commit 3a5167e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cxx-squid/src/main/java/org/sonar/cxx/parser/CxxGrammarImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,14 +673,14 @@ private static void expressions(LexerfulGrammarBuilder b) {
673673
CxxKeyword.GCNEW
674674
),
675675
b.firstOf(
676+
b.sequence("(", typeId, ")", b.optional(newInitializer)),
676677
b.sequence(
677678
b.optional(newPlacement),
678679
b.firstOf(
679680
b.sequence(newTypeId, b.optional(newInitializer)), // C++
680681
b.sequence("(", typeId, ")", b.optional(newInitializer)) // C++
681682
)
682-
),
683-
b.sequence("(", typeId, ")", b.optional(newInitializer)) // todo remove?
683+
)
684684
)
685685
)
686686
);

0 commit comments

Comments
 (0)