We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7723a86 commit d3d6478Copy full SHA for d3d6478
src/match/macro.jl
@@ -69,11 +69,11 @@ macro capture(ex, pat)
69
pat = subtb(subor(pat))
70
quote
71
$([:($(esc(b)) = nothing) for b in bs]...)
72
- env = trymatch($(Expr(:quote, pat)), $(esc(ex)))
+ env = trymatch($(esc(Expr(:quote, pat))), $(esc(ex)))
73
if env == nothing
74
false
75
else
76
- $([:($(esc(b)) = get(env, $(Expr(:quote, b)), nothing)) for b in bs]...)
+ $([:($(esc(b)) = get(env, $(esc(Expr(:quote, b))), nothing)) for b in bs]...)
77
true
78
end
79
0 commit comments