* [X] Put an X between the brackets on this line if you have done all of the following: * Reproduced the problem in Safe Mode: <https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode> * Followed all applicable steps in the debugging guide: <https://flight-manual.atom.io/hacking-atom/sections/debugging/> * Checked the FAQs on the message board for common solutions: <https://discuss.atom.io/c/faq> * Checked that your issue isn't already filed: <https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom> * Checked that there is not already an Atom package that provides the described functionality: <https://atom.io/packages> ### Description <!-- Description of the issue --> ### Steps to Reproduce Example: creating a PHP file with following content: `<?php function test() { $var = <<<HTML some heredoc text HTML; }` Сlicking folding icon on the line with the function and see this: `<?php function test() { HTML; }` Same with anything which is not shifted to the right on any level of brackets. **Expected behavior:** Expect correct folding **Actual behavior:** Folding is broken **Reproduces how often:** 100% ### Versions Atom : 1.41.0 Electron: 4.2.7 Chrome : 69.0.3497.128 Node : 10.11.0 apm 2.4.3 npm 6.2.0 node 10.2.1 x64 atom 1.41.0 python 2.7.14 git 2.16.4 Atom 1.41.0 x64 RPM package for Linux ### Additional Information This issue is still actual with tree-sitter enabled. https://github.com/atom/atom/issues/3442
Description
Steps to Reproduce
Example: creating a PHP file with following content:
`<?php
function test() {
$var = <<<HTML
some heredoc text
HTML;
}`
Сlicking folding icon on the line with the function and see this:
`<?php
function test() {
HTML;
}`
Same with anything which is not shifted to the right on any level of brackets.
Expected behavior:
Expect correct folding
Actual behavior:
Folding is broken
Reproduces how often:
100%
Versions
Atom : 1.41.0
Electron: 4.2.7
Chrome : 69.0.3497.128
Node : 10.11.0
apm 2.4.3
npm 6.2.0
node 10.2.1 x64
atom 1.41.0
python 2.7.14
git 2.16.4
Atom 1.41.0 x64 RPM package for Linux
Additional Information
This issue is still actual with tree-sitter enabled.
atom/atom#3442