Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Functions immediately following a closing curly bracket not tokenized #503

Open
@winstliu

Description

@winstliu

Prerequisites have been met.

{}function test() {}

The function declaration isn't tokenized.

This is because we use a lookahead for the begin rule and a lookbehind for the end rule. The lookahead matches, but since the position doesn't advance, the end rule immediately matches as well since it's looking backwards for a closing bracket.

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