-
Notifications
You must be signed in to change notification settings - Fork 68
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
[CSS] Nesting and &-selector #210
Comments
I don't know how all this "pull request" stuff works on github. I created a .patch file for LexCSS.cxx, that someone could use as a starting point.
|
This causes the lexer to re-read the document from the start ( You could make the nesting behaviour opt-in with an additional property similar to |
I must admit I didn't look too deep into what the code actually does. After I saw that the if clause for the '&' selector was inside a (hasVariables) if clause I decided that either the code is kind of weird or I'm too much of a noob to get it – probably it's a bit of both. The list of TODO comments seem to indicate that there's noone really caring at the moment. So I'll try my best to read more into this lexer nesting stuff and contribute if I'm able to. Thanks for the hint with |
Another problem with |
Nesting and the &-selector are now supported in CSS and shoud be enabled for the "normal" CSS lexer too.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_nesting/Using_CSS_nesting
Nesting check:
https://github.com/ScintillaOrg/lexilla/blob/master/lexers/LexCSS.cxx#L111
&-selector check:
https://github.com/ScintillaOrg/lexilla/blob/master/lexers/LexCSS.cxx#L370
The text was updated successfully, but these errors were encountered: