Skip to content

(CSS) :before/:after are not highlighted correctly #3240

@LunarTwilight

Description

@LunarTwilight

Describe the issue: :before/:after are not highlighted correctly.

Which language seems to have the issue?: CSS

Are you using highlight or highlightAuto?: highlightAll

...

Sample Code to Reproduce:

.test:before,
.test:after {
  color: pink;
  border-color: red;
}

https://jsfiddle.net/1tfr2cow/

Expected behavior: :before/:after are highlighted like ::before/::after

Additional context: https://developer.mozilla.org/en-US/docs/Web/CSS/::before

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions