@ -387,9 +387,11 @@ function spaces_in_listlike(ctx::Context, node::Node)
@@ -387,9 +387,11 @@ function spaces_in_listlike(ctx::Context, node::Node)
# For parameters the trailing comma is configured from the parent
require_trailing_comma = has_tag ( node , TAG_TRAILING_COMMA )
allow_trailing_comma = has_tag ( node , TAG_TRAILING_COMMA_OPT )
elseif n_items > 0 && kind ( kids [ last_item_idx ] ) === K " macrocall " &&
! JuliaSyntax . has_flags ( kids [ last_item_idx ] , JuliaSyntax . PARENS_FLAG ) &&
! is_string_macro ( kids [ last_item_idx ] )
elseif n_items > 0 && predicate_contains ( kids [ last_item_idx ] ) do nd
return kind ( nd ) === K " macrocall " &&
! JuliaSyntax . has_flags ( nd , JuliaSyntax . PARENS_FLAG ) && ! is_string_macro ( nd )
end
# Unparenthesized macrocalls are scary even if hidden deep in the tree
require_trailing_comma = false
elseif multiline
require_trailing_comma = true