Skip to content

Commit b2b3f84

Browse files
committed
newExpression
1 parent 29c331d commit b2b3f84

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,11 @@ private static void expressions(LexerfulGrammarBuilder b) {
667667

668668
b.rule(newExpression).is( // todo gcnew must be string
669669
b.sequence(
670-
b.optional("::"), b.firstOf(CxxKeyword.NEW, CxxKeyword.GCNEW),
670+
b.optional("::"),
671+
b.firstOf(
672+
CxxKeyword.NEW,
673+
CxxKeyword.GCNEW
674+
),
671675
b.firstOf(
672676
b.sequence(
673677
b.optional(newPlacement),

0 commit comments

Comments
 (0)