Skip to content

Commit

Permalink
Quick hack so that reservations of enums embedded in messages does no…
Browse files Browse the repository at this point in the history
…t intefere with validation (#3)
  • Loading branch information
profhenry committed Jul 15, 2024
1 parent 56dc223 commit 7cb8934
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Enum:
'}' ';'?;

EnumElement:
Option | Literal | Reserved;
Option | Literal | ReservedEnum;

Literal:
name=Name '=' index=(LONG | HEX)
Expand All @@ -138,6 +138,10 @@ ExtensibleType:
Reserved:
'reserved' reservations+=Reservation (',' reservations+=Reservation)* ';'+;

// quick hack so that reservations of enums embedded in messages does not interfere
ReservedEnum:
'reserved' reservations+=Reservation (',' reservations+=Reservation)* ';'+;

Reservation:
IndexRange | StringLiteral;

Expand Down

0 comments on commit 7cb8934

Please sign in to comment.