Reputation: 10959
I am getting this TCL error
ERROR: missing close-brace: possible unbalanced brace in comment
and have no idea where the unbalanced brace may be. Could you please suggest some way of finding it? Maybe a program which will check braces in some files and show the place where is it. I am using vim. It would be great if vim could show this kind of things.
Vim version VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Mar 14 2012 14:58:45)
The error is in tcl source files. I am not using any vim plugin.
Upvotes: 1
Views: 8919
Reputation: 184
There was an open curly braces "{" left in my comment (comments start with a #), when I removed the open curly brace, the error disappeared and I was left baffled.
Upvotes: 0
Reputation: 42188
By default % (in normal mode) should jump to the closing/opening brace or bracket when your cursor is on a brace or bracket.
So you could manually try out to find where it is, but it can be rather inefficient if the file is big.
Don't forget that with /(
and then n you should be able to quickly jump from brace to brace.
Vim should have a default tcl syntax file installed by default, so if it not already the case, you should add in your .vimrc
syntax on
filetype plugin indent on
Upvotes: 2