regression fix

This commit is contained in:
Luxferre
2026-07-10 10:20:23 +03:00
parent 94a809d224
commit 38e8de1faf
3 changed files with 6 additions and 12 deletions
+3 -7
View File
@@ -268,11 +268,7 @@ func (c *Clyx) popCallerToken() any {
}
}
if stream == nil {
if len(c.tokenStreams) == 0 {
stream = &c.tokens
} else {
return nil
}
stream = &c.tokens
}
if len(*stream) == 0 { return nil }
t := (*stream)[0]
@@ -296,11 +292,11 @@ func (c *Clyx) cmdDefw() {
break
}
}
if stream == nil && len(c.tokenStreams) == 0 {
if stream == nil {
stream = &c.tokens
}
var val any
if stream != nil && len(*stream) > 0 {
if len(*stream) > 0 {
t0 := (*stream)[0]
isQForm := false
if s, ok := t0.(string); ok && s == "[" { isQForm = true } else if _, ok := t0.([]any); ok { isQForm = true }