Improve NL/NewLisp disambiguation heuristic

NL files start with either 'b' or 'g' followed by an unsigned integer.
This commit is contained in:
vitaut
2015-04-16 15:19:22 -07:00
parent fac4633337
commit 9da42fba5b

View File

@@ -275,7 +275,7 @@ module Linguist
end
disambiguate "NL", "NewLisp" do |data|
if /^g3 /.match(data)
if /^(b|g)[0-9]+ /.match(data)
Language["NL"]
else
Language["NewLisp"]