Merge pull request #2811 from pchaigno/pod-heuristic

Heuristic for Pod vs. Perl
This commit is contained in:
Arfon Smith
2016-01-18 07:59:47 -05:00
4 changed files with 26 additions and 0 deletions

View File

@@ -293,6 +293,14 @@ module Linguist
end
end
disambiguate ".pod" do |data|
if /^=\w+$/.match(data)
Language["Pod"]
else
Language["Perl"]
end
end
disambiguate ".pro" do |data|
if /^[^#]+:-/.match(data)
Language["Prolog"]