Add heuristic for Perl6 and Turing (#3049)

This commit is contained in:
John Gardner
2016-06-14 05:11:56 +10:00
committed by Arfon Smith
parent f28573420e
commit 920f825496

View File

@@ -391,6 +391,14 @@ module Linguist
end
end
disambiguate ".t" do |data|
if /^\s*%|^\s*var\s+\w+\s*:\s*\w+/.match(data)
Language["Turing"]
elsif /^\s*use\s+v6\s*;/.match(data)
Language["Perl6"]
end
end
disambiguate ".toc" do |data|
if /^## |@no-lib-strip@/.match(data)
Language["World of Warcraft Addon Data"]