Skip to content

T_YIELD_FROM is not recognized and breaks code #37

@r4ndsen

Description

@r4ndsen
function b()
{
    yield from a();
}

results in

function b()
{
    yield froma();
}

removing the space and breaking the actual logic.
i believe it would be enough to just define T_YIELD_FROM in the tokenizer.
token id is 269

//edit: running on php7.1.11

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions