Skip to content

Commit b8a488b

Browse files
authored
fix (x...) deprecation (#24547) followed by newline (#24689)
1 parent 7704b09 commit b8a488b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/julia-parser.scm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,9 @@
22702270
;; value in parentheses (x)
22712271
(if (and (pair? ex) (eq? (car ex) '...))
22722272
(let ((lineno (input-port-line (ts:port s))))
2273-
(if (or accept-dots-without-comma (eq? (peek-token s) '->))
2273+
(if (or accept-dots-without-comma (eq? (with-bindings ((whitespace-newline #f))
2274+
(peek-token s))
2275+
'->))
22742276
ex
22752277
(begin (syntax-deprecation lineno
22762278
(string "(" (deparse (cadr ex)) "...)")

0 commit comments

Comments
 (0)