B
� f�: � @ s d Z ddlmZ ddlmZ ddlZddlmZ ddlmZ ddl m
Z
mZ ddlmZ dd l
mZ ejjZe�d
�e�d
�e�d
�e�d
�d�ZdZd
d� Zdd� ZG dd� dej�ZG dd� dej�ZG dd� dej�ZG dd� dej�Zedk�rejdd� dS )zTest colorizer, coverage 93%.� )� colorizer)�requiresN)�mock)�partial)�Tk�Text)�config)�
Percolator� )�main� highlight�keys�
extensionsa+ if True: int ('1') # keyword, builtin, string, comment
elif False: print(0) # 'string' in comment
else: float(None) # if in comment
if iF + If + IF: 'keyword matching must respect case'
if'': x or'' # valid string-keyword no-space combinations
async def f(): await g()
'x', '''x''', "x", """x"""
c C s t tj_d S )N)�testcfgr �idleConf�userCfg� r r �E/opt/alt/python37/lib64/python3.7/idlelib/idle_test/test_colorizer.py�setUpModule! s r c C s t tj_d S )N)�usercfgr r r r r r r �tearDownModule% s r c @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S )
�FunctionTestc C s | � t�dd�d� d S )NZtest)�a�bZcdz(?P