Skip to content

Commit

Permalink
indentation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Fleutot authored and Fabien Fleutot committed Feb 11, 2009
1 parent 2e27663 commit fcee97b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/compiler/lexer.lua
Expand Up @@ -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()
Expand All @@ -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
Expand Down

0 comments on commit fcee97b

Please sign in to comment.