pygments / pygments/pygments

Highlight "revert" keyword value in CSS

Open Beginner friendly
#2,766 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.2k
Forks
885
PR merge metrics
No merged PRs in 30d

Description

Please add highlighting of the revert keyword value in CSS.

In this section: https://github.com/pygments/pygments/blob/2b915b92b81899a79a559d4ea0003b2454d636f4/pygments/lexers/css.py#L65

The other related values are already highlighted: inherit, initial, unset

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in pygments/lexers/css.py at the linked section around line 65, where related CSS keyword values such as inherit, initial, and unset are highlighted. Add revert consistently with those values, then verify that CSS lexing highlights the keyword while the existing lexer behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, python
Domain
tooling
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.