hedgewars/uScript.pas
changeset 14238 83e816254f2e
parent 14237 3d4a5a10d2cd
child 14240 de21f6eb2366
--- a/hedgewars/uScript.pas	Fri Nov 16 14:47:07 2018 -0500
+++ b/hedgewars/uScript.pas	Fri Nov 16 14:59:57 2018 -0500
@@ -3613,7 +3613,7 @@
                     lastChar := mybuf[i];
                     // lua apparently allows --  [===============[  as a valid block comment start.  
                     // I can't be bothered to check for that nonsense. Will allow limited single line without [
-                    if (byte(mybuf[i]) = $0D) or (byte(mybuf[i]) = $0A) or mybuf[i] = '[' then
+                    if (byte(mybuf[i]) = $0D) or (byte(mybuf[i]) = $0A) or (mybuf[i] = '[') then
                         inComment := false
                 end;
         end;
@@ -3651,7 +3651,7 @@
                         inc(wordCount);
                     lastChar := mybuf[i];
                     // this allows at least supporting the commented strings at end of line with lua script names
-                    if (byte(mybuf[i]) = $0D) or (byte(mybuf[i]) = $0A) or mybuf[i] = '[' then
+                    if (byte(mybuf[i]) = $0D) or (byte(mybuf[i]) = $0A) or (mybuf[i] = '[') then
                         inComment := false
                 end;
         end;