Reserve the reference prefix in authored names, and report one compile error

This commit is contained in:
Mikael Göransson
2026-08-27 23:46:44 +02:00
committed by lilleman-tw
parent af0c99809c
commit e14f3a4145
3 changed files with 17 additions and 5 deletions
+1 -2
View File
@@ -38,8 +38,7 @@ func linkRefs(root map[string]node) error {
// walkNodes calls fn once per contained node, passing the dot path that reaches it,
// visiting keys in sorted order so which of several broken nodes gets reported does
// not depend on map iteration. fn runs before a node's children, so a binding it
// adds to a template's fields is walked too.
// not depend on map iteration.
func walkNodes(root map[string]node, fn func(path string, n node) error) error {
seen := map[node]bool{}
var visit func(string, node) error