Spell a reference path as arm.isRefPath, and say where each tail's head is held

This commit is contained in:
2026-09-29 16:24:10 +02:00
committed by Lillem4n
parent dee1e186e3
commit acbc6943b8
3 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ func expand(s *generatorState, t *template, sc renderScope) string {
// read one row, either read twice gives one value, and a shown operand is the operand
// computed. Every other name is drawn afresh, so {word} {word} still draws twice.
func readField(s *generatorState, t *template, hold *drawMemo, sc renderScope, a arm) readValue {
if isRef(a.head) && len(a.tail) > 0 {
if a.isRefPath() {
return readReference(s, t, sc, a)
}
if sc.draws.trace != nil {