2019-08-16 05:07:26 (edited by Zarvox 2019-08-16 05:08:17)

I'm coding in bgt. Sometimes I miss a brace. Matcher helps me find it. But this time, I am missing a parenthesis. I know the function it is in, but I can not find it. Matcher only tells me that one is missing. I've tried searching for if( (( and ))

Is there a program or better way to find one without having to look at every single character? I've been doing that and still haven't found it.

2019-08-16 06:04:00

Update I found it. So here's how i did it.

I copied some of the function into another document and saved it. Then used matcher. If it said 0 unclosed, that means it is in the half I didn't copy. I did have the correct half. Then I cut down some lines in that half, in the document. I kept doing that until I had a very small block of code and I found it.

I have used this strategy before, but it is very rare for me to miss a parenthesis and not find it quickly, so I guess it slipped my mind.