Closed hdcontrino closed 3 years ago
I have solved the issue by editing my regex. It also solves another issue that I did not describe here, which are the strings with brackets inside brackets.
"folding": {
"php": {
"beginRegex": "[^'\"]\\{",
"endRegex": "\\}(?!['\"])"
}
}
I still need to solve the folding in Heredoc and Howdoc. Any suggestion?
@hdcontrino In Heredoc, you can set "nested": false
, it will avoid any foldings inside the comment.
@hdcontrino In Heredoc, you can set
"nested": false
, it will avoid any foldings inside the comment.
Nice! Thanks
Describe the issue
I have this problem in PHP, in other languages I have not tried it. I tried to deny them in settings.json but no effect. when I have brackets in strings the logic of the folding breaks.
To reproduce
Code Example
Settings
Expected behavior
The expected behavior should be nothing.
Screenshots
Additional context
I tried to add a negation in this way:
"beginRegex": "(?<!')\\{";
... and many other ways, but all end up disabling the folding.