Skip to content

Commit

Permalink
Merge pull request github-linguist#2246 from ampl/nl
Browse files Browse the repository at this point in the history
Add a heuristic to disambiguate between NL and NewLisp
  • Loading branch information
arfon committed Mar 20, 2015
2 parents ba654b2 + b587379 commit 55559a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/linguist/heuristics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,5 +270,13 @@ def call(data)
end
end

disambiguate "NL", "NewLisp" do |data|
if /^g3 /.match(data)
Language["NL"]
else
Language["NewLisp"]
end
end

end
end

0 comments on commit 55559a1

Please sign in to comment.