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

Tables with linebreaks become inline #12

Open
Enzojz opened this issue Jul 17, 2017 · 1 comment
Open

Tables with linebreaks become inline #12

Enzojz opened this issue Jul 17, 2017 · 1 comment

Comments

@Enzojz
Copy link

Enzojz commented Jul 17, 2017

For example:

    local limits = {
        {
            inf = radRef + rad,
            mid = radRef + rad - radT,
            sup = radRef + 0.5 * rad,
        },
        {
            inf = radRef + 0.5 * rad,
            mid = radRef + radT,
            sup = radRef,
        },
    }

becomes

local limits = {{inf = radRef + rad, mid = radRef + rad - radT, sup = radRef + 0.5 * rad}, {inf = radRef + 0.5 * rad, mid = radRef + radT, sup = radRef}}
return {
    updateFn = updateFn,
    params = params
}

becomes

return {updateFn = updateFn, params = params}

This bug can be extended for similar case like:

    return group
        * pipe.map(pipe.map(fMake))
        * pipe.flatten()
        * pipe.flatten()
        * pipe.flatten()

become

return group * pipe.map(pipe.map(fMake)) * pipe.flatten() * pipe.flatten() * pipe.flatten()

or

        local upperPolys = pipe.new
            + junction.generatePolyArc(group1.upper.walls, "inf", "mid")(0, 0)
            + junction.generatePolyArc(group2.upper.walls, "mid", "sup")(0, 0)

becomes

local upperPolys = pipe.new + junction.generatePolyArc(group1.upper.walls, "inf", "mid")(0, 0) + junction.generatePolyArc(group2.upper.walls, "mid", "sup")(0, 0)
@trixnz
Copy link
Owner

trixnz commented Jul 23, 2017

I think the table issue you were having was fixed a while ago, as I can't reproduce it. Can you verify with the latest version? In this case, the latest version of vscode-lua will suffice.

As for the pipe snippets, I think that is addressed in #15, or am I misreading that?

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

2 participants