Skip to content

Commit

Permalink
AVRO-4062 Allow leading underscore for names in idl
Browse files Browse the repository at this point in the history
  • Loading branch information
Isak Lindbeck committed Sep 26, 2024
1 parent 981fb70 commit 9d1ce31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/idl_grammar/org/apache/avro/idl/Idl.g4
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,6 @@ fragment HexadecimalExponent: [pP] [+\-]? Digit+;
* Also note that this token should *only* be used in the identifier grammar rule above.
*/
IdentifierToken: ( '`' IdentifierPart '`' | IdentifierPart)([.-] ( '`' IdentifierPart '`' | IdentifierPart) )*;
fragment IdentifierPart: [\p{XID_Start}] [\p{XID_Continue}]*;
fragment IdentifierPart: [\p{XID_Start}_] [\p{XID_Continue}]*;
// See discussion in AVRO-1022, AVRO-2659, AVRO-3115
// fragment IdentifierPart: [A-Za-z] [A-Za-z0-9_]*
// fragment IdentifierPart: [A-Za-z_] [A-Za-z0-9_]*

0 comments on commit 9d1ce31

Please # to comment.