Split the picks and the name fences out of name.go, state the repeat refusal and the naming rule where they hold, and draw a memo's variants one way
This commit is contained in:
@@ -235,10 +235,12 @@ func compileString(s string, site tableSite) (*template, error) {
|
||||
return nil, err
|
||||
}
|
||||
if site.table != nil {
|
||||
if err := checkTableToks(toks, unbound); err != nil {
|
||||
if err := refuseTableBinding(toks); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
unbound = nil
|
||||
if len(unbound) > 0 {
|
||||
return nil, unbound[0].err
|
||||
}
|
||||
}
|
||||
return &template{format: s, tokens: toks, repeat: 1, fromString: true, site: site, unbound: unbound}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user