Call the body funcCall refuses a name-read body

This commit is contained in:
2026-09-29 04:25:07 +02:00
committed by Lillem4n
parent fe2fea5da2
commit 3047627715
+1 -2
View File
@@ -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, ")") {