balance.dcl 279 Bytes
Newer Older
Diederik van Arkel's avatar
Diederik van Arkel committed
1 2
definition module balance

3
from EdText import :: Text, :: LineNr, :: Selection
Diederik van Arkel's avatar
Diederik van Arkel committed
4 5 6 7

//	Text_Balance returns the Selection of the smallest piece of balanced text surrounding
//	the cursor or the current selection.
Text_Balance :: !LineNr !Int !LineNr !Int !Text -> (!Bool,!Selection)