moonscript icon indicating copy to clipboard operation
moonscript copied to clipboard

Syntax error should throw for invalid interpolation

Open leafo opened this issue 2 years ago • 0 comments

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

leafo avatar Jul 01 '23 16:07 leafo