@@ -2343,7 +2343,7 @@ class GroupingSetsClauseSegment(BaseSegment):
23432343 Delimited (
23442344 Ref ("CubeRollupClauseSegment" ),
23452345 Ref ("GroupingExpressionList" ),
2346- )
2346+ ),
23472347 ),
23482348 )
23492349
@@ -2354,7 +2354,6 @@ class GroupingExpressionList(BaseSegment):
23542354 type = "grouping_expression_list"
23552355
23562356 match_grammar : Matchable = Sequence (
2357- Indent ,
23582357 Delimited (
23592358 OneOf (
23602359 Ref ("ColumnReferenceSegment" ),
@@ -2366,7 +2365,6 @@ class GroupingExpressionList(BaseSegment):
23662365 ),
23672366 terminators = [Ref ("GroupByClauseTerminatorGrammar" )],
23682367 ),
2369- Dedent ,
23702368 )
23712369
23722370
@@ -2390,14 +2388,14 @@ class GroupByClauseSegment(BaseSegment):
23902388 match_grammar : Matchable = Sequence (
23912389 "GROUP" ,
23922390 "BY" ,
2391+ Indent ,
23932392 OneOf (
23942393 Ref ("CubeRollupClauseSegment" ),
23952394 # We could replace this next bit with a GroupingExpressionList
23962395 # reference (renaming that to a more generic name), to avoid
23972396 # repeating this bit of code, but I would rather keep it flat
23982397 # to avoid changing regular `GROUP BY` clauses.
23992398 Sequence (
2400- Indent ,
24012399 Delimited (
24022400 OneOf (
24032401 Ref ("ColumnReferenceSegment" ),
@@ -2408,9 +2406,9 @@ class GroupByClauseSegment(BaseSegment):
24082406 ),
24092407 terminators = [Ref ("GroupByClauseTerminatorGrammar" )],
24102408 ),
2411- Dedent ,
24122409 ),
24132410 ),
2411+ Dedent ,
24142412 )
24152413
24162414
0 commit comments