Skip to content

Commit

Permalink
AVRO-3403: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
opwvhk committed Sep 8, 2022
1 parent d63d0de commit 858957f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions share/idl_grammar/org/apache/avro/idl/Idl.g4
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ grammar Idl;

// \u001a is the ascii 'sub'(stitute) character, used as end-of-file marker in older systems. It was also used as "end of character stream".
// Thus, accept it at end of the input and ignore anything that comes after it. (See: https://en.wikipedia.org/wiki/Substitute_character)
idlFile: (
protocol=protocolDeclaration |
namespace=namespaceDeclaration? mainSchema=mainSchemaDeclaration? (imports+=importStatement|namedSchemas+=namedSchemaDeclaration)*
) ('\u001a' .*?)? EOF;
idlFile: protocol=protocolDeclaration ('\u001a' .*?)? EOF;

protocolDeclaration: (doc=DocComment)? schemaProperties+=schemaProperty* Protocol name=identifier body=protocolDeclarationBody;

Expand Down

0 comments on commit 858957f

Please sign in to comment.