-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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) Wrong highlight :first-of-type :first-child #3815
Comments
Please provide textual content of problematic example, not just an image. |
For the CSS language, each letter in the pseudo-classes ":first-of-class" and ":first-child" should be colored. Currently, only ":first" is colored, while "-of-class" and "-child" remain the default color. |
Yes, I understand, but please provide the RAW text (that you took a snap of) that I can easily copy and paste for testing. |
There is the same problem here. "-of-type" and "-child" are not highlighted. The code is as follows.
|
For use in "either" style regex the word lists need to be reverse-alpha sorted - which has the effect of putting the LONGEST terms first, preventing the shorter words from stealing the match. So simply |
is this still open ? |
yes appears so |
Describe the issue
Wrong highlight :first-of-type :first-child, "-of-type" "-child" is not highlighted
Which language seems to have the issue?
CSS
Are you using
highlight
orhighlightAuto
?highlightElement
Sample Code to Reproduce
chatGPT
Expected behavior
Correct highlighting :)
Additional context
The text was updated successfully, but these errors were encountered: