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

Folding issue with nested rules on same line #49

Open
zanona opened this issue Jan 23, 2015 · 1 comment
Open

Folding issue with nested rules on same line #49

zanona opened this issue Jan 23, 2015 · 1 comment

Comments

@zanona
Copy link

zanona commented Jan 23, 2015

Apparently having the following rule structure, causes the code folding to break.

ul {
    li { display: block; padding: .5em; a { color: red; } } 
    h4 { color: red; }
} 

folded looks like:

+ul {...li { display: block; padding: .5em; a { color: red; } }                                    
    h4 { color: red; }
} 

the only way to grant the code-folding will be correct is to split nested rules into different lines such as:

ul {
    li { display: block; padding: .5em;
        a { color: red; }
    } 
    h4 { color: red; }
} 

which properly folds to

+ul {...} 
@dhruvasagar
Copy link
Collaborator

Well to be honest, it should really be written as :

ul {
  li {
    display: block;
    padding: .5em;
    a {
      color: red;
    }
  }
  h4 {
    color: red;
  }
}

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