Skip to content

Commit

Permalink
Support genus names with multiple hyphens; closes gnames#203
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymarsden committed Nov 13, 2021
1 parent 6e213ef commit 4ebcba6
Show file tree
Hide file tree
Showing 3 changed files with 3,019 additions and 2,939 deletions.
6 changes: 5 additions & 1 deletion ent/parser/grammar.peg
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,16 @@ CapWord <- CapWordWithDash / CapWord1

CapWord1 <- NameUpperChar NameLowerChar NameLowerChar+ '?'?

CapWordWithDash <- CapWord1 Dash (UpperAfterDash / LowerAfterDash)
CapWordWithDash <- CapWord1 Dash WordAfterDash

WordAfterDash <- (WordWithDash / UpperAfterDash / LowerAfterDash)

UpperAfterDash <- CapWord1

LowerAfterDash <- Word1

WordWithDash <- (CapWord1 / Word1) Dash WordAfterDash

TwoLetterGenus <- ('Ca' / 'Do' / 'Ea' / 'Ge' / 'Ia' / 'Io' / 'Ix' / 'Lo' /
'Oa' / 'Oo' / 'Nu' / 'Ra' / 'Ty' / 'Ua' / 'Aa' / 'Ja' / 'Zu' / 'La' / 'Qu' /
'As' / 'Ba')
Expand Down
Loading

0 comments on commit 4ebcba6

Please sign in to comment.