diff options
author | Waqas Hussain <waqas20@gmail.com> | 2012-08-04 23:23:49 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2012-08-04 23:23:49 +0500 |
commit | 87bbb2a94317f7a4e3c0f473e38131d2b7a38a9a (patch) | |
tree | fb39ca86052d2c0067d21a2817a50f0dd0f8893f | |
parent | 9b2b1892b8cbc2781e39e6f0d28983ffd28356a8 (diff) | |
download | prosody-87bbb2a94317f7a4e3c0f473e38131d2b7a38a9a.tar.gz prosody-87bbb2a94317f7a4e3c0f473e38131d2b7a38a9a.zip |
tools/erlparse: Fix erlang string escape sequences.
-rw-r--r-- | tools/erlparse.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/erlparse.lua b/tools/erlparse.lua index dc3a2f94..287e45ba 100644 --- a/tools/erlparse.lua +++ b/tools/erlparse.lua @@ -51,7 +51,7 @@ local function isSpace(ch) return ch <= _space; end -local escapes = {["\\b"]="\b", ["\\d"]="\d", ["\\e"]="\e", ["\\f"]="\f", ["\\n"]="\n", ["\\r"]="\r", ["\\s"]="\s", ["\\t"]="\t", ["\\v"]="\v", ["\\\""]="\"", ["\\'"]="'", ["\\\\"]="\\"}; +local escapes = {["\\b"]="\b", ["\\d"]="\127", ["\\e"]="\27", ["\\f"]="\f", ["\\n"]="\n", ["\\r"]="\r", ["\\s"]=" ", ["\\t"]="\t", ["\\v"]="\v", ["\\\""]="\"", ["\\'"]="'", ["\\\\"]="\\"}; local function readString() read("\""); -- skip quote local slash = nil; |