look for a if statement a for loop a switch statement ...
you pobably have opened such a statement or function definition an d have forgotten to close it.
somewhere you'll have to put a '}' in order to end the statement or loop or whatever it is.
-enlight