From fcee97b8d0091ceb471902ee457dbccaab98234e Mon Sep 17 00:00:00 2001 From: Fabien Fleutot Date: Wed, 11 Feb 2009 02:24:23 +0100 Subject: [PATCH] indentation cleanup --- src/compiler/lexer.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/compiler/lexer.lua b/src/compiler/lexer.lua index edfa666..8b19804 100644 --- a/src/compiler/lexer.lua +++ b/src/compiler/lexer.lua @@ -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 -- 2.44.0