diff options
Diffstat (limited to 'apps/cassiopeia/src/format/parser.rs')
-rw-r--r-- | apps/cassiopeia/src/format/parser.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/cassiopeia/src/format/parser.rs b/apps/cassiopeia/src/format/parser.rs index 430fee6332a7..d1f0bcdebc68 100644 --- a/apps/cassiopeia/src/format/parser.rs +++ b/apps/cassiopeia/src/format/parser.rs @@ -53,6 +53,9 @@ pub(crate) fn parse<'l>(lex: LineLexer<'l>) -> LineCfg { (Stop(_), LineToken { tt: T::Date, slice }) => Stop(parse_datetime(slice)), (Invoice(_), LineToken { tt: T::Date, slice }) => Invoice(parse_date(slice)), + // Pass empty lines through, + (Empty, _) => Empty, + // Ignore everything else (which will be filtered) _ => Ignore, }) |