Fortran: parse prototype in out-of-place documentation

I took my old patch for the bug 522489, updated and tested it.
https://bugzilla.gnome.org/show_bug.cgi?id=522489
It accepts: `[scope] id [args]` and I tested it with \fn and \var. Any fancy prototype forms may not succeed.