Add FORTRAN keyword "data" to .f and .for heuristics. (#3218)

bug-185631.f sample from OpenFortranProject; BSD license.
This commit is contained in:
Lars Brinkhoff
2016-09-15 19:24:53 +02:00
committed by GitHub
parent a8d84f3d55
commit 00efd6a463
2 changed files with 7 additions and 1 deletions

View File

@@ -144,7 +144,7 @@ module Linguist
end
end
fortran_rx = /^([c*][^abd-z]| (subroutine|program|end)\s|\s*!)/i
fortran_rx = /^([c*][^abd-z]| (subroutine|program|end|data)\s|\s*!)/i
disambiguate ".f" do |data|
if /^: /.match(data)

View File

@@ -0,0 +1,6 @@
! Codes/HYCOM/hycom/ATLb2.00/src_2.0.01_22_one/
real onemu, twomu
data onemu/0.0098/
data twomu/1./
data threemu/0.e9/
end