Bracket and Quote Balance Checker
Finds the unclosed bracket, quote or comment and reports where it was opened.
Loading the tool…
How to use this tool
- Paste the file that will not parse.
- Select Check.
- Go to the line in the first finding — the later ones are usually consequences of it.
What bracket checker does
A compiler reports an unclosed brace at the end of the file, which is the one place it certainly is not. This reports where the unclosed thing was opened, with a line and column, which is where you actually have to go. Unterminated strings and unterminated block comments are found the same way, and they matter more, because both swallow the code that follows them.
Brackets inside strings and comments are ignored, so an emoticon in a message and a lone brace in a doc comment do not produce false findings. When several problems are listed, the first is usually the real one: everything after an unclosed bracket tends to be a consequence of it rather than a separate mistake.