Skip to content

case value not highlighting in C++ #2076

@Craie

Description

@Craie

When listing multiple case values that aren't literals but constants on a single line in C++ (perhaps others?), the value is not highlighted as it is when listing each case and value on a separate line.

An MWE:

    switch ( CE )
    {
        case value:
        {
            // code for this value
        } break;
        case value: case value:
        {
            // code for these values
        } break;
        default:
        {
            // code for any other values
        } break;
    }

Note: I'm using pygmentize 2.11.2 under minted 2.5 and tcolorbox 4.22 in LaTeX. But the situation is the same from the command-line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    changelog-updateItems which need to get mentioned in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions