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

Nested '}' auto indent wrong #47

Closed
andyyou opened this issue Oct 29, 2014 · 5 comments
Closed

Nested '}' auto indent wrong #47

andyyou opened this issue Oct 29, 2014 · 5 comments

Comments

@andyyou
Copy link

andyyou commented Oct 29, 2014

x {
  table {
   color: red;
}  /* here always wrong indent */
}
@gabrielalmeida
Copy link

👍

@jdivock
Copy link

jdivock commented Jan 21, 2015

I'm running into something similar when using '&'

before auto-indent

.movie-search-results {
    .movie-row {
        td {
            &.admin {
                min-width: 17rem;
            }
        }
    }
}

after

.movie-search-results {
    .movie-row {
        td {
            &.admin {
                min-width: 17rem;
        }
    }
}
}

@andyyou
Copy link
Author

andyyou commented Jan 26, 2015

haha but no one fix it?

@dhruvasagar
Copy link
Collaborator

This works as expected for me, I am unable to reproduce the issues as you described.

@dhruvasagar
Copy link
Collaborator

Just a note, Less plugin leverages css indent plugin, so if this is happening for you, it might be a css indent plugin issue. Since it works fine for me, updating your vim (which will update the plugins shipped with vim) should fix this for you, if not then perhaps some other css plugin is messing something up.

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

4 participants