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