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:
2026-10-03 14:16:57 +02:00
committed by Lillem4n
parent 8c3ee104f6
commit 2bb795e08c
10 changed files with 375 additions and 369 deletions
+4 -2
View File
@@ -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
}