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

Ending brace missaligned when part of first definition in var line #430

Closed
yacomink opened this issue Mar 23, 2014 · 1 comment
Closed

Comments

@yacomink
Copy link
Contributor

For instance, in this example the ending brace here is shifted left one column:

var firstVar = {
    option1: 0,
    option2: 0
},
    secondVar;

But here it is correct:

var veryFirstVar,
    firstVar = {
        option1: 0,
        option2: 0
    },
    secondVar;
@bitwiseman
Copy link
Member

See #200. We don't fully parse, so we don't know. ... In this exact case, we might be able to detect that the next character is , but there are tons of edge cases where that will not be enough. Until we make changes to address #200, this will remain difficult to fix.

bitwiseman added a commit to bitwiseman/js-beautify that referenced this issue Apr 4, 2014
bitwiseman added a commit to bitwiseman/js-beautify that referenced this issue Apr 4, 2014
@bitwiseman bitwiseman added this to the v1.5.1 milestone Apr 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants