ó ú^‚Rc@s/ddlZddlZddd„ƒYZdS(iÿÿÿÿNt AutoExpandcBsReZddgfgZejejdZd„Zd„Zd„Z d„Z RS( tedits E_xpand Words<>t_cCs|j|_d|_dS(N(ttexttNonetstate(tselfteditwin((s(/usr/lib/python2.7/idlelib/AutoExpand.pyt__init__s c CsT|jjdƒ}|jjddƒ}|jsE|jƒ}d}nB|j\}}}}||ksr||kr‡|jƒ}d}n|sž|jjƒdS|jƒ}|jjdt|ƒdƒ||} |dt|ƒ}|dkr|jjƒn|jj d| ƒ|jjdƒ}|jjddƒ}||||f|_dS(Ntinsertsinsert linestartsinsert lineenditbreaksinsert - %d charsi( RtindextgetRtgetwordstbellt getprevwordtdeletetlenR ( Rteventt curinserttcurlinetwordsR R tlinetwordtnewword((s(/usr/lib/python2.7/idlelib/AutoExpand.pytexpand_word_events.         c Cs-|jƒ}|sgS|jjddƒ}tjd|d|ƒ}~|jjddƒ}tjd|d|ƒ}~| rŒ| rŒgSg}i}|jƒx:|D]2}|j|ƒrÄq©n|j|ƒ|||>( t__name__t __module__tmenudefststringt ascii_letterstdigitsR%RRR R(((s(/usr/lib/python2.7/idlelib/AutoExpand.pyRs   ((R*RR(((s(/usr/lib/python2.7/idlelib/AutoExpand.pyts