Parse and format logs

This commit is contained in:
Joscha 2021-12-31 17:54:26 +01:00
parent 0e4ef7fef3
commit 017098da34
4 changed files with 47 additions and 3 deletions

View file

@ -140,8 +140,11 @@ note = {
~ description
}
log_head = !{ "LOG" ~ datum ~ eol }
log = { log_head ~ description }
empty_line = _{ WHITESPACE* ~ NEWLINE }
command = { include | timezone | task | note }
command = { include | timezone | task | note | log }
file = ${ SOI ~ (empty_line* ~ command)* ~ empty_line* ~ WHITESPACE* ~ EOI }