Alex Rivera | Logout

Finding unbalanced braces and parentheses

Asked 2011-06-12T16:19:24.327
11

gcc 4.6.0 GNU Emacs 23.2.1

I have some c code and at some point I must have made a typing mistake. And now I am left with unbalanced curly braches or a parentheses.

I have about 2000 lines of code and I am just wondering is there any technique for finding them?

Emacs has some good features, so I am just wondering is there any way it can scan the code and tell me where they are. Currently I have a compile error related to this.

Many thanks for any suggestions,

Edit
Report

1 Answer

18

In emacs you can use M-x check-parens . See http://www.gnu.org/software/libtool/manual/emacs/Parentheses.html

answered 2011-06-12T16:36:01.223

Your Answer