Error output compiling

Dear FreeFem++ users,

I have a quite large code, and when I compile it, I get the following error after compiling, where the line number xxx is the last line of my code:
Error line number xxx , in file – unknown --, before token
syntax error

I don’t really know what is causing this error, so it is difficult to find out where is it. Do you know the reason of this output?


Without posting the code its hard to guess. If you have the FF syntax highlighting
I guess you could help- could be a bad character or quote/paran / brace
mismatch hard to guess.

effectively it was a brace, but due to such large code, it was hard to find out where. Thank you so much for your help!