From 3047627715f998d5662022fcacc4fc35d3897111 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 29 Sep 2026 04:25:07 +0200 Subject: [PATCH] Call the body funcCall refuses a name-read body --- format.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/format.go b/format.go index 133bb7b..f232179 100644 --- a/format.go +++ b/format.go @@ -136,8 +136,7 @@ type builtin struct { } // funcCall splits a "{token}" body shaped name(args) into its parts; ok is false -// for a plain field or alternation body. A '(' without a trailing ')' yields -// ok=false. +// for a name-read body. A '(' without a trailing ')' yields ok=false. func funcCall(body string) (name string, args []string, ok bool) { lp := indexOutside(body, '(') if lp < 0 || !strings.HasSuffix(body, ")") {