Skip to content

Commit

Permalink
allow x[i,j;k] syntax to be parsed JuliaLang#7225
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebolewski committed Sep 5, 2014
1 parent 517f872 commit 4c0ef54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,10 @@
(cons 'vcat (reverse (cons nxt lst))))
(loop (cons nxt lst) (parse-eq* s))))
((#\;)
(error "unexpected semicolon in array expression"))
(if (eqv? (require-token s) closer)
(loop lst nxt)
(let ((params (parse-arglist s closer)))
`(vcat ,@params ,@lst ,nxt))))
((#\] #\})
(error (string "unexpected \"" t "\"")))
(else
Expand Down

0 comments on commit 4c0ef54

Please sign in to comment.