<div>Hi,<br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Since you need to know the algorithm to implement it, perhaps you<br>


should write it out here for review.  And remember this code is run<br>
for all filetypes, you might need to think about impacts on non-C<br>
filetypes.<br>
<div><br>
<br></div></blockquote><div> You were correct , my bad :( I tried a lot to create something generic but there was always some filetypes which would create an annoying exception and thus at the end the code became so filetype specific that at the end I had to give up the idea.<br>

</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>
<br>
</div>Probably ok if ) is immediately after (, the user is sure to see it<br>
go.  But even so this should be off by default and turned on by a<br>
preference.<br></blockquote></div>I found the case while testing (() this is perfectly legal. Now if we delete the 2nd open brace the closing brace should not be deleted, so the deletion is only applicable when the ) is just added . I think selective removal will create a lot of confusion to the end users so removed the code for this also :(<br>
<br>My first attempt went in vain :( . Searching for other bugs to debug.<br><br>Thanks <br>shankhs<br>