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

No indent in continuation section in linear array #293

Closed
kyklish opened this issue Dec 21, 2022 · 1 comment
Closed

No indent in continuation section in linear array #293

kyklish opened this issue Dec 21, 2022 · 1 comment
Assignees
Labels
bug something isn't working formatter code formatter issues wontfix this will not be worked on

Comments

@kyklish
Copy link
Contributor

kyklish commented Dec 21, 2022

Description

No indent in continuation section in linear array

Expected formatted output snippet

arr := [ "str1"
    , "str2"
    , [ "str3"
        , "str4" ]
    , "str5" ]
obj := { 0:0
    , arr: [ ""
        , "str1"
        , "str2" ] }

Actual formatted output snippet

arr := [ "str1"
    , "str2"
    , [ "str3"
    , "str4" ]
    , "str5" ]
obj := { 0:0
    , arr: [ ""
    , "str1"
    , "str2" ] }
@kyklish kyklish added bug something isn't working formatter code formatter issues labels Dec 21, 2022
@mark-wiemer
Copy link
Member

Closing this as low priority, I'd encourage defining the inner array separately as a variable and then including that as a workaround:

inner := [ "str3", "str4" ]
objArray := [ ""
    , "str1"
    , "str2" ]
arr := [ "str1"
    , "str2"
    , inner
    , "str5" ]
obj := { 0:0
    , arr: objArray }

@mark-wiemer mark-wiemer closed this as not planned Won't fix, can't repro, duplicate, stale Oct 18, 2024
@mark-wiemer mark-wiemer added the wontfix this will not be worked on label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working formatter code formatter issues wontfix this will not be worked on
Projects
Status: Done
Development

No branches or pull requests

2 participants