Parse range for --range
This commit is contained in:
parent
d67bf0aeea
commit
279bf4a4d1
4 changed files with 103 additions and 3 deletions
|
|
@ -142,3 +142,8 @@ empty_line = _{ WHITESPACE* ~ NEWLINE }
|
|||
command = { include | timezone | task | note }
|
||||
|
||||
file = ${ SOI ~ (empty_line* ~ command)* ~ empty_line* ~ WHITESPACE* ~ EOI }
|
||||
|
||||
today = { "today" }
|
||||
range_start = { (datum | today) ~ delta? }
|
||||
range_end = { (datum | today) ~ delta? | delta }
|
||||
range = { range_start ~ ("--" ~ range_end)? }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue