Skip to content

Use a warning subtype for Pygments unknown lexers #13334

@b-kamphorst

Description

@b-kamphorst

Is your feature request related to a problem? Please describe.
I'd like to suppress Pygments warnings indicating unkown lexer names:

WARNING: Pygments lexer name 'csv' is not known

Describe the solution you'd like
Add a type.subtype to the warning raised at https://github.com/sphinx-doc/sphinx/blob/v8.1.3/sphinx/highlighting.py#L167, similar to #3185.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementenhance or introduce a new feature

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions