Skip to content

Commit

Permalink
Allow optional semicolon termination on block method declarations (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaghezzi authored Apr 18, 2024
1 parent 3a475fc commit 269df0e
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 116 deletions.
2 changes: 1 addition & 1 deletion antlr/ProtobufParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ serviceElement: optionDecl |
emptyDecl;

methodDecl: RPC methodName inputType RETURNS outputType SEMICOLON |
RPC methodName inputType RETURNS outputType L_BRACE methodElement* R_BRACE;
RPC methodName inputType RETURNS outputType L_BRACE methodElement* R_BRACE SEMICOLON?;

methodName : identifier;

Expand Down
Loading

0 comments on commit 269df0e

Please sign in to comment.