Skip to content

Commit

Permalink
changed location of implicit progn
Browse files Browse the repository at this point in the history
  • Loading branch information
YarinHeffes committed Jan 9, 2025
1 parent 5b06f4b commit 367b0cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parser/expression.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,10 @@ Rebound to NIL parsing an anonymous FN.")
:body (make-node-body
:nodes nodes
:last-node (first (last nodes)))
:location (form-location source (first forms)))))
:location (source:make-location
source
(cons (source:span-start (cst:source (first forms)))
(source:span-end (cst:source (first (last forms)))))))))

(defun parse-variable (form source)
(declare (type cst:cst form)
Expand Down

0 comments on commit 367b0cb

Please sign in to comment.