diff --git a/src/julia-parser.scm b/src/julia-parser.scm index 78066231654ec..253f4200cdf12 100644 --- a/src/julia-parser.scm +++ b/src/julia-parser.scm @@ -1183,7 +1183,7 @@ (if (null? al) (loop (list 'ref ex)) (case (car al) - ((vect) (loop (list* 'ref ex (cdr al)))) + ((vect) (loop (list* 'ref ex (map =-to-kw (cdr al))))) ((hcat) (loop (list* 'typed_hcat ex (cdr al)))) ((vcat) (loop (list* 'typed_vcat ex (cdr al)))) diff --git a/src/julia-syntax.scm b/src/julia-syntax.scm index fb6ea319e83f6..288b9543a197c 100644 --- a/src/julia-syntax.scm +++ b/src/julia-syntax.scm @@ -1954,8 +1954,6 @@ (let ((a (cadr lhs)) (idxs (cddr lhs)) (rhs (caddr e))) - (if (any assignment? idxs) - (syntax-deprecation "assignment inside indexing" "" #f)) (let* ((reuse (and (pair? a) (contains (lambda (x) (eq? x 'end)) idxs))) @@ -2010,8 +2008,6 @@ 'ref (lambda (e) (let ((args (cddr e))) - (if (any assignment? args) - (syntax-deprecation "assignment inside indexing" "" #f)) (if (has-parameters? args) (error "unexpected semicolon in array expression") (expand-forms (partially-expand-ref e)))))