Skip to content

Commit ab00ecf

Browse files
committed
parse 3x as 3 .* x, not 3*x, so that literal multiplications by juxtaposition get fused
1 parent 46383a2 commit ab00ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/julia-parser.scm

+1-1
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@
865865
(begin
866866
#;(if (and (number? ex) (= ex 0))
867867
(error "juxtaposition with literal \"0\""))
868-
`(call * ,ex ,(parse-unary s))))
868+
`(call .* ,ex ,(parse-unary s))))
869869
(else ex))))
870870

871871
(define (invalid-identifier-name? ex)

0 commit comments

Comments
 (0)