Increment source line *after* inserting END-OF-STATEMENT
This commit is contained in:
parent
1b2b65cd41
commit
fea2a85b54
1 changed files with 4 additions and 4 deletions
|
@ -164,13 +164,13 @@ reading immediately. Should be a subset of *SPECIAL-TOKEN-CHARS*.")
|
|||
(next-token))
|
||||
;; Process and add a newline
|
||||
((char= char #\Newline)
|
||||
(setf in-comment-p nil
|
||||
line (1+ line)
|
||||
column 0)
|
||||
(unless (zerop (length token-text-buffer))
|
||||
(next-token))
|
||||
(vector-push #\Newline token-text-buffer)
|
||||
(next-token))
|
||||
(next-token)
|
||||
(setf in-comment-p nil
|
||||
line (1+ line)
|
||||
column 0))
|
||||
;; Starting a comment
|
||||
((and (member char *line-comment-chars* :test #'char=) (not in-comment-p))
|
||||
(unless (zerop (length token-text-buffer))
|
||||
|
|
Loading…
Add table
Reference in a new issue