{"action":"created","issue":{"url":"https://api.github.com/repos/github/linguist/issues/3832","repository_url":"https://api.github.com/repos/github/linguist","labels_url":"https://api.github.com/repos/github/linguist/issues/3832/labels{/name}","comments_url":"https://api.github.com/repos/github/linguist/issues/3832/comments","events_url":"https://api.github.com/repos/github/linguist/issues/3832/events","html_url":"https://github.com/github/linguist/issues/3832","id":259478760,"number":3832,"title":"perl files with no extension and POD and a shebang should be rendered as syntax-highlighted perl, not POD","user":{"login":"dgholz","id":1451750,"avatar_url":"https://avatars1.githubusercontent.com/u/1451750?v=4","gravatar_id":"","url":"https://api.github.com/users/dgholz","html_url":"https://github.com/dgholz","followers_url":"https://api.github.com/users/dgholz/followers","following_url":"https://api.github.com/users/dgholz/following{/other_user}","gists_url":"https://api.github.com/users/dgholz/gists{/gist_id}","starred_url":"https://api.github.com/users/dgholz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgholz/subscriptions","organizations_url":"https://api.github.com/users/dgholz/orgs","repos_url":"https://api.github.com/users/dgholz/repos","events_url":"https://api.github.com/users/dgholz/events{/privacy}","received_events_url":"https://api.github.com/users/dgholz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-09-21T12:29:01Z","updated_at":"2017-10-17T07:39:00Z","closed_at":null,"author_association":"NONE","body":"This bug was introduced in #3735. Here's an expanded version of my comment from there.\r\n\r\nThis change recognizes files with no extension and a perl shebang and POD contents as POD files, but I'd expect them to be shown as syntax-highlighted perl. I would expect POD-only files to (maybe) have a `.pod` extension, and (always) no shebang. Some examples from CPAN:\r\n\r\nhttps://metacpan.org/source/LEONT/Module-Build-0.4224/lib/Module/Build/API.pod has no shebang and a `.pod` extension.\r\n\r\nhttps://metacpan.org/source/LEONT/Module-Build-0.4224/lib/Module/Build/Cookbook.pm has no shebang and a `.pm` extension.\r\n\r\nHere's an example of where linguist chooses to render as POD rather than as syntax-highlighted perl: https://github.com/sitaramc/gitolite/blob/5c2fe87019dadbecb1883bedd075cd07b07b2078/src/gitolite\r\nIt previously displayed as a highlighted perl script (good), but now displays as the embedded POD (requiring me to use the Raw view to be able to see the code). It has a shebang.\r\n\r\nPlease fix it to correctly detect these kinds of files as perl (not POD) or revert it, thanks!"},"comment":{"url":"https://api.github.com/repos/github/linguist/issues/comments/337145197","html_url":"https://github.com/github/linguist/issues/3832#issuecomment-337145197","issue_url":"https://api.github.com/repos/github/linguist/issues/3832","id":337145197,"user":{"login":"kivikakk","id":1915,"avatar_url":"https://avatars1.githubusercontent.com/u/1915?v=4","gravatar_id":"","url":"https://api.github.com/users/kivikakk","html_url":"https://github.com/kivikakk","followers_url":"https://api.github.com/users/kivikakk/followers","following_url":"https://api.github.com/users/kivikakk/following{/other_user}","gists_url":"https://api.github.com/users/kivikakk/gists{/gist_id}","starred_url":"https://api.github.com/users/kivikakk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kivikakk/subscriptions","organizations_url":"https://api.github.com/users/kivikakk/orgs","repos_url":"https://api.github.com/users/kivikakk/repos","events_url":"https://api.github.com/users/kivikakk/events{/privacy}","received_events_url":"https://api.github.com/users/kivikakk/received_events","type":"User","site_admin":true},"created_at":"2017-10-17T07:39:00Z","updated_at":"2017-10-17T07:39:00Z","author_association":"MEMBER","body":"Fix incoming. Sorry for such a long delay, all. :heart:"}}
{"actor":{"display_login":"kivikakk"}}