mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
.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:
@@ -346,7 +346,7 @@ module Linguist
|
|||||||
end
|
end
|
||||||
|
|
||||||
disambiguate ".pod" do |data|
|
disambiguate ".pod" do |data|
|
||||||
if /^=\w+$/.match(data)
|
if /^=\w+\b/.match(data)
|
||||||
Language["Pod"]
|
Language["Pod"]
|
||||||
else
|
else
|
||||||
Language["Perl"]
|
Language["Perl"]
|
||||||
|
|||||||
Reference in New Issue
Block a user