Skip to content

Commit

Permalink
Fixed issue #5: multiple formatting errors related to oneof blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
S1artie committed Aug 23, 2024
1 parent 869d661 commit fddddfc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ protected synchronized FormattingConfig getConfig() {
c.setLinewrap(1,2,3).before(g.getMessageRule());
c.setLinewrap(2).after(g.getMessageRule());
c.setLinewrap(1).after(g.getMessageFieldRule());
c.setLinewrap(2).after(g.getOneOfRule());
c.setLinewrap(1).after(g.getGroupRule());
c.setLinewrap(2).after(g.getEnumRule());
c.setLinewrap(1).after(g.getEnumElementRule());
Expand Down Expand Up @@ -135,6 +136,8 @@ public FirstCommentIndentationFixingTokenStream(ITokenStream anOut) {

ProtobufGrammarAccess g = (ProtobufGrammarAccess) getGrammarAccess();
openingCurlyBracketRuleCalls.add(g.getMessageAccess().getLeftCurlyBracketKeyword_2());
openingCurlyBracketRuleCalls.add(g.getOneOfAccess().getLeftCurlyBracketKeyword_3());

slCommentType = g.getSL_COMMENTRule().getType();
}

Expand Down

0 comments on commit fddddfc

Please sign in to comment.