Skip to content

Commit

Permalink
fix #2514, "p=+\n1" should parse the same as "p=+"
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBezanson committed Mar 8, 2013
1 parent ac7a4a2 commit cdb60fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/julia-parser.scm
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@
(list 'call op (parse-factor s)))
num))
(let ((next (peek-token s)))
(cond ((closing-token? next)
(cond ((or (closing-token? next) (newline? next))
op) ; return operator by itself, as in (+)
((eqv? next #\{) ;; this case is +{T}(x::T) = ...
(ts:put-back! s op)
Expand Down

0 comments on commit cdb60fd

Please sign in to comment.