Fix column off-by-one error in source tracking
This commit is contained in:
parent
c3dc447fe4
commit
dd3fe5369d
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,6 @@ reading immediately. Should be a subset of *SPECIAL-TOKEN-CHARS*.")
|
||||||
token-source (cons source (cons line column)))))
|
token-source (cons source (cons line column)))))
|
||||||
(loop :for char := (read-char stream)
|
(loop :for char := (read-char stream)
|
||||||
:for next := (peek-char nil stream nil :eof)
|
:for next := (peek-char nil stream nil :eof)
|
||||||
:do (incf column)
|
|
||||||
:do
|
:do
|
||||||
(cond
|
(cond
|
||||||
;; Break for next token at whitespace
|
;; Break for next token at whitespace
|
||||||
|
@ -195,6 +194,7 @@ reading immediately. Should be a subset of *SPECIAL-TOKEN-CHARS*.")
|
||||||
(next-token))
|
(next-token))
|
||||||
((eql :eof next)
|
((eql :eof next)
|
||||||
(next-token)))))
|
(next-token)))))
|
||||||
|
:do (incf column)
|
||||||
:until (eql :eof next)))
|
:until (eql :eof next)))
|
||||||
(nreverse tokens)))
|
(nreverse tokens)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue