Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238

Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
U i_2@sddlZddlZddlZddlZddlmZddlmZdZddZ ddZ e e ej Z e d ej Zd d ZGd d d eZddZedkrddlmZeddddddlmZeedS)N)idleConf) DelegatorFcCsd|d|dS)z9Return a named group pattern matching list of alternates.z(?P<%s>|))join)nameZ alternatesr0/opt/python38/lib/python3.8/idlelib/colorizer.pyany sr c Csdtdtjd}ddttD}dtd|d}tddg}d }|d }|d }|d }|d }td||||g} |d|d|d| dtddgS)Nz\bKEYWORDcSs(g|] }|ds|tjkrt|qS)_) startswithkeywordkwliststr).0rrrr s  zmake_pat..z([^.'\"\\#]\b|^)BUILTINCOMMENTz#[^\n]*z(?i:r|u|f|fr|rf|b|br|rb)?z'[^'\\\n]*(\\.[^'\\\n]*)*'?z"[^"\\\n]*(\\.[^"\\\n]*)*"?z''''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?z'"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?STRINGrSYNCz\n)r rrdirbuiltins) kwZ builtinlistbuiltincommentZ stringprefixZsqstringZdqstringZ sq3stringZ dq3stringstringrrr make_pats  rz\s+(\w+)cCs^t}t|d}t|dd}t|d}|j|d|d||d|d|dddS)zcSet color options of Text widget. If ColorDelegator is used, this should be called first. ZnormalZcursor foregroundZhilite background)rrZinsertbackgroundZselectforegroundZselectbackgroundZinactiveselectbackgroundN)r CurrentTheme GetHighlightZconfig)textthemeZ normal_colorsZ cursor_colorZ select_colorsrrr color_config"s  r$c@seZdZdZddZddZddZdd Zd d Zdd dZ dddZ dddZ ddZ d ddZ ddZddZddZd S)!ColorDelegatora-Delegator for syntax highlighting (text coloring). Instance variables: delegate: Delegator below this one in the stack, meaning the one this one delegates to. Used to track state: after_id: Identifier for scheduled after event, which is a timer for colorizing the text. allow_colorizing: Boolean toggle for applying colorizing. colorizing: Boolean flag when colorizing is in process. stop_colorizing: Boolean flag to end an active colorizing process. cCs*t||t|_t|_|dS)N)r__init__ init_stateprogidprog LoadTagDefsselfrrr r&Gs  zColorDelegator.__init__cCsd|_d|_d|_d|_dS)z1Initialize variables that track colorizing state.NTF)after_idallow_colorizingstop_colorizing colorizingr+rrr r'NszColorDelegator.init_statecCs\|jdk r|dt|||dk rL||d|j|ddn d|_d|_ dS)aSet the delegate for this instance. A delegate is an instance of a Delegator class and each delegate points to the next delegator in the stack. This allows multiple delegators to be chained together for a widget. The bottom delegate for a colorizer is a Text widget. If there is a delegate, also start the colorizing process. Nz<>1.0endTF) delegateZunbindr setdelegate config_colorsbindtoggle_colorize_event notify_ranger/r.)r,r3rrr r4Us   zColorDelegator.setdelegatecCs0|jD]\}}|j|f|q |ddS)z4Configure text widget tags with colors from tagdefs.ZselN)tagdefsitemsZ tag_configureZ tag_raise)r,tagZcnfrrr r5lszColorDelegator.config_colorsc Cszt}t|dt|dt|dt|dt|dddddddt|dt|d d |_trvtd |jdS) z.Create dictionary of tag names to text colors.rrrrZ definitionN)rrerrorhit) rr rr DEFINITIONrTODOERRORr=r9)rr r!r9DEBUGprint)r,r#rrr r*rs        zColorDelegator.LoadTagDefsNcCs6||}|j||||||dt|dS)z:Insert chars into widget at index and mark for colorizing.+%dcN)indexr3insertr8len)r,rDcharsZtagsrrr rEs zColorDelegator.insertcCs&||}|j||||dS)z5Delete chars between indexes and mark for colorizing.N)rDr3deleter8r,Zindex1Zindex2rrr rHs zColorDelegator.deletecCsb|d|||jr$tr tddS|jrzcolorizing stopped)rW tag_removeZ tag_prevrangerDminZ tag_namesgetr9r(search groupdictr:spanrLr)matchr2updater/rArB)r,nextitemheadtailrGZ lines_to_getokZmarkliner;mkeyvalueabZm1rrr rVsp           zColorDelegator.recolorize_maincCs|jD]}||ddqdS)zRemove all colorizing tags.r1r2N)r9r_)r,r;rrr removecolors#s zColorDelegator.removecolors)N)N)N)N)__name__ __module__ __qualname____doc__r&r'r4r5r*rErHr8rQr7rNrVrrrrrr r%7s    "Br%c Csddlm}m}ddlm}||}|dtt| ddd\}}|d|d|d fd }||d d }|j dd d| d|| t |||} t} | | dS)Nr)ToplevelText) PercolatorzTest ColorDelegator+rKz 700x250+%d+%dabif True: int ('1') # keyword, builtin, string, comment elif False: print(0) else: float(None) if iF + If + IF: 'keyword matching must respect case' if'': x or'' # valid string-keyword no-space combinations async def f(): await g() # All valid prefixes for unicode and byte strings should be colored. 'x', '''x''', "x", """x""" r'x', u'x', R'x', U'x', f'x', F'x' fr'x', Fr'x', fR'x', FR'x', rf'x', rF'x', Rf'x', RF'x' b'x',B'x', br'x',Br'x',bR'x',BR'x', rb'x', rB'x',Rb'x',RB'x' # Invalid combinations of legal characters should be half colored. ur'x', ru'x', uf'x', fu'x', UR'x', ufr'x', rfu'x', xf'x', fx'x' Zwhite)rZboth)expandfillrE)tkinterrwrxZidlelib.percolatorrytitlemapintZgeometrysplitpackrEZ focus_setr$r%Z insertfilter) parentrwrxrytopxysourcer"pdrrr _color_delegator)s      r__main__)mainz idlelib.idle_test.test_colorizerr[) verbosityexit)run)rrrerTZidlelib.configrZidlelib.delegatorrrAr rcompileSr(r)r$r%rrsZunittestrZidlelib.idle_test.htestrrrrr s&  s"