Skip to content

[Syntax Highlighting] Heredoc and nowdoc blocks don't end when it is a wrapped argumentΒ #138

@lexidor

Description

@lexidor

This issue was not recently introduced. Hackfmt changed its preferred way of formatting this code. The new style breaks the syntax highlighter, as it seems to miss the end Heredoc token. The current Github highlighting matches the broken behavior.

function _(): void {
  $x = Str\format(<<<END
END
);
  $y = '';
  Cls::someMethod();
}
function _(): void {
  $x = Str\format(
    <<<END
END
);
  $y = '';
  Cls::someMethod();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions