GNOME Bugzilla – Bug 729715
Improvements on the Fortran language file
Last modified: 2014-05-10 12:55:07 UTC
Created attachment 276069 [details] [review] Improvements on the Fortran language file Hi, I made some improvements on the Fortran language file (see attached patch): * Added some Fortran 2008 Keywords * `size` is an intrinsic function, removed duplicate entry * Added precompiler directives * Excluded `character` from comments Would it be possible to include those upstream? Thanks a lot! Alex
Review of attachment 276069 [details] [review]: See the comment below. Apart from that the other changes seem fine (I don't know Fortran). Note: the commit must not be pushed for gnome-3-12, since it contains new translatable strings. ::: data/language-specs/fortran.lang @@ +26,3 @@ <metadata> <property name="mimetypes">text/x-fortran</property> + <property name="globs">*.f;*.f90;*.f95;*.for;*.F;*.F90</property> Are the *.F and *.F90 standard file extensions for Fortran?
Hi Sébastien, the capital "F*" indicates that a preprocessor is to be used, while "f*" means no preprocessor. This is a quasi-standard and supported (at least) by GCC and Intel's ifort. BTW: "[fF]95", "[fF]03", "[fF]08" (for the 95, 2003, and 2008 standard, respectively) are rarely used and not supported by all compilers. Typically, one uses ".f" for fixed form (FORTRAN 77 and lower) and ".[fF]90" for Fortran 90+. ".for" only appears in *really* old source code. Regards, Alex
Commit pushed: https://git.gnome.org/browse/gtksourceview/commit/?id=b30d0d6f7a4271b1e72f5cb25bc31b9f485f0895 Thanks!