-í
°ĶT<c       s5      d  k  Z   d  k Z  d f  d     YZ d  S(   Ns
   AutoExpandc      s    
 h  d g d <Z   h  d d g d <Z  d d d f g f g Z  e i e i d Z  d   Z  d   Z 8 d	   Z	 V d
   Z
 RS(   Ns   <Alt-slash>s   <<expand-word>>s   <Meta-slash>s   edits   E_xpand words   _c    s"     | i |  _  t |  _ d  S(   N(   s   editwins   texts   selfs   Nones   state(   s   selfs   editwin(    (    s'   /mit/python/share/idlelib/AutoExpand.pys   __init__ s   c 
   sŪ    |  i i d  }   |  i i d d  } ! |  i o " |  i   } # d } nR % |  i \ } } } }	 & | | j p
 |	 | j o ' |  i   } ( d } n ) | o * |  i i   + d Sn , |  i   } - |  i i d t |  d  . | | } / | d t |  } 0 | d j o 1 |  i i   n 2 |  i i	 d |  3 |  i i d  } 4 |  i i d d  } 5 | | | | f |  _ 6 d Sd  S(   Ns   inserts   insert linestarts   insert lineendi    s   breaks   insert - %d charsi   (   s   selfs   texts   indexs	   curinserts   gets   curlines   states   getwordss   wordss   inserts   lines   bells   getprevwords   words   deletes   lens   newword(
   s   selfs   events	   curinserts   indexs   words   curlines   wordss   inserts   newwords   line(    (    s'   /mit/python/share/idlelib/AutoExpand.pys   expand_word_event s.    c 	   s  8 9 |  i   } : | o ; g  Sn < |  i i d d  } = t i d | d |  } > ~ ? |  i i d d  } @ t i d | d |  } A ~ B | o | o C g  Sn D g  } E h  } G | i   H xK | DH ]@ } I | i |  o
 J qå n K | i |  L | | | <qå WN xK | DN ]@ } O | i |  o
 P q6n Q | i |  R | | | <q6WS | i |  T | Sd  S(   Ns   1.0s   insert wordstarts   \bs   \w+\bs   insert wordends   end(   s   selfs   getprevwords   words   texts   gets   befores   res   findalls   wbefores   afters   wafters   wordss   dicts   reverses   ws   append(	   s   selfs   ws   words   wafters   wordss   dicts   afters   wbefores   before(    (    s'   /mit/python/share/idlelib/AutoExpand.pys   getwords8 s8   		
 	

 	
c    sy   V W |  i i d d  } X t |  } Y x: Y | d j o | | d |  i j o Z | d } q0 W[ | | Sd  S(   Ns   insert linestarts   inserti    i   (   s   selfs   texts   gets   lines   lens   is	   wordchars(   s   selfs   is   line(    (    s'   /mit/python/share/idlelib/AutoExpand.pys   getprevwordV s    ((   s   keydefss   unix_keydefss   menudefss   strings   ascii_letterss   digitss	   wordcharss   __init__s   expand_word_events   getwordss   getprevword(    (    (    s'   /mit/python/share/idlelib/AutoExpand.pys
   AutoExpand s   (   s   strings   res
   AutoExpand(   s   res   strings
   AutoExpand(    (    s'   /mit/python/share/idlelib/AutoExpand.pys   ? s   