查找不平衡的括号和括号 [英] Finding unbalanced braces and parentheses

查看:136
本文介绍了查找不平衡的括号和括号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆