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

Indentation problem #89

Closed
ralphtheninja opened this issue Mar 5, 2013 · 3 comments
Closed

Indentation problem #89

ralphtheninja opened this issue Mar 5, 2013 · 3 comments

Comments

@ralphtheninja
Copy link

For some reason the following will indent differently depending on the last / in the string. If you remove the last slash it works. It also works if you add a semicolon.

// Nope
var foo = bar('/protocols/')
    baz()

// Yup
var foo = bar('/protocols/');
baz()

// Yup
var goo = bar('/protocols')
baz()
@dgutov
Copy link
Collaborator

dgutov commented Mar 5, 2013

I guess I'll have to revisit the hacky mess that is js2-multiline-decl-indentation. Sigh.

@dgutov dgutov closed this as completed in 1c3b98a Mar 7, 2013
@dgutov
Copy link
Collaborator

dgutov commented Mar 7, 2013

Well, this was easy. Hopefully, it won't break some other case. :)

@ralphtheninja
Copy link
Author

Works perfectly. Thanks! 🍺

fitzsim pushed a commit to fitzsim/emacs that referenced this issue Nov 13, 2014
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