Skip to content

Commit

Permalink
Fix printing of kwcalls
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Aug 8, 2024
1 parent c0972c9 commit c23ce57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/printing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ end
function pattern_match_kw_call(expr)
if isexpr(expr, :call)
f = string(expr.args[1])
is_kw = occursin("#kw#", f) || (startswith(f, "#") && endswith(f, "_kw"))
is_kw = expr.args[1] === Core.kwcall ||
occursin("#kw#", f) || (startswith(f, "#") && endswith(f, "_kw"))
else
is_kw = false
end
Expand Down

0 comments on commit c23ce57

Please sign in to comment.