Skip to content

Commit 64e1595

Browse files
committed
no ex warning for botany, prol. rank (close #280, close #282)
1 parent 3535ae1 commit 64e1595

4 files changed

Lines changed: 3667 additions & 3633 deletions

File tree

ent/parser/ast.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,9 @@ func (p *Engine) newAuthorsGroupNode(n *node32) *authorsGroupNode {
10451045
}
10461046
switch n.pegRule {
10471047
case ruleAuthorEx:
1048-
p.addWarn(parsed.AuthExWarn)
1048+
if p.code == nomcode.Zoological || p.code == nomcode.Unknown {
1049+
p.addWarn(parsed.AuthExWarn)
1050+
}
10491051
t2t = teamEx
10501052
t2wrd = p.newWordNode(n, parsed.AuthorWordType)
10511053
ex := strings.TrimSpace(t2wrd.Verbatim)

ent/parser/grammar.peg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Rank <- (RankForma / RankVar / RankSsp / RankOther / RankOtherUncommon /
8484
RankNotho <- (('notho' ('var' / 'fo' / 'f' / 'subsp' / 'ssp' / 'sp' /
8585
'morth' / 'supsp' / 'su' )) / 'nvar') ('.' / &(SpaceCharEOI))
8686

87-
RankOtherUncommon <- ('*' / 'natio' / 'nat.' / 'nat' / 'f.sp' /
87+
RankOtherUncommon <- ('*' / 'natio' / 'nat.' / 'nat' / 'f.sp' / 'prol.' /
8888
'α' / 'ββ' / 'β' / 'γ' / 'δ' / 'ε' / 'φ' / 'θ' / 'μ' / 'a.' / 'b.' /
8989
'c.' / 'd.' / 'e.' / 'g.' / 'k.' /
9090
'mut.') &(SpaceCharEOI)

0 commit comments

Comments
 (0)