.pod disambiguation heuristic fix (#3541)

Look for any line starting with "=\w+", not full lines, otherwise we
miss e.g. "=head1 HEADING".
This commit is contained in:
Yuki Izumi
2017-03-27 14:10:17 +11:00
committed by GitHub
parent 69ba4c5586
commit b7e27a9f58

View File

@@ -346,7 +346,7 @@ module Linguist
end
disambiguate ".pod" do |data|
if /^=\w+$/.match(data)
if /^=\w+\b/.match(data)
Language["Pod"]
else
Language["Perl"]