'<<<HTML breaks collapsing in VSCode

I haven't work with PHP before and I have a pretty hard time trying to understand a large php file. Using vscode I am trying to collapse everything and start from there. However, this particular syntax <<<HTML ... HTML; breaks proper collapsing in VSCode.

The collapsing tends to stop when it encounters that particular code, instead to go all the way until the right }. It seems to consider <<<HTML and HTML; as } too.

I think the best way is to provide some screenshots:

Before collapsing

After collapsing (broken)

The way I want it (I had to delete code to make it look like this)

Is there any VSCode extension that would fix this?

Are you aware of any possible solutions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source