Skip to content

Commit

Permalink
Fixed handling of strings in parse_pivot_arg() because of failed do…
Browse files Browse the repository at this point in the history
…ctest.
  • Loading branch information
Karandeep Singh committed Jul 15, 2023
1 parent dca1cdb commit 6a71deb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/parsing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ function parse_pivot_arg(tidy_expr::Union{Expr,Symbol,Number})
lhs = QuoteNode(lhs)
rhs = QuoteNode(rhs)
return :($lhs => $rhs)

elseif @capture(tidy_expr, lhs_ = rhs_String)
lhs = QuoteNode(lhs)
rhs = QuoteNode(rhs)
return :($lhs => $rhs)

# Need to avoid QuoteNode-ing rhs when rhs is an expression.
# You can't use !! interpolation inside of for-loops because
# macros are expanded at parse-time, so you instead need to do
Expand Down

0 comments on commit 6a71deb

Please sign in to comment.