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.

Decimal numbers immediately following a return marked as invalid #502

Open
@winstliu

Description

@winstliu

Prerequisites have been fulfilled.

The following code snippet is valid, albeit ugly:

function test() { return.5 }
console.log(test()) // 0.5

I looked at fixing this but in order to ensure that sreturn.5 isn't matched you would need a more complicated lookbehind than Oniguruma allows (such as (?<=\breturn)). Maybe I'm missing something or there's a better way.

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