Skip to content

Commit

Permalink
fix parsing of <digit>.<op> to always favor the dot version of the op…
Browse files Browse the repository at this point in the history
…erator over floating-point literals. closes JuliaLang#4604

we were missing the .+ .- and .' cases
  • Loading branch information
JeffBezanson committed Oct 22, 2013
1 parent e296198 commit e294708
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 @@ -125,7 +125,7 @@
;; characters that can be in an operator
(define (opchar? c) (string.find op-chars c))
;; characters that can follow . in an operator
(define (dot-opchar? c) (and (char? c) (string.find ".*^/\\" c)))
(define (dot-opchar? c) (and (char? c) (string.find ".*^/\\+-'" c)))
(define (operator? c) (memq c operators))

(define (skip-to-eol port)
Expand Down

0 comments on commit e294708

Please sign in to comment.