mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add new language Formatted for .for.
Sample file wksst8110.for is from the Climate Prediction Center at the National Weather Service of the USA, and is in the public domain.
This commit is contained in:
@@ -164,7 +164,7 @@ module Linguist
|
||||
end
|
||||
end
|
||||
|
||||
disambiguate "FORTRAN", "Forth" do |data|
|
||||
disambiguate "FORTRAN", "Forth", "Formatted" do |data|
|
||||
if /^: /.match(data)
|
||||
Language["Forth"]
|
||||
elsif /^([c*][^a-z]| (subroutine|program)\s|\s*!)/i.match(data)
|
||||
|
||||
Reference in New Issue
Block a user