From 44d22a743ba822f253d9012201536f8d342e8908 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Mon, 31 Dec 2018 14:36:30 -0500 Subject: [PATCH] fix parsing of at-cmd for julia 1.1 --- src/conversion.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/conversion.jl b/src/conversion.jl index 48d35d99..f9b9aba9 100644 --- a/src/conversion.jl +++ b/src/conversion.jl @@ -215,8 +215,13 @@ function Expr(x::EXPR{MacroName}) end # cross compatability for line number insertion in macrocalls +if VERSION > v"1.1-" +Expr_cmd(x) = Expr(:macrocall, GlobalRef(Core, Symbol("@cmd")), nothing, x.val) +Expr_tcmd(x) = Expr(:macrocall, GlobalRef(Core, Symbol("@cmd")), nothing, x.val) +else Expr_cmd(x) = Expr(:macrocall, Symbol("@cmd"), nothing, x.val) Expr_tcmd(x) = Expr(:macrocall, Symbol("@cmd"), nothing, x.val) +end function Expr(x::EXPR{x_Str}) if x.args[1] isa BinarySyntaxOpCall