Enum parsing error when having a final comma in the block but no following enum value declaration