In Fortran-90, ‘!’ starts a short comment. However, by default Fweb usurps ‘!’ for the logical not, as in ‘if(x != y)’. To force it to recognize ‘!’ as a comment, use ‘-n!’. However, the recommended style is to use Fweb's standard convention that ‘//’ denotes the start of a short comment (see -n/). See also -! and -r!.
In Fortran-77, to include the exclamation point inside a string, escape it with a backslash, as in
s = "A \! inside a string"
This possibly annoying restriction arises because the unduly complicated Fortran input driver does some preprocessing of the Fortran source before it feeds it to the cores of the processors.