Adding Perl heuristic (and fixing up Prolog)

This commit is contained in:
Arfon Smith
2013-12-29 19:22:31 -08:00
parent 016f9852d6
commit 800d26cdad
2 changed files with 14 additions and 1 deletions

View File

@@ -33,9 +33,10 @@ module Linguist
matches
end
def self_disambiguate_pl(data, languages)
def self.disambiguate_pl(data, languages)
matches = []
matches << Language["Prolog"] if data.include?(":-")
matches << Language["Perl"] if data.include?("use strict")
matches
end