Skip to content

Commit f1bbf7c

Browse files
reid-spencerclaude
andcommitted
Update EBNF zone rule to match fastparse parser
Zone now requires minimum 2 characters and uppercase only, matching the CharsWhileIn("A-Z0-9:.+\\-", 2) parser rule. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent dd65a57 commit f1bbf7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

language/shared/src/main/resources/riddl/grammar/ebnf-grammar.ebnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ real_predef_types = "Current" | "Length" | "Luminosity" | "Mass" | "Mole" | "Num
9797
time_predef_types = "Duration" | "DateTime" | "Date" | "TimeStamp" | "Time" ;
9898
zoned_predef_types = ("ZonedDate" | "ZonedDateTime") "(" [zone] ")" ;
9999
other_predef_types = "Abstract" | "Location" | "Nothing" | "UUID" | "UserId" ;
100-
zone = /[A-Za-z0-9:.+-]*/ ;
100+
zone = /[A-Z0-9:.+-]{2,}/ ;
101101
102102
(* Type Expressions *)
103103
pattern_type = "Pattern" "(" {literal_string} ")" ;

0 commit comments

Comments
 (0)