feat: fixed width areas

This commit is contained in:
PoiScript 2019-01-21 23:04:35 +08:00
parent 918b14de52
commit 19f7bacf55
5 changed files with 17 additions and 1 deletions

View file

@ -122,6 +122,7 @@ pub enum Event<'a> {
Clock,
Comment(&'a str),
FixedWidth(&'a str),
TableStart,
TableEnd,
@ -259,6 +260,7 @@ impl<'a> Parser<'a> {
Element::DynBlock { name, args, .. } => Event::DynBlockBeg { name, args },
Element::ExampleBlock { args, cont } => Event::ExampleBlock { args, cont },
Element::ExportBlock { args, cont } => Event::ExportBlock { args, cont },
Element::FixedWidth(f) => Event::FixedWidth(f),
Element::FnDef { label, cont } => Event::FnDef { label, cont },
Element::Keyword { key, value } => Event::Keyword { key, value },
Element::List { ordered, .. } => Event::ListBeg { ordered },