Log In  


In 0.2.6 and earlier, this code snippet would print out hi.

if(true)--[[
]]print('hi')

In 0.2.6b, this is a syntax error instead

'then' expected near 'print'


I'm guessing the preprocessor removed the comment and the line-break inside it, whereas without the preprocessor, it IS seen as on another line.


I feel like it should probably work the way it currently does. It doesn't make sense to have a single-line if statement on multiple lines, even if there's a multiline comment in the middle of it (but also why would you need a multiline comment in the middle of a single line if statement?)



[Please log in to post a comment]