From b587379f4ab9531b546471c6f13f2dfce752c940 Mon Sep 17 00:00:00 2001 From: vitaut Date: Thu, 19 Mar 2015 17:33:52 -0700 Subject: [PATCH] Add a heuristic to disambiguate between NL and NewLisp --- lib/linguist/heuristics.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/linguist/heuristics.rb b/lib/linguist/heuristics.rb index 0087bb51..439a0e60 100644 --- a/lib/linguist/heuristics.rb +++ b/lib/linguist/heuristics.rb @@ -270,5 +270,13 @@ module Linguist end end + disambiguate "NL", "NewLisp" do |data| + if /^g3 /.match(data) + Language["NL"] + else + Language["NewLisp"] + end + end + end end