I usually add comment line, in C/C++
// )]} {[(
in perl
# )]} {[(
two times, one close to top of source or include file (e.g. just after
bang line)
one close to bottom of the file
Then I position cursor on closing brace at line near the bottom of
file and press %;
the cursor should go to the line near the top of file; again and I
should be at the bottom of the file;
This works if there are no unmatched braces in strings and comments;
If I need unmatched brace in a string, then I add appropriate matching brace
in a comment, after unmatched opening brace or before unmatched closing brace.
Not very high-tech, but useful for me.
Best regards,
Wojtek
On 12/1/06, Yakov Lerner <[EMAIL PROTECTED]> wrote:
It is easy to identify extra '}' in the .c source, compiler
points us to the exact line. Rarely, I have the opposite error,
the extra '{' somewhere in the source. For example
int foo() {
{
....
}
In this case, gcc points me to the end of file. This is not helpful.
Can anyone suggest quick method of finding the function
that contains extra '{' brace ?
Thanks
Yakov