oops
authornemo
Fri, 16 Nov 2018 14:59:57 -0500
changeset 14217 83e816254f2e
parent 14216 3d4a5a10d2cd
child 14218 925e2c9877a8
oops
hedgewars/uScript.pas
--- 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;