tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Z\¬Qc@sçddlZddlZddlZddlZddlTddlmZddlmZe    Z
d„Z d„Z ej e ƒejƒZej dejƒZej dƒZd    efd
„ƒYZd „Zed krãeƒndS( iÿÿÿÿN(t*(t    Delegator(tidleConfcCsd|dj|ƒdS(s9Return a named group pattern matching list of alternates.s(?P<%s>t|t)(tjoin(tnamet
alternates((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pytany sc Csðdtdtjƒd}gttƒD]!}|jdƒs't|ƒ^q'}dtd|ƒd}tddgƒ}d}|d    }|d
}|d }|d }    td ||    ||gƒ}
|d|d|d|
dtddgƒS(Ns\btKEYWORDt_s([^.'\"\\#]\b|^)tBUILTINtCOMMENTs#[^\n]*s((\br|u|ur|R|U|UR|Ur|uR|b|B|br|Br|bR|BR)?s'[^'\\\n]*(\\.[^'\\\n]*)*'?s"[^"\\\n]*(\\.[^"\\\n]*)*"?s''''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?s'"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?tSTRINGRtSYNCs\n(Rtkeywordtkwlisttdirt __builtin__t
startswithtstr( tkwRt builtinlisttbuiltintcommentt stringprefixtsqstringtdqstringt    sq3stringt    dq3stringtstring((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pytmake_pats!
 
 
 
s\s+(\w+)s .*?\b(as)\btColorDelegatorcBs˜eZd„Zd„Zd„Zd„Zd d„Zd d„Zd Z    e
Z e Z d d„Zd Zd d„Zd„Zd    „Zd
„Zd „ZRS( cCs6tj|ƒt|_t|_t|_|jƒdS(N(Rt__init__tprogtidprogtasprogt LoadTagDefs(tself((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyR!&s
             cCs|jdk    r|jdƒntj||ƒ|dk    rk|jƒ|jd|jƒ|jddƒnt    |_
t |_ dS(Ns<<toggle-auto-coloring>>s1.0tend( tdelegatetNonetunbindRt setdelegatet config_colorstbindttoggle_colorize_eventt notify_rangetTruetstop_colorizingtFalsetallow_colorizing(R&R(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyR+-s 
    cCsJx6|jjƒD]%\}}|r|j||qqW|jdƒdS(Ntsel(ttagdefstitemst tag_configuret    tag_raise(R&ttagtcnf((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyR,:scCsùtjdddƒ}i
tj|dƒd6tj|dƒd6tj|dƒd    6tj|d
ƒd 6tj|d ƒd 6idd6dd6d6idd6dd6d6tj|dƒd6tj|dƒd6tj|dƒd6|_trõdG|jGHndS(NtmaintThemeRRR RR    RR RR t
definitiont
DEFINITIONt
backgroundt
foregroundRtTODOtbreaktBREAKterrortERRORthitR5(Rt    GetOptiont GetHighlightR)R5tDEBUG(R&ttheme((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyR%@scCsG|j|ƒ}|jj|||ƒ|j||dt|ƒƒdS(Ns+%dc(tindexR(tinsertR/tlen(R&RKtcharsttags((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyRLRscCs3|j|ƒ}|jj||ƒ|j|ƒdS(N(RKR(tdeleteR/(R&tindex1tindex2((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyRPWscCs‡|jd||ƒ|jr.tr*dGHndS|jrQt|_trQdGHqQn|jrƒtrhdGHn|jd|jƒ|_ndS(NRAscolorizing already scheduledsstop colorizingsschedule colorizingi(    ttag_addtafter_idRIt
colorizingR0R1R3taftert
recolorize(R&RQRR((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyR/`s                 cCsw|jr9|j}d|_tr)dGHn|j|ƒnt|_t|_|rs|jsg|j    ƒqs||_
ndS(Nscancel scheduled recolorizer( RTR)RIt after_cancelR2R3R0R1RUtdestroytclose_when_done(R&RZRT((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pytclosens                         cCsÅ|jr9|j}d|_tr)dGHn|j|ƒn|jre|jretrYdGHnt|_n|j |_|jr |j r |jd|j    ƒ|_ntrÁdG|jr¹dp¼dGHndS(Nscancel scheduled recolorizersstop colorizingisauto colorizing turnedtontoffRB(
RTR)RIRXR3RUR0R1RVRW(R&teventRT((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyR.|s"              cCs3d|_|js$tr dGHndS|js?tr;dGHndS|jrZtrVdGHndSz\t|_t|_tr}dGHnt    j
ƒ}|j ƒt    j
ƒ}trµd||GHnWdt|_X|jr|j ddƒrtrìdGHn|j d    |jƒ|_n|jr/|j}d|_|jƒndS(
Ns no delegatesauto colorizing is offsalready colorizings colorizing...s %.3f secondsRAs1.0sreschedule colorizingi(R)RTR(RIR3RUR2R1R0ttimetclocktrecolorize_maint tag_nextrangeRVRWRZRY(R&tt0tt1ttop((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyRWs@                         
 
            cCsMd}x@trH|jd|ƒ}|s+Pn|\}}|jd||ƒ|jd|ƒ}|ro|d}nd}d}|}d}t}xµ|sD|}|j|d|ƒ}t|ddƒ}d|j|d    ƒk}|j||ƒ}    |    sûdSx*|j    j
ƒD]}
|j|
||ƒq W||    }|j j |ƒ} xŽ| rÔxf| j ƒjƒD]R\} } | r`| j| ƒ\}}|j| |d
||d
|ƒ| dkr|jj||ƒ}|r¯|jdƒ\}}|jd |d
||d
|ƒq¯q²| dkr²d|kr9|jdƒ}n t|ƒ}xgtr«|jj|||ƒ}|spPn|jdƒ\}}|jd|d
||d
|ƒqHWq²q`q`W|j j || jƒƒ} qGWd|j|d    ƒkrý|}d}nt}|s|jd|ƒn|jƒ|jrtr=dGHndSqWq    WdS(Ns1.0RARits+%d lines linestartiids-1cs+%dctdeftclassR>timportt#R    scolorizing stopped(RgRh(R0Rbt
tag_removet tag_prevrangeR2RKtmint    tag_namestgetR5tkeysR"tsearcht    groupdictR6tspanRSR#tmatchRMR$R'tupdateR1RI(R&tnexttitemtheadttailRNt lines_to_gettoktmarktlineR9tmtkeytvaluetatbtm1tendpos((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyRaªs„            
                               
    cCs1x*|jjƒD]}|j|ddƒqWdS(Ns1.0R'(R5RpRk(R&R9((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyt removecolorsûsN(t__name__t
__module__R!R+R,R%R)RLRPRTR0R3R2RUR/RZR[R.RWRaR…(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyR $s                                 QcCs‹ddlm}tƒ}|jd|jƒtddƒ}|jdddd    ƒ|jƒ||ƒ}tƒ}|j    |ƒ|j
ƒdS(
Niÿÿÿÿ(t
PercolatortWM_DELETE_WINDOWR?twhitetexpanditfilltboth( tidlelib.PercolatorRˆtTkt wm_protocoltquittTexttpackt    focus_setR t insertfiltertmainloop(Rˆtrootttexttptd((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyR;ÿs    
      t__main__(R_treRRtTkintertidlelib.DelegatorRtidlelib.configHandlerRR2RIRRtcompiletSR"R#R$R R;R†(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/idlelib/ColorDelegator.pyt<module>s     
        Û