aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/exttmpl
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-07-23 19:58:32 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-07-23 19:58:32 +0200
commite167221e49e59df0b62c0ee5b27ead2043c58571 (patch)
tree13a247a37bf20b3631992805a46f9183194ccdc9 /cmd/exttmpl
parent81945f9221819b5de8c4dc81f576e8aac53811f6 (diff)
Set name for parse tree
Diffstat (limited to 'cmd/exttmpl')
-rw-r--r--cmd/exttmpl/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/exttmpl/main.go b/cmd/exttmpl/main.go
index 9211a88..c120ad2 100644
--- a/cmd/exttmpl/main.go
+++ b/cmd/exttmpl/main.go
@@ -120,7 +120,7 @@ func process(path string) {
currentPath = path
currentFile = try2(os.ReadFile(path))
trees := make(map[string]*parse.Tree)
- t := parse.New("name")
+ t := parse.New(path)
t.Mode |= parse.ParseComments | parse.SkipFuncCheck
try2(t.Parse(string(currentFile), "", "", trees))
for _, t := range trees {