diff --git a/src/parseexpr.jl b/src/parseexpr.jl index 585fca51014..7d8e4edfc20 100644 --- a/src/parseexpr.jl +++ b/src/parseexpr.jl @@ -4,7 +4,11 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. function tryParseIdxSet(arg::Expr) - if arg.head === :(=) + is_julia_v1 = @static (VERSION >= v"1.0-" ? true : false) + if is_julia_v1 && arg.head === :kw + @assert length(arg.args) == 2 + return true, arg.args[1], arg.args[2] + elseif arg.head === :(=) @assert length(arg.args) == 2 return true, arg.args[1], arg.args[2] elseif isexpr(arg, :call) && arg.args[1] === :in