hedgewars/uScript.pas
changeset 13975 cc312e22592b
parent 13954 429945a9b8db
child 13997 2828ec67c47c
--- 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