Warning: session_start(): Session cannot be started after headers have already been sent in /home/tvrreohg/public_html/manga.php on line 13
3
;¤êal ã @ s d Z dZdZ ddlZdd„ Zddd d
ddd
ddddddddddddddddddd d!d"d#d$d%gZd&Zd'Zeed(d)ƒd* eed(d+ƒ Zd,Zd-jej ƒ ƒZeed(d)ƒd* eed(d+ƒ Z
d.Zed/ d*jeƒ d0 e Zed* e d* e
d* e Z
eje
ƒZd1ZejeƒZd6d2d3„Zd4d5„ ZdS )7z3.3.0a|
Module to analyze Python source code; for syntax coloring tools.
Interface::
tags = fontify(pytext, searchfrom, searchto)
- The 'pytext' argument is a string containing Python source code.
- The (optional) arguments 'searchfrom' and 'searchto' may contain a slice in pytext.
- The returned value is a list of tuples, formatted like this::
[('keyword', 0, 6, None), ('keyword', 11, 17, None), ('comment', 23, 53, None), etc. ]
- The tuple contents are always like this::
(tag, startindex, endindex, sublist)
- tag is one of 'keyword', 'string', 'comment' or 'identifier'
- sublist is not used, hence always None.
z0.4é Nc C s |j | j|ƒƒS )N)ÚjoinÚsplit)ÚsrcÚsepÚrep© r ú8/tmp/tmp4i9tl1d3/lib64/python/reportlab/lib/PyFontify.pyÚreplace( s r ÚasÚassertÚexecÚdelÚfromÚlambdaÚreturnÚandÚelifÚglobalÚnotÚtryÚbreakÚelseÚifÚorÚwhileÚclassÚexceptÚimportÚpassÚcontinueÚfinallyÚinÚprintÚdefÚforÚisÚraiseÚyieldÚwithz#[^\n]*z$q[^\\q\n]*(\\[\000-\377][^\\q\n]*)*qÚqú'ú|ú"a
qqq
[^\\q]*
(
( \\[\000-\377]
| q
( \\[\000-\377]
| [^\q]
| q
( \\[\000-\377]
| [^\\q]
)
)
)
[^\\q]*
)*
qqq
Ú z(^|[^a-zA-Z0-9_.\"'])ú(ú)z[ ]*[A-Za-z_][A-Za-z_0-9.]*c C s^ |d krt | ƒ}tj}tj}g }|j}d}d}d} d}
d}|}�x|| |ƒ}
|
d krVP |
jƒ }||krhP |
jdƒ}|t |ƒ }|d }|dk�r*||kr®|dd… }|d }n|d d… }|d }|| ||d fƒ |d
k�rV|| |ƒ}
|
d k �rV|
jƒ }||k�rV|
jdƒ}|t |ƒ }||
||d fƒ qB|d
k�rF||||d fƒ qB||||d fƒ qBW |S )NÚcommentÚstringÚkeywordÚ
identifierr z#'"é r# r ú#éÿÿÿÿr6 )r# r )ÚlenÚmatchREÚsearchÚidREÚappendÚstartÚgroup)ZpytextZ
searchfromZsearchtor9 ZidSearchÚtagsZtags_appendZ
commentTagZ stringTagZ
keywordTagZ
identifierTagr<