³ò ø$•Jc@sydZddkZddkZddkZd„Zd„Zd„Zd„ZeidƒZ d„Z eid ƒZ d „Z d „Z d „Zd „Zd„ZedjoÆddklZd„ZeeidƒiƒZeeeƒZeeeƒZeeeƒZeeeƒZee eƒZee eƒZee eƒZeeeƒZdid„eDƒƒGHndS(sŠsimplified reStructuredText parser. This parser knows just enough about reStructuredText to parse the Mercurial docstrings. It cheats in a major way: nested blocks are not really nested. They are just indented blocks that look like they are nested. This relies on the user to keep the right indentation for the blocks. It only supports a small subset of reStructuredText: - paragraphs - definition lists (must use ' ' to indent definitions) - lists (items must start with '-') - field lists (colons cannot be escaped) - literal blocks - option lists (supports only long options without arguments) - inline markup is not recognized at all. iÿÿÿÿNc Cségg}|iƒ}xL|D]D}|iƒo|di|ƒq|do|igƒqqW|dp |d=nxht|ƒD]Z\}}td„|Dƒƒ}td|dg}|D]}|||qÀ~ƒ||6stindenttlines(t splitlineststriptappendt enumeratetmintdict( ttexttblocksRtlinetitblockRt_[1]R((s$/sys/lib/python/mercurial/minirst.pyt findblocks%s       <cCsÉd}x¼|t|ƒjo¨d||d<||ddidƒop|dt|ƒjoY||d}||dd|}||ddgjo||=|d8}ne||ddid ƒo&||ddd ||ddAs( RRRRR)R/R3R7R;(R R!R ((R!s$/sys/lib/python/mercurial/minirst.pytformat7s        t__main__(tpprintcCs'||ƒ}d|iGHt|ƒH|S(Ns *** after %s:(t__name__RH(tfuncR ((s$/sys/lib/python/mercurial/minirst.pytdebugGs    is ccs"x|]}t|dƒVqWdS(iN(RD(RRE((s$/sys/lib/python/mercurial/minirst.pys Ws(t__doc__tretsysR>RRRRtcompileR"R)R+R/R3R7RDRFRIRHRKtopentargvtreadR R R;(((s$/sys/lib/python/mercurial/minirst.pys s4$  3   ! $ !