Not a script, but there are some scripting IDEs (pawno is one for example) that show you where brackets start and ends, and you can easily spot missing brackets.
1. Uncrustify, finds the exact location of all bracket errors. Came real helpful to me.
2. Renaming a copy of the script to ***.pawn and compiling with the pawn compiler. Many "pawno compiler crash" bugs only crash with the pawno compiler, but show you the location of the error in Pawn.