diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-23 19:58:32 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-23 19:58:32 +0200 |
commit | e167221e49e59df0b62c0ee5b27ead2043c58571 (patch) | |
tree | 13a247a37bf20b3631992805a46f9183194ccdc9 /cmd | |
parent | 81945f9221819b5de8c4dc81f576e8aac53811f6 (diff) |
Set name for parse tree
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/exttmpl/main.go | 2 |
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 { |