Use `,' to denote list
* undone/main.scm (add): When encountering a value that starts with `,', assume that it should be turned into a list.
This commit is contained in:
parent
206294033b
commit
3a132e8040
1 changed files with 8 additions and 3 deletions
|
@ -127,9 +127,14 @@
|
||||||
(append
|
(append
|
||||||
`((content . ,(read-delimited "")))
|
`((content . ,(read-delimited "")))
|
||||||
(map (lambda (arg)
|
(map (lambda (arg)
|
||||||
(let ((pair (string-split arg #\=)))
|
(let* ((pair (string-split arg #\=))
|
||||||
(cons (string->symbol (car pair))
|
(var (string->symbol (car pair)))
|
||||||
(cadr pair))))
|
(val (cadr pair)))
|
||||||
|
(if (char=? (string-ref val 0) #\,)
|
||||||
|
(set! val (string-split
|
||||||
|
(substring val 1) #\,)))
|
||||||
|
|
||||||
|
(cons var val)))
|
||||||
args))))))
|
args))))))
|
||||||
|
|
||||||
(define-view default
|
(define-view default
|
||||||
|
|
Loading…
Reference in a new issue