Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

PHP Heredoc breaks folding #372

@boogiefromzk

Description

@boogiefromzk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions