Increment source line *after* inserting END-OF-STATEMENT

This commit is contained in:
John Lorentzson 2025-07-13 20:53:05 +02:00
parent 1b2b65cd41
commit fea2a85b54

View file

@ -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))