Can't figure out where goes wrong with this snippet... Any hint? #1114
Answered
by
L3MON4D3
LintaoAmons
asked this question in
Q&A
-
local append2 = postfix({
trig = ".append2",
}, {
d(1, function(_, parent)
local matched = parent.snippet.env.POSTFIX_MATCH
return sn(nil, {
fmt("{} = append({}, {})", { t({ matched }), rep(1), i(1) }),
})
end),
}) |
Beta Was this translation helpful? Give feedback.
Answered by
L3MON4D3
Jan 24, 2024
Replies: 1 comment 1 reply
-
Aaaah, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
LintaoAmons
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aaaah,
fmt
shouldn't be wrapped in a table, justfmt(...)
instead of{fmt(...),}
should do it