Port comment.
This commit is contained in:
parent
1411aca7b5
commit
767f44f94d
@ -38,6 +38,7 @@ use crate::error::CustomError;
|
|||||||
use crate::error::MyError;
|
use crate::error::MyError;
|
||||||
use crate::error::Res;
|
use crate::error::Res;
|
||||||
use crate::parser::macros::ak_element;
|
use crate::parser::macros::ak_element;
|
||||||
|
use crate::parser::macros::element;
|
||||||
use crate::parser::table::org_mode_table;
|
use crate::parser::table::org_mode_table;
|
||||||
use crate::types::Element;
|
use crate::types::Element;
|
||||||
|
|
||||||
@ -98,7 +99,8 @@ fn _element<'b, 'g, 'r, 's>(
|
|||||||
Element::FootnoteDefinition
|
Element::FootnoteDefinition
|
||||||
);
|
);
|
||||||
|
|
||||||
let comment_matcher = parser_with_context!(comment)(context);
|
element!(comment, context, input, Element::Comment);
|
||||||
|
|
||||||
let drawer_matcher = parser_with_context!(drawer)(context);
|
let drawer_matcher = parser_with_context!(drawer)(context);
|
||||||
let table_matcher = parser_with_context!(org_mode_table)(context);
|
let table_matcher = parser_with_context!(org_mode_table)(context);
|
||||||
let verse_block_matcher = parser_with_context!(verse_block)(context);
|
let verse_block_matcher = parser_with_context!(verse_block)(context);
|
||||||
@ -121,7 +123,6 @@ fn _element<'b, 'g, 'r, 's>(
|
|||||||
let _enter = span.enter();
|
let _enter = span.enter();
|
||||||
|
|
||||||
opt(alt((
|
opt(alt((
|
||||||
map(comment_matcher, Element::Comment),
|
|
||||||
map(drawer_matcher, Element::Drawer),
|
map(drawer_matcher, Element::Drawer),
|
||||||
map(table_matcher, Element::Table),
|
map(table_matcher, Element::Table),
|
||||||
map(verse_block_matcher, Element::VerseBlock),
|
map(verse_block_matcher, Element::VerseBlock),
|
||||||
|
Loading…
Reference in New Issue
Block a user