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

> 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.

Comments are handled at an earlier level in the parser; they get consumed and thrown away whenever you ask for the next token, so none of the parser algorithms see them at all.

> 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.

It would be, but likely impossible due to legacy content, unfortunately.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7834#issuecomment-1272013760 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 19:23:03 UTC