Refuse a name read once only when read whole, and name every way out in the scope and draw-group refusals

This commit is contained in:
2026-10-03 12:14:58 +02:00
committed by Lillem4n
parent c5468d613f
commit 0b0370936a
4 changed files with 21 additions and 17 deletions
+3
View File
@@ -297,6 +297,9 @@ func checkBind(t formatToken) error {
if _, _, err := refShape(ref); err != nil {
return fmt.Errorf("token {%s}: %w", t.body, err)
}
if name == "" {
return fmt.Errorf("token {%s}: a binding names nothing; write {%s as n}", t.body, ref)
}
if isOption(name) {
return fmt.Errorf("token {%s}: %q is an option and can never be a name", t.body, name)
}