Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sproto dump无法正确处理*array() #114

Closed
mrcaorui opened this issue Dec 8, 2023 · 1 comment
Closed

sproto dump无法正确处理*array() #114

mrcaorui opened this issue Dec 8, 2023 · 1 comment

Comments

@mrcaorui
Copy link

mrcaorui commented Dec 8, 2023

./core.lua:47: syntax error at [.sproto] line (108)
stack traceback:
        [C]: in function 'error'
        ./core.lua:47: in function <./core.lua:46>
        [C]: in function 'lpeg.match'
        ./core.lua:291: in upvalue 'parser'
        ./core.lua:317: in function 'core.gen_trunk'
        sprotodump.lua:57: in main chunk
        [C]: in ?

怀疑是core.lua这一句不能正确匹配的原因?
local mainkey = "(" * blank0 * name * blank0 * ")"
我改成
local mainkey = "(" * blank0 * (name^0) * blank0 * ")"
看起来就解决了

@mrcaorui mrcaorui closed this as completed Dec 8, 2023
@mrcaorui
Copy link
Author

mrcaorui commented Dec 8, 2023

发错仓库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant