ftnchek is a free Fortran syntax checker (some say, similar to a commercial product called FLINT, which I don't know).