projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b9a51f
)
tools/erlparse: Discard erlang PIDs instead of choking on them as a syntax error
author
Matthew Wild
<mwild1@gmail.com>
Thu, 25 Mar 2010 19:34:41 +0000
(19:34 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Thu, 25 Mar 2010 19:34:41 +0000
(19:34 +0000)
tools/erlparse.lua
patch
|
blob
|
history
diff --git
a/tools/erlparse.lua
b/tools/erlparse.lua
index a5cef46480a30c832db521fdba7bae8c2bcc4e07..dc3a2f94e6d44c3d03fa20d09dc57c94bec31d69 100644
(file)
--- 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();