checkpoint
[sbp.git] / tests / tibdoc.g
index 81061e5..e77d53b 100644 (file)
@@ -51,7 +51,7 @@ Item       ::= blockquote
              > structuredx Itemx => []
              > styled      Itemx => []
              > qtext       Itemx => []
-             > alphanum++  Itemx => []
+             > (alphanum++ => stringify) Itemx => []
              > symbol      Itemx => []
 //             > sym++       Itemx => []
              > Paragraph   Itemx => []
@@ -66,8 +66,8 @@ pre        ::= "[verbatim]" { ~[]+ } /ws => "verbatim"   // FIXME doesn't work
 
 styled     ::= "__" text "__"      => ul
              | "((" text "))"      => footnote
-             | ( "[[" text "]]"      => tt
-               >  "[" word "]"       => citation
+             | ( "[[" text "]]"    => tt
+               >  "[" word "]"     => citation
                )
              | "!!" text "!!"      => strikethrough
              | "^^" (word|block)   => superscript
@@ -117,7 +117,7 @@ host       ::= [0-9]+ "." [0-9]+ "." [0-9]+ "." [0-9]+ => "ip"
 
 // Tokens ///////////////////////////////////////////////////////////////////
 
-word     ::= alphanum++
+word     ::= alphanum++ => stringify
            | quoted
 
 quoted   ::= "\"" ((~[\"\\] | escaped)+) "\""