. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.221 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/alt/python37/lib64/python3.7/idlelib/__pycache__/ |
Upload File : |
B
� f�2 � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ dZdd� Z dd� Z
e�e
� ej�Z
e�d ej�Zd
d� ZG dd
� d
e�Zdd� Zedkr�d dlmZ edddd� d dlmZ ee� dS )� N)�idleConf)� DelegatorFc C s d| d� |� d S )z9Return a named group pattern matching list of alternates.z(?P<%s>�|�))�join)�nameZ
alternates� r �6/opt/alt/python37/lib64/python3.7/idlelib/colorizer.py�any s r
c
C s� dt dtj� d } dd� tt�D �}dt d|� d }t ddg�}d }|d
}|d }|d }|d
}t d||||g�} | d | d | d | d t ddg� S )Nz\b�KEYWORDc S s( g | ] }|� d �s|tjkrt|��qS )�_)�
startswith�keyword�kwlist�str)�.0r r r r �
<listcomp> s
zmake_pat.<locals>.<listcomp>z([^.'\"\\#]\b|^)�BUILTIN�COMMENTz#[^\n]*z(?i:r|u|f|fr|rf|b|br|rb)?z'[^'\\\n]*(\\.[^'\\\n]*)*'?z"[^"\\\n]*(\\.[^"\\\n]*)*"?z''''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?z'"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?�STRINGr �SYNCz\n)r
r r �dir�builtins)
�kwZbuiltinlist�builtin�commentZstringprefixZsqstringZdqstringZ sq3stringZ dq3string�stringr r r �make_pat s r z\s+(\w+)c C s^ t �� }t �|d�}t �|d�d }t �|d�}| j|d |d ||d |d |d d� dS )zcSet color options of Text widget.
If ColorDelegator is used, this should be called first.
ZnormalZcursor�
foregroundZhilite�
background)r r ZinsertbackgroundZselectforegroundZselectbackgroundZinactiveselectbackgroundN)r �CurrentTheme�GetHighlightZconfig)�text�themeZ
normal_colorsZcursor_colorZ
select_colorsr r r �color_config"