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
Description
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.