]> granicus.if.org Git - file/commitdiff
restrict fortran
authorChristos Zoulas <christos@zoulas.com>
Thu, 5 Nov 2015 18:47:16 +0000 (18:47 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 5 Nov 2015 18:47:16 +0000 (18:47 +0000)
magic/Magdir/fortran

index ac2610ea7f949cdcd8be85d98b1f272761bb1b3c..70102df4ffe211387e62ef2034194f5805d91d57 100644 (file)
@@ -1,7 +1,9 @@
 
 #------------------------------------------------------------------------------
-# $File: fortran,v 1.8 2014/06/03 19:01:34 christos Exp $
+# $File: fortran,v 1.9 2015/06/17 19:55:27 christos Exp $
 # FORTRAN source
-0      regex/100l      \^[Cc][\ \t]    FORTRAN program text
+# Check that the first 100 lines start with C or whitespace first.
+0       regex/100l      !\^[^Cc\ \t].*$
+>0     regex/100l      \^[Cc][\ \t]    FORTRAN program text
 !:mime text/x-fortran
 !:strength - 5