home
/
code
/
tt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd3fa56
)
Support comments
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 17 Mar 2021 15:15:17 +0000
(11:15 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 17 Mar 2021 15:15:17 +0000
(11:15 -0400)
tt.rkt
patch
|
blob
|
blame
|
history
diff --git
a/tt.rkt
b/tt.rkt
index
230e6ac
..
455e6e5
100644
(file)
--- a/
tt.rkt
+++ b/
tt.rkt
@@
-210,8
+210,11
@@
(define toks (string-split str))
(apply feed toks))
+(define (filter-comments lines)
+ (filter-not (λ (line) (string-prefix? line "#")) lines))
+
(define (str->feeds str)
- (map str->feed (
str->lines str
)))
+ (map str->feed (
filter-comments (str->lines str)
)))
(define (file->feeds filename)
(str->feeds (file->string filename)))
This page took
0.03535 seconds
and
4
git commands to generate.