Skip to content

Commit 166c713

Browse files
authored
Merge pull request #354 from julia-vscode/sp/fix-ncat-1-6
Fix ncat conversion on 1.6
2 parents 483f48e + 4d633d9 commit 166c713

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/conversion.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ function to_codeobject(x::EXPR)
215215
int !== nothing && return int
216216

217217
Expr(Symbol(lowercase(String(x.head))))
218+
elseif VERSION < v"1.7.0-DEV.1129" && x.head === :ncat
219+
dim = tryparse(Int, String(x.args[1].head))
220+
dim == nothing && return Expr(:error)
221+
head = dim == 1 ? :hcat : :vcat
222+
Expr(head, to_codeobject.(x.args[2:end])...)
218223
elseif x.head === :errortoken
219224
Expr(:error)
220225
else

0 commit comments

Comments
 (0)