From: Alexander Kellett Date: 2004-10-12T17:46:58+09:00 Subject: Re: Location of missing end On Mon, Oct 11, 2004 at 03:43:14PM +0900, Markus wrote: > Testing with some debugging messages added showed that, in all of the > ruby code included with the ruby distribution, only seven lines of code > failed to follow the liberal interpretation of "normal indentation" used > in the patch. The worst case is that (rarely, it appears) the patch > might suggest "Possible missing ends" where there were none. > > Thought? Comments? Aberrant test cases? haven't tested, but the entire idea is just plain *wonderful* this has caused me so many problems in the past! i'm interested in solving this in my particular editor (my own project ruvi) but really i'd prefer to see a solution in the interpreter itself. nice to see that the implementation only seems to add a static cost to some fairly infrequent constructs and that its only in the parse stage. pretty simple patch in all, doesn't add that much complexity at all, i'd expected much more :), i imagine that the nice abstraction into seperate methods would mean that the corner cases even are fairly neat. nice work! would love to see this patch merged! Alex