mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-09 02:45:33 +00:00
Create Perl6 heuristic
This commit is contained in:
@@ -70,8 +70,10 @@ module Linguist
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
disambiguate "Perl", "Prolog" do |data|
|
disambiguate "Perl", "Perl6", "Prolog" do |data|
|
||||||
if data.include?("use strict")
|
if data.include?("use v6")
|
||||||
|
Language["Perl6"]
|
||||||
|
elsif data.include?("use strict")
|
||||||
Language["Perl"]
|
Language["Perl"]
|
||||||
elsif data.include?(":-")
|
elsif data.include?(":-")
|
||||||
Language["Prolog"]
|
Language["Prolog"]
|
||||||
|
|||||||
Reference in New Issue
Block a user