Allow accepting blame output in listings.

This commit is contained in:
Dominik Pantůček 2023-05-15 11:29:20 +02:00
parent 2ede889714
commit 73c45ab9db

View file

@ -39,7 +39,8 @@
(chicken format)
testing
ansi
util-kwargs)
util-kwargs
util-dict-list)
;; Returns the number of digits required to represent a given number
;; in decimal format.
@ -163,7 +164,10 @@
(display ctx-pre)))
(display (sprintf "~A~A~A"
(format-line-number number digits)
(car lines)
(let ((line (car lines)))
(if (ldict? line)
(ldict-ref line 'line)
line))
(let ((comment (highlight-comment number highlights)))
(if comment
(sprintf " # <<< ~A" comment)