]> git.lizzy.rs Git - metalua.git/commitdiff
indentation cleanup
authorFabien Fleutot <fabien@MacFabien.home>
Wed, 11 Feb 2009 01:24:23 +0000 (02:24 +0100)
committerFabien Fleutot <fabien@MacFabien.home>
Wed, 11 Feb 2009 01:24:23 +0000 (02:24 +0100)
src/compiler/lexer.lua

index edfa666c620401292c69fe05d8753e67f2278cb2..8b1980468d97b4f9d355ba5fdc8259b49e50cff6 100644 (file)
@@ -64,8 +64,8 @@ local function unescape_string (s)
    local function unesc_digits (backslashes, digits)
       if #backslashes%2==0 then
          -- Even number of backslashes, they escape each other, not the digits.
-        -- Return them so that unesc_letter() can treaat them
-        return backslashes..digits
+         -- Return them so that unesc_letter() can treaat them
+         return backslashes..digits
       else
          -- Remove the odd backslash, which escapes the number sequence.
          -- The rest will be returned and parsed by unesc_letter()
@@ -75,7 +75,8 @@ local function unescape_string (s)
       local z = _G.string.byte "0"
       local code = (k or z) + 10*(j or z) + 100*(i or z) - 111*z
       if code > 255 then 
-        error ("Illegal escape sequence '\\"..digits.."' in string: ASCII codes must be in [0..255]") 
+        error ("Illegal escape sequence '\\"..digits..
+                "' in string: ASCII codes must be in [0..255]") 
       end
       return backslashes .. string.char (code)
    end