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 pseudo-elements not recognized #10425
Comments
Which version of SciTE did you try? |
@mere-human Latest version. |
You should post the exact numbers. So that people who'll read this in future don't need to guess what was "the latest" at that time. |
SciTE v. 4.4.6 also doesn’t have this problem. |
Only two list was set:
what represents "CSS1 Properties" and "Pseudo-classes" Now it's wrong because pseudo-elements was listed as pseudo-classes: and in practice when we use "::" for them (not ":" as for pseudoclasses) we get Info: |
@ArkadiuszMichalski @donho |
I suppose |
@vsl7 |
@donho Correctly, in Notepad++ CSS pseudo-elements are recognized as UNKNOWN_PSEUDOCLASS, for which I have different highlighting. |
Under my v8.1.4: So it's 2 "unknown" unities are not included in the category of highlighting? |
@donho The problem is that known pseudo-elements in the form with double colon ( |
@vsl7
Could you confirm the description above? |
@donho In css lexer this SCE_CSS_UNKNOWN_PSEUDOCLASS represents both not recognized The question is what to do with the old I planned to open a bug for the css lexer to recognize the old |
@ArkadiuszMichalski Could you provide me the psudo-element keyword list (or the link) please? I'm updating CSS keywords list and adding new stylers. |
Found this link: Not sure it's all keyword list. |
Actually MDN is official documentation for all browsers (there are also links to specs): but not much in this case, so: https://drafts.csswg.org/css-pseudo-4/ Some are also defined elsewhere, still in the testing phase. Generally, it is best to just add support for the pseudo-element list and provide some basic ones in it. This list can be completed in the future. This are support in all current browsers: ::after (:after) ::selection
|
Thank you! I can add "slotted part" in the list. But with or without parentheses ? |
Without, I checked it in the last SciTE. |
These old pseudo-elements notation can be expressed with the "Browser-Specific Pseudo-classes" list, assuming you won't expose it anyway for it oryginal purpose: So use also |
Update CSS keywords and add new styles. Fix notepad-plus-plus#10425
I don't quit follow you. |
Notepad++ doesn’t recognize CSS pseudo-elements in the form
::pseudo-element
, unlike:pseudo-element
. SciTE doesn’t have this problem.The text was updated successfully, but these errors were encountered: