Skip to content

Commit

Permalink
Add bracket to multiple subscripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hong Ge committed Mar 17, 2017
1 parent e84f367 commit 53fd8ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ macro VarName(ex::Union{Expr, Symbol})
_1 = ""
while _2.head == :ref
if length(_2.args) > 2
_1 = foldl( (x,y)-> "$x, $y", map(string, _2.args[2:end])) * ", $_1"
_1 = "[" * foldl( (x,y)-> "$x, $y", map(string, _2.args[2:end])) * "], $_1"
else
_1 = string(_2.args[2]) * ", $_1"
end
Expand Down

0 comments on commit 53fd8ef

Please sign in to comment.