X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=tests%2Ftibdoc.g;h=b3b107eb01a52e48a89e53ebdef0b148172a7b1c;hp=8a0928a352abafdf73977f5533ab20ff33493c8e;hb=22a2ca7685dcf29e9ddcc6e26443ea0277385fca;hpb=dda22f5fe5cc0b84264c1a0d3369048c81a140f2 diff --git a/tests/tibdoc.g b/tests/tibdoc.g index 8a0928a..b3b107e 100644 --- a/tests/tibdoc.g +++ b/tests/tibdoc.g @@ -74,9 +74,8 @@ num = [0-9]++ Paragraph = { Blockquote:: "\"\" " text } > HR:: { "---" "-"* } - > P:: { UL:: uli+/ws } - > P:: { OL:: oli+/ws } - > P:: { text } + > { OL:: (text &~ (text! ws! {oli}+)) ws! {oli}+ } + > P:: { text } onums = nums (". "|") ")! any = ~[]* @@ -89,8 +88,6 @@ text = Item Item*/ws = blockquote // > ^"#" ws! { ~[]* } - > { UL:: uli+/ws } - | { OL:: oli+/ws } > Verbatim > InlineGrammar > link @@ -143,6 +140,7 @@ glyph = euro:: "(e)" command = "\\" [a-z]++ + // URLs ////////////////////////////////////////////////////////////////////////////// // interesting opportunity to show off boolean grammars here: define other