original commit: ac35f4a6c9ec210e23beec221c05a82d5137b993
tokens
Matthew Flatt 23 years ago
parent 1975e21608
commit fc6a3fc9bf

@ -218,6 +218,6 @@
(define-struct position (offset line col)) (define-struct position (offset line col))
(define (get-position ip) (define (get-position ip)
(let-values (((line col off) (port-next-location ip))) (let-values (((line col off) (port-next-location ip)))
(make-position (add1 off) (if line (add1 line) #f) (if col (add1 col) #f)))) (make-position off line col)))
) )

Loading…
Cancel
Save