disable basic comment support 'cause lua is nuts
authornemo
Wed, 24 Oct 2018 11:05:44 -0400
changeset 13975 cc312e22592b
parent 13974 e98e2fc556a7
child 13976 a857cd1cc3f0
disable basic comment support 'cause lua is nuts
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