From 4461e79524c962d3adca55bcf1075bc678ef38d7 Mon Sep 17 00:00:00 2001 From: Mus M Date: Mon, 2 Jan 2017 15:38:22 -0500 Subject: [PATCH] Fix macro hygenie --- src/xpath.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xpath.jl b/src/xpath.jl index 549d2ff..33facbd 100644 --- a/src/xpath.jl +++ b/src/xpath.jl @@ -122,7 +122,7 @@ macro xpath_parse(arg1, arg2) end $(esc(:parsed)) = Expr(:call, :push!, $(esc(:parsed)), Expr(:tuple,Expr(:quote,$(esc(arg1))),a2)) else - push!($(esc(:parsed))::Vector{SymbolAny}, ($(arg1),$(arg2))) + push!($(esc(:parsed))::Vector{SymbolAny}, ($(esc(arg1)),$(esc(arg2)))) end ) end @@ -135,7 +135,7 @@ macro xpath_fn(arg1, arg2) end Expr(:tuple,Expr(:quote,$(esc(arg1))),a2) else - ($(arg1),$(arg2)) + ($(esc(arg1)),$(esc(arg2))) end ) end