Cap a struct type's records at 1024, find a lone reference in the value a template holds, word range refusals as unproven, and scope the lone-reference Decision to arguments and tags
Tests / vet + fmt + tests (pull_request) Successful in 1m0s

This commit is contained in:
2026-09-15 17:35:15 +02:00
parent ef00000436
commit e4ebfdb28d
4 changed files with 57 additions and 48 deletions
+4 -4
View File
@@ -538,10 +538,10 @@ tokens add cost in proportion to the output.
whole — though only a leading one could collide — keeps one simple name rule
instead of a leading-position special case. The JSON string is what makes the
library's own advice reachable: the error for an object holding only a format
names `"…"`, and that spelling has to work where it is printed. One reference alone,
`{/users}`, is refused naming the path `users`: both render the same text, and only
the path names a record. `IsTemplate` exports the rule, so the CLI, struct tags and
any other caller read one.
names `"…"`, and that spelling has to work where it is printed. An argument or struct
tag of one reference alone, `{/users}`, is refused naming the path `users`: both
render the same text, and only the path names a record. `IsTemplate` exports the
rule, so the CLI, struct tags and any other caller read one.
- **An inline template skips the cycle fence, and only that one.** `New` proves the
loaded tree acyclic, an inline node is a finite tree of its own, and nothing in
the tree can reference it, so no render of it reaches itself. Every other fence