jacobrask / styledocco

Automatically generate a style guide from your stylesheets.
http://jacobrask.github.com/styledocco/
MIT License
1.07k stars 119 forks source link

Allow whitespace before single-line comments #109

Closed philschatz closed 10 years ago

philschatz commented 10 years ago

useful for LESS/SCSS which allow scoped selectors and namespaces

For example:

// # Util mixins
// Various mixins that are sprinkled into other selectors
#utils {

  // ## Page Breaks
  #pb {

    // Break before the current element
    .before(@avoid) {
      /* Some rules ... */
    }
  }  
}

Aside: This is being used in conjunction with https://github.com/philschatz/css-coverage.js