aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-03-25 19:34:41 +0000
committerMatthew Wild <mwild1@gmail.com>2010-03-25 19:34:41 +0000
commitfedb8443003df7a5f87257f795f64abd05072be8 (patch)
tree850dad2c24af14237b7d0c4464fd57fd1aca89c4 /tools
parent6fa3afd4ef1db7709ba4fe07555ce14638e35e44 (diff)
downloadprosody-fedb8443003df7a5f87257f795f64abd05072be8.tar.gz
prosody-fedb8443003df7a5f87257f795f64abd05072be8.zip
tools/erlparse: Discard erlang PIDs instead of choking on them as a syntax error
Diffstat (limited to 'tools')
-rw-r--r--tools/erlparse.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/erlparse.lua b/tools/erlparse.lua
index a5cef464..dc3a2f94 100644
--- a/tools/erlparse.lua
+++ b/tools/erlparse.lua
@@ -121,6 +121,12 @@ local function readTuple()
end
local function readBinary()
read("<"); -- read <
+ -- Discard PIDs
+ if isNumeric(peek()) then
+ while peek() ~= ">" do read(); end
+ read(">");
+ return {};
+ end
local t = readTuple();
read(">") -- read >
local ch = peek();