PR 10275
svn: r15108
This commit is contained in:
parent
933f578002
commit
90a0a6e524
|
@ -128,20 +128,22 @@
|
||||||
[else
|
[else
|
||||||
(let ([start-line (or (lw-line lw) line)]
|
(let ([start-line (or (lw-line lw) line)]
|
||||||
[start-column (or (lw-column lw) col)])
|
[start-column (or (lw-column lw) col)])
|
||||||
(let-values ([(last-line first-column last-column)
|
(when (and start-line ;; if we don't have src loc info, just give up.
|
||||||
(add-spans/obj (lw-e lw) start-line start-column)])
|
start-column)
|
||||||
(unless (lw-line lw)
|
(let-values ([(last-line first-column last-column)
|
||||||
(set-lw-line! lw line))
|
(add-spans/obj (lw-e lw) start-line start-column)])
|
||||||
(set-lw-line-span! lw (- last-line start-line))
|
(unless (lw-line lw)
|
||||||
|
(set-lw-line! lw line))
|
||||||
(unless (lw-column lw)
|
(set-lw-line-span! lw (- last-line start-line))
|
||||||
(set-lw-column! lw col))
|
|
||||||
(let ([new-col (min (lw-column lw)
|
(unless (lw-column lw)
|
||||||
first-column)])
|
(set-lw-column! lw col))
|
||||||
(set-lw-column! lw new-col)
|
(let ([new-col (min (lw-column lw)
|
||||||
(set-lw-column-span! lw (- last-column new-col)))
|
first-column)])
|
||||||
|
(set-lw-column! lw new-col)
|
||||||
(values last-line first-column last-column)))]))
|
(set-lw-column-span! lw (- last-column new-col)))
|
||||||
|
|
||||||
|
(values last-line first-column last-column))))]))
|
||||||
(define (add-spans/obj e line col)
|
(define (add-spans/obj e line col)
|
||||||
(cond
|
(cond
|
||||||
[(string? e)
|
[(string? e)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user