X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Ftibdoc.g;h=80c8cefaa01077bc7d13787d028ecce72c29a3c3;hp=1c02f111e14568f55fe8e8cdf31b48d64582a793;hb=59eead6bf0f2d9a7abeba03f3fdab04625521faf;hpb=df76fcb56242a90011500ab89092d2108350a8ab diff --git a/tests/tibdoc.g b/tests/tibdoc.g index 1c02f11..80c8cef 100644 --- a/tests/tibdoc.g +++ b/tests/tibdoc.g @@ -59,7 +59,7 @@ s = Doc Doc = head:Header body:Body /ws Header = H:: { "header" { KeyVal */ ws } /ws } Body = B:: {Section}*/ws -Section = SectionHeader Paragraph* /ws +Section = SectionHeader ws! (Paragraph Paragraph) SectionHeader = "==" SectionHeaderBody "==" SectionHeaderBody = "=" SectionHeaderBody "=" > ws! alphanum++ ws! @@ -82,22 +82,21 @@ uli = "* " (ws! text &~ any (oli|uli)!) oli = ("# "|onums)! (ws! text &~ any (oli|uli)!) text = Item -Itemx = ws! Item - | () -Item = -// "[]":: blockquote Itemx -// > - "[]":: { UL:: uli+/ws } Itemx - | "[]":: { OL:: oli+/ws } Itemx - > "[]":: pre Itemx - > "[]":: link Itemx - > "[]":: structured Itemx - > "[]":: styled Itemx - > "[]":: (Chars:: alphanum++) Itemx - > "[]":: "\"" text "\"" Itemx - > "[]":: (Symbol:: sym++) Itemx - > "[]":: { Block:: text } Itemx +Item*/ws = + blockquote + > { UL:: uli+/ws } + | { OL:: oli+/ws } + > pre + > link + > structured + > styled + > (Chars:: alphanum++) + > "\"" text "\"" + > (Symbol:: sym++) +// > { Block:: text } + +blockquote = "adsfafewag" //blockquote = Blockquote:: "\"\"" (block | text "\"\"") pre = Verbatim:: "[verbatim]" { ~[]+ } /ws // FIXME doesn't work