~technomancy/fennel#127: 
comment breaks code when used with --correlate

This code will not work after compilation with the --correlate flag

(comment "foo") (local x 10)
(print x)

Without --correlate the code works because local is put on its own line, but with correlate the following happens:

--[[ "foo" ]]-- local x = 10
return print(x)

local x = 10 is a part of the comment, because multiline comments in Lua end with just ]] not with ]]--

In other words, it's similar to ending C comments like this /* foo *///

Status
RESOLVED CLOSED
Submitter
~andreyorst
Assigned to
No-one
Submitted
1 year, 3 months ago
Updated
1 year, 3 months ago
Labels
No labels applied.

~andreyorst 1 year, 3 months ago

I've sent the patch, but the pipeline seems to be broken with something unrelated

~technomancy REPORTED CLOSED 1 year, 3 months ago

Register here or Log in to comment, or comment via email.