查找不平衡的括号和括号 [英] Finding unbalanced braces and parentheses
问题描述
GCC 4.6.0
GNU Emacs的23.2.1
gcc 4.6.0 GNU Emacs 23.2.1
我有一些C code和在某些时候我必须做出一个打字错误。现在我留下不平衡卷曲设有分公司或括号。
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.
我有大约2000 code线和我只是想知道是否有任何技术来找到他们?
I have about 2000 lines of code and I am just wondering is there any technique for finding them?
Emacs有一些很好的功能,所以我只是想知道有没有什么办法可以扫描code和告诉我他们在哪里。目前我有与此相关的编译错误。
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,
推荐答案
在Emacs中可以使用 M-X检查,括号
。见<一href=\"http://www.gnu.org/software/libtool/manual/emacs/Parentheses.html\">http://www.gnu.org/software/libtool/manual/emacs/Parentheses.html
In emacs you can use M-x check-parens
. See http://www.gnu.org/software/libtool/manual/emacs/Parentheses.html
这篇关于查找不平衡的括号和括号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!