Skip to content

Commit 1340768

Browse files
authored
Fix printing of kwcalls (#354)
1 parent 5254958 commit 1340768

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/printing.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ end
4444
function pattern_match_kw_call(expr)
4545
if isexpr(expr, :call)
4646
f = string(expr.args[1])
47-
is_kw = occursin("#kw#", f) || (startswith(f, "#") && endswith(f, "_kw"))
47+
is_kw = expr.args[1] === Core.kwcall ||
48+
occursin("#kw#", f) || (startswith(f, "#") && endswith(f, "_kw"))
4849
else
4950
is_kw = false
5051
end

0 commit comments

Comments
 (0)