fix // comments

This commit is contained in:
Redo 2022-11-01 14:20:45 -06:00
parent 06dc63ce74
commit ae6dd9f2bc

View File

@ -302,7 +302,7 @@ local function prefixCode(code, fn) -- fix strings, add line numbers
if state=="code" then
if c=="\r" then
elseif c=="\n" or c=="/" then
elseif c=="\n" or (c=="/" and cn~="/") then
linenum = linenum+1
if not skipnl then out("\n") out(".ln "..linenum); out("\n"); end
lastnl = true