Rename grammar's NameRead to PathRead and CheckName to CheckIdentifier, so a name in the engine is only a bound name
This commit is contained in:
@@ -381,7 +381,7 @@ func compileFields(m map[string]any, pos position) (map[string]node, error) {
|
||||
if isOption(k) {
|
||||
continue
|
||||
}
|
||||
if err := grammar.CheckName(k); err != nil {
|
||||
if err := grammar.CheckIdentifier(k); err != nil {
|
||||
return nil, fmt.Errorf("field %w", err)
|
||||
}
|
||||
n, err := compileAt(m[k], pos)
|
||||
|
||||
Reference in New Issue
Block a user