Skip to content

Commit

Permalink
Fix parser bug with event fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
grandseiken committed Jul 22, 2016
1 parent 912cb19 commit 71cf635
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private void parseOptionDefinition() {
consumeTokenAs(null);
if (!isToken(SchemaLexer.IDENTIFIER)) {
typeMarker.drop();
error(marker, FIELD_DEFINITION, Construct.STATEMENT, "Expected typename after '%s<'.", name);
error(marker, FIELD_DEFINITION, Construct.STATEMENT, "Expected typename after '%s'.", name);
return null;
}
name = name + getIdentifier();
Expand Down Expand Up @@ -278,6 +278,7 @@ private void parseFieldDefinition() {
consumeTokenAs(FIELD_NAME);
if (isToken(SchemaLexer.SEMICOLON)) {
consumeTokenAs(null);
marker.done(FIELD_DEFINITION);
return;
}
if (!isToken(SchemaLexer.EQUALS)) {
Expand Down

0 comments on commit 71cf635

Please sign in to comment.