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

Comment after [ is not preserved #551

Closed
nojaf opened this issue Nov 4, 2019 · 0 comments · Fixed by #590
Closed

Comment after [ is not preserved #551

nojaf opened this issue Nov 4, 2019 · 0 comments · Fixed by #590

Comments

@nojaf
Copy link
Contributor

nojaf commented Nov 4, 2019

Issue created from fantomas-ui

Comment after [ is not preserved

Code

let nestedList: obj list = [
    "11111111aaaaaaaaa"
    "22222222aaaaaaaaa"
    "33333333aaaaaaaaa"
    [ // this case looks weird but seen rarely
        "11111111bbbbbbbbbbbbbbb"
        "22222222bbbbbbbbbbbbbbb"
        "33333333bbbbbbbbbbbbbbb"
    ]
]

Result

let nestedList: obj list =
    [ "11111111aaaaaaaaa"
      "22222222aaaaaaaaa"
      "33333333aaaaaaaaa"
      [ "11111111bbbbbbbbbbbbbbb"
        "22222222bbbbbbbbbbbbbbb"
        "33333333bbbbbbbbbbbbbbb" ] ]

Options

Fantomas Next - 3.0.1-10/30/2019

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter true
PageWidth 80
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeArgument true
SpaceBeforeColon false
StrictMode false
nojaf added a commit to nojaf/fantomas that referenced this issue Dec 3, 2019
@nojaf nojaf closed this as completed in #590 Dec 4, 2019
nojaf added a commit that referenced this issue Dec 4, 2019
* Fix: print line comment after [, #551

* Changed configuration to match original issue
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

Successfully merging a pull request may close this issue.

1 participant