Add 'text' language with samples, and heuristics for .fr.

This commit is contained in:
Lars Brinkhoff
2014-11-27 08:04:48 +01:00
parent 5fd56c75d5
commit de6b2f3307
6 changed files with 40 additions and 0 deletions

View File

@@ -156,5 +156,14 @@ module Linguist
end
end
disambiguate "Frege", "Forth", "text" do |data|
if /^(: |also |new-device|previous )/.match(data)
Language["Forth"]
elsif /\s*(import|module|package|data|type) /.match(data)
Language["Frege"]
else
Language["text"]
end
end
end
end