checkpoint
[sbp.git] / tests / tibdoc.g
index 1c02f11..51e66e1 100644 (file)
@@ -84,19 +84,22 @@ oli          = ("# "|onums)! (ws! text &~ any (oli|uli)!)
 text         = Item
 Itemx        = ws! Item
              | ()
-Item         =
-// "[]":: blockquote                 Itemx
+Item
+//*/ws
+     =
+// "[]":: blockquote                 ((ws! Item) | ())
 //             >
- "[]":: { 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
+ "[]":: { UL:: uli+/ws }           ((ws! Item) | ())
+             | "[]":: { OL:: oli+/ws }           ((ws! Item) | ())
+             > "[]":: pre                        ((ws! Item) | ())
+             > "[]":: link                       ((ws! Item) | ())
+             > "[]":: structured                 ((ws! Item) | ())
+             > "[]":: styled                     ((ws! Item) | ())
+             > "[]":: (Chars:: alphanum++)       ((ws! Item) | ())
+             > "[]":: "\"" text "\""             ((ws! Item) | ())
+             > "[]":: (Symbol:: sym++)           ((ws! Item) | ())
+             > "[]":: { Block:: text }           ((ws! Item) | ())
+
 
 //blockquote   = Blockquote:: "\"\"" (block | text "\"\"")