Re: [csswg-drafts] [css-nesting-1] Syntax Invites Errors (#7834)

> if you see anything else:
> if you're in "declarations mode", consume an ambiguous rule. If this succeeds, switch to "rules" mode.
> if you're in "rules" mode, consume a rule.

I guess recognizing comments would be in there somewhere too, like if you see a slash, look ahead another character to see if it is a `*`. Comments could be in either mode. 

It would be nice if we also explicitly recognized double slashes as the beginning of a comment that extends to the end of the line. Like SCSS commenting. 

-- 
GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7834#issuecomment-1270858508 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 7 October 2022 00:06:00 UTC