python (3.12.0)

(root)/
lib/
python3.12/
idlelib/
__pycache__/
autoexpand.cpython-312.opt-2.pyc

̑eV	ddlZddlZGddZedk(rddlmZeddyy)	Nc\eZdZejej
zdzZdZdZdZ	dZ
y)
AutoExpand_cj|j|_|jj|_d|_y)N)textbellstate)selfeditwins  F/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/idlelib/autoexpand.py__init__zAutoExpand.__init__s#LL	IINN	
c	|jjd}|jjdd}|js|j	}d}n-|j\}}}}||k7s||k7r|j	}d}|s|jy|j
}|jjdt|zd||}	|dzt|z}|dk(r|j|jjd|	|jjd}|jjdd}||||f|_y)Ninsertinsert linestartzinsert lineendrbreakzinsert - %d chars)
rindexgetr	getwordsrgetprevworddeletelenr)
r
event	curinsertcurlinewordsrrlinewordnewwords
          rexpand_word_eventzAutoExpand.expand_word_events);IIOOH-	))-- 24DEzzMMOEE)-&E5&$"dgo

IIK!		,s4y8(C,c%j(A:IIK		7+IIOOH-	))-- 24DEE9g5
rc&	|j}|sgS|jjdd}tjd|zdz|}~|jjdd}tjd|zdz|}~|s|sgSg}i}|j|D]*}|j|r|j
||||<,|D]*}|j|r|j
||||<,|j
||S)Nz1.0zinsert wordstartz\bz\w+\bzinsert wordendend)rrrrefindallreverseappend)	r
rbeforewbeforeafterwafterrdictws	         rrzAutoExpand.getwords6sI!Iu&89**UT\H4f=		

.6EDL83U;vI	Axx{LLODG			Axx{LLODG		
	Trc	|jjdd}t|}|dkDr3||dz
|jvr|dz
}|dkDr||dz
|jvr||dS)Nrrrr)rrr	wordchars)r
ris   rrzAutoExpand.getprevwordUsm3yy}}/:I!eQqS	T^^3!A!eQqS	T^^3ABxrN)__name__
__module____qualname__string
ascii_lettersdigitsr/r
r!rrrrrrs/$$v}}4s:I
6>rr__main__)mainz!idlelib.idle_test.test_autoexpand)	verbosity)r$r4rr1unittestr9r7rr<module>r=s<


HHVz	,:r