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

Parse Comments? #38

Open
billdami opened this issue Jun 11, 2012 · 2 comments
Open

Parse Comments? #38

billdami opened this issue Jun 11, 2012 · 2 comments
Labels

Comments

@billdami
Copy link

Would it be possible to add the ability to parse comments that are both associated with a specific declaration block (aka are within the rule's opening and closing braces), and just global comments that are at the root document level?

For instance, for a CSS snippet like this:

h1 {
  /* my comment */
  color: #000000;
  font-size: 24px;
}

Would be parsed to (in simplified structure):

    declaration block =>
        selector =>  "h1"
        comments => array
            "my comment"
        ruleset => array
            ....
@khromov
Copy link

khromov commented Jul 24, 2012

This is a great idea, would be very happy to see this feature for both selectors and individual css rules inside selectors!

@lexx27
Copy link

lexx27 commented Nov 18, 2013

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants