Skip to content
Snippets Groups Projects
Commit 5e6c9012 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

location: Start column numbers at 1.

* guix/utils.scm (source-properties->location): Use COL + 1.
parent d25468bc
No related branches found
No related tags found
No related merge requests found
......@@ -662,4 +662,5 @@ (define (source-properties->location loc)
(let ((file (assq-ref loc 'filename))
(line (assq-ref loc 'line))
(col (assq-ref loc 'column)))
(location file (and line (+ line 1)) col)))
;; In accordance with the GCS, start line and column numbers at 1.
(location file (and line (+ line 1)) (and col (+ col 1)))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment