mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Adding Perl heuristic (and fixing up Prolog)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user