{"action":"opened","issue":{"url":"https://api.github.com/repos/atom/atom/issues/18061","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/18061/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/18061/comments","events_url":"https://api.github.com/repos/atom/atom/issues/18061/events","html_url":"https://github.com/atom/atom/issues/18061","id":360643695,"node_id":"MDU6SXNzdWUzNjA2NDM2OTU=","number":18061,"title":"Perl syntax folding bug","user":{"login":"sardior","id":43279628,"node_id":"MDQ6VXNlcjQzMjc5NjI4","avatar_url":"https://avatars1.githubusercontent.com/u/43279628?v=4","gravatar_id":"","url":"https://api.github.com/users/sardior","html_url":"https://github.com/sardior","followers_url":"https://api.github.com/users/sardior/followers","following_url":"https://api.github.com/users/sardior/following{/other_user}","gists_url":"https://api.github.com/users/sardior/gists{/gist_id}","starred_url":"https://api.github.com/users/sardior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sardior/subscriptions","organizations_url":"https://api.github.com/users/sardior/orgs","repos_url":"https://api.github.com/users/sardior/repos","events_url":"https://api.github.com/users/sardior/events{/privacy}","received_events_url":"https://api.github.com/users/sardior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-16T14:18:33Z","updated_at":"2018-09-16T14:18:33Z","closed_at":null,"author_association":"NONE","body":"### Prerequisites\r\n\r\n* [X] Put an X between the brackets on this line if you have done all of the following:\r\n    * Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode\r\n    * Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/\r\n    * Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq\r\n    * Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom\r\n    * Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages\r\n\r\n### Description\r\nText folding around perl raw block text format does not work properly.\r\n```\r\nforeach $p (keys(%balances)){\r\n\t    $fh->open(\"$p.memo\",\"w\");\r\n\t    print $fh <<EOF;\r\nTo: $p\r\nRe: Your Account Balance\r\n\r\nThis memo is to inform you that your account balance is currently\r\n$balances{$p}.  Please send your payment as soon as possible.\r\n\r\nThank you.\r\nEOF\r\n}\r\n```\r\nIn this example collapsing the foreach method collapses only the next two lines. While tabulating the raw text fixes this problem, the tabulation will appeare in the printed message, and that might be undesirable.\r\n### Steps to Reproduce\r\n\r\n1. Continiously present in any perl file using this syntax.\r\n\r\n**Expected behavior:** The block of the method/condition collapses properly.\r\n\r\n**Actual behavior:** The block collapses to the begining of the raw text.\r\n\r\n### Versions\r\nAtom    : 1.30.0\r\nElectron: 2.0.5\r\nChrome  : 61.0.3163.100\r\nNode    : 8.9.3\r\n"}}
{"actor":{"display_login":"sardior"}}