From ed3d38cf05d85ffd9b2d7c5109a520226cc47757 Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Wed, 26 Nov 2014 16:28:00 -0600 Subject: [PATCH] Create Perl6 heuristic --- lib/linguist/heuristics.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index c203b1ba..a4657cd8 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -70,8 +70,10 @@ module Linguist end end - disambiguate "Perl", "Prolog" do |data| - if data.include?("use strict") + disambiguate "Perl", "Perl6", "Prolog" do |data| + if data.include?("use v6") + Language["Perl6"] + elsif data.include?("use strict") Language["Perl"] elsif data.include?(":-") Language["Prolog"]