php-parser icon indicating copy to clipboard operation
php-parser copied to clipboard

Heredoc fails to parse escaped newlines

Open cseufert opened this issue 1 year ago • 0 comments

Source of this problem: https://github.com/prettier/plugin-php/issues/2015#issuecomment-1982167227

Unable to parse snippet like this:

<?php
if (true) {
    echo <<<STR
    \na
    STR;
}

cseufert avatar Mar 08 '24 06:03 cseufert