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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user