Preprocessor: @#for end of file bug
If a file @#include-ed into another file contains a @#for loop for which the matching @#endfor is followed immediately by the end of the file, rather than by a new-line, then the pre-processor fails to find the @#endfor. To see this clone the repository https://github.com/tholden/DynareBugs/tree/master and then run dynare TestForLoopBug.mod . On Windows at least you will get an error saying it failed to find the @#endfor. However if you add a blank line at the end of ForLoopBug.mod then you no longer get this error.