On 14 Nov 2005, at 17:28, Allan Odgaard wrote:
On 14/11/2005, at 11.19, Graeme Mathieson wrote:
I suspect you're going to say 'no, it's a limitation of the way the parsing is done', but would it be possible to collapse white space in the display of symbols?
Or I could say RTFM :)
Oops, thanks for the pointer. The preference I came up with (for Python) in the end was:
/* preferences */ { showInSymbolList = 1; symbolTransformation = 's/^\s*def\s+(.*):$/ $1/; s/\s+/ /g; s/ *=.*? (,|))/$1/g; s/^(.*(.{30}).*?(.{30}))/$1...$2/'; }
which removes default arguments, collapses white space, and truncates arguments to the first 30 and last 30 characters if it's longer than 60 characters. Works nicely for me...