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

Parser chokes on vararg functions #3

Open
n1tehawk opened this issue Aug 14, 2017 · 0 comments
Open

Parser chokes on vararg functions #3

n1tehawk opened this issue Aug 14, 2017 · 0 comments

Comments

@n1tehawk
Copy link

Currently, the parser is unable to handle vararg function declarations like e.g.

local function printf(...)
	print(string.format(...))
end

local function printf_alternative(fmt, ...)
	print(string.format(fmt, ...))
end

as it always expects identifiers in the argument list.

Pull request #1 is a first, incomplete attempt to fix this. I've submitted my solution in #2.

Regards, NiteHawk

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