leafo/moonscript

Syntax error should throw for invalid interpolation

leafo opened this issue · 0 comments

leafo commented
hello = "one #{three ..} two"

Currently compiles to:

local hello = "one #{three ..} two"

This should abort compilation and throw error if a #{ is opened in a string that supports interpolation, but the interpolation expression does not parse