Skip to content
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

False error when lexing CSS #2382

Closed
mgroth0 opened this issue Mar 18, 2023 · 0 comments · Fixed by #2383
Closed

False error when lexing CSS #2382

mgroth0 opened this issue Mar 18, 2023 · 0 comments · Fixed by #2383
Labels
A-lexing area: changes to individual lexers T-bug type: a bug
Milestone

Comments

@mgroth0
Copy link

mgroth0 commented Mar 18, 2023

Here is the CSS:

.target-img {
  position: absolute; 
  top: 25%; 
  left: 50%; 
  transform: translate(-50%, -50%);
}

As you can see on https://pygments.org/demo/, the percent signs in the translate function are rendered as errors. But actually, they are valid CSS.

@birkenfeld birkenfeld added T-bug type: a bug A-lexing area: changes to individual lexers labels Mar 19, 2023
birkenfeld added a commit that referenced this issue Mar 19, 2023
@Anteru Anteru added this to the 2.15.0 milestone Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers T-bug type: a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants