Skip to content

Parser chokes on vararg functions #3

Description

@n1tehawk

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions