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

The entire body of a function should be indented #26

Closed
mark-wiemer opened this issue Jan 18, 2021 · 0 comments
Closed

The entire body of a function should be indented #26

mark-wiemer opened this issue Jan 18, 2021 · 0 comments
Assignees
Labels
bug something isn't working formatter code formatter issues

Comments

@mark-wiemer
Copy link
Member

Describe the bug

When formatted, some lines of the demo for v1 function body are not indented:

    objobj := { str: str, obj: obj }
objobjobj := { str: str, int: int, obj: { str: str, obj: obj } }

circular := {}
circular.circular := circular
instance := new Cls()

enum := obj._NewEnum()
}

To Reproduce

Steps to reproduce the behavior:

  1. Go to demos/demo_for_v1.ahk
  2. Format the file
  3. See error around line 40

Expected behavior

When formatted, the entire body of a function should be indented:

    objobj := { str: str, obj: obj }
    objobjobj := { str: str, int: int, obj: { str: str, obj: obj } }

    circular := {}
    circular.circular := circular
    instance := new Cls()

    enum := obj._NewEnum()
}
@mark-wiemer mark-wiemer added the bug something isn't working label Jan 18, 2021
@mark-wiemer mark-wiemer self-assigned this Jan 18, 2021
mark-wiemer added a commit that referenced this issue Jan 30, 2021
@mark-wiemer mark-wiemer mentioned this issue Jan 30, 2021
@mark-wiemer mark-wiemer added the formatter code formatter issues label Mar 1, 2021
@mark-wiemer mark-wiemer added this to the 2021-01 January milestone Mar 4, 2021
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
Projects
None yet
Development

No branches or pull requests

1 participant