# HG changeset patch # User nemo # Date 1540393544 14400 # Node ID cc312e22592bef87b267ed8d11eeded01e86959f # Parent e98e2fc556a7f61c8b8b68c659948084e1b3655b disable basic comment support 'cause lua is nuts diff -r e98e2fc556a7 -r cc312e22592b hedgewars/uScript.pas --- a/hedgewars/uScript.pas Wed Oct 24 00:08:23 2018 +0200 +++ b/hedgewars/uScript.pas Wed Oct 24 11:05:44 2018 -0400 @@ -3572,7 +3572,7 @@ for i:= 0 to sz^-1 do begin if (lastChar = '-') and (mybuf[i] = '-') then - inComment := true + inComment := false // FIXME - set to false because lua considers --[====[ ]=====] Non-comment stuff to be sensible // gonna add any non-magic whitespace and skip - just to make comment avoidance easier else if not inComment and (byte(mybuf[i]) > $20) and (byte(mybuf[i]) < $7F) and (mybuf[i]<>'-') then begin