X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Ftibdoc.g;fp=tests%2Ftibdoc.g;h=8a0928a352abafdf73977f5533ab20ff33493c8e;hp=072c62501f3d7ac241399ad23e42298860c5756f;hb=dda22f5fe5cc0b84264c1a0d3369048c81a140f2;hpb=5fdbef59b07d4769f79337e77d1ee6c1d5762f52 diff --git a/tests/tibdoc.g b/tests/tibdoc.g index 072c625..8a0928a 100644 --- a/tests/tibdoc.g +++ b/tests/tibdoc.g @@ -63,7 +63,7 @@ Body = { Section } */ws Section = SectionHeader ws! Paragraph* SectionHeader = "==" SectionHeaderBody "==" SectionHeaderBody = "=" SectionHeaderBody "=" - > ws! alphanum++ ws! + > ws! text ws! sp = " "** blank = sp! "\n" sp! "\n" ws! @@ -74,6 +74,8 @@ num = [0-9]++ Paragraph = { Blockquote:: "\"\" " text } > HR:: { "---" "-"* } + > P:: { UL:: uli+/ws } + > P:: { OL:: oli+/ws } > P:: { text } onums = nums (". "|") ")! @@ -95,7 +97,7 @@ Item*/ws = > structured > styled > (Chars:: alphanum++) - > "\"" text "\"" + > Quotes:: "\"" text "\"" > (Symbol:: sym++) > { Block:: text } @@ -123,7 +125,8 @@ styled = Underline:: "__" text "__" block = { text } -link = text:({ text }|word) "->" href:(url|email) +link = text:({ text }|word) "->" ws! href:href +href = url | email | {href} structured = command & "\\" ([a-zA-Z0-9]++)! block? > glyph @@ -161,7 +164,8 @@ url = Mailto:: "mailto" ":" email -> ~urlv host:host port:(":" nums)? path:("/" urlpath)? - -> ~urlv + ref:("#" urlpath)? + -> ~(urlv|[\#]) url_login = Login:: username:username password:(":" password) "@" method = [+\-.a-z0-9]+ domain = (part +/ ".") -> ~"."