atom/language-php

PHP Heredoc breaks folding

Closed this issue · 1 comments

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

rsese commented

This issue is still actual with tree-sitter enabled.
atom/atom#3442

language-php isn't using Tree-sitter yet /cc #303.