Skip to content
Snippets Groups Projects
Unverified Commit d50f3aeb authored by Marihachi's avatar Marihachi Committed by GitHub
Browse files

title nesting

parent 8f2f449f
No related branches found
No related tags found
No related merge requests found
......@@ -9,23 +9,32 @@ lineBreak
spacing
= space / lineBreak
// title
// titile
title_nestContent
= inline
titleA_char
= !(lineBreak / "】") c:. { return c; }
= !(title_nestContent / lineBreak / "】") c:. { return c; }
titleA_content
titleA_text
= t:$(titleA_char+) { return t; }
titleA_content
= (title_nestContent / titleA_text)+
titleA
= "【" titleA_content "】"
titleB_char
= !(lineBreak / "]") c:. { return c; }
= !(title_nestContent / lineBreak / "]") c:. { return c; }
titleB_content
titleB_text
= t:$(titleB_char+) { return t; }
titleB_content
= (title_nestContent / titleB_text)+
titleB
= "[" titleB_content "]"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment