Parsing of month comments.
This commit is contained in:
parent
f06949b545
commit
58f6391345
2 changed files with 13 additions and 1 deletions
|
@ -65,7 +65,10 @@
|
||||||
(foldl (lambda (mr value)
|
(foldl (lambda (mr value)
|
||||||
(member-record-sub-prepend
|
(member-record-sub-prepend
|
||||||
mr output kind
|
mr output kind
|
||||||
(list marker (string->month (car value)) (cdr value))))
|
(let* ((mspec (string-first+rest (car value)))
|
||||||
|
(month (string->month (car mspec)))
|
||||||
|
(comment (cdr mspec)))
|
||||||
|
(list marker month (cdr value) comment))))
|
||||||
mr value)))
|
mr value)))
|
||||||
(else
|
(else
|
||||||
(member-record-sub-set mr output key value)))))
|
(member-record-sub-set mr output key value)))))
|
||||||
|
|
|
@ -85,6 +85,15 @@
|
||||||
(test-equal? string-repeat
|
(test-equal? string-repeat
|
||||||
(string-repeat "š" 4)
|
(string-repeat "š" 4)
|
||||||
"šššš")
|
"šššš")
|
||||||
|
(test-equal? string-first+rest
|
||||||
|
(string-first+rest "asdf rest")
|
||||||
|
'("asdf" . "rest"))
|
||||||
|
(test-equal? string-first+rest
|
||||||
|
(string-first+rest "asdf rest test rest")
|
||||||
|
'("asdf" . "rest test rest"))
|
||||||
|
(test-equal? string-first+rest
|
||||||
|
(string-first+rest "asdf")
|
||||||
|
'("asdf" . ""))
|
||||||
))
|
))
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue