Skip to content

HTTP lexer fails on HTTP/2.0 (HTTP/2 works) #1520

@rugk

Description

@rugk

HTTP/2 defines pseudo-headers with colons:
https://stackoverflow.com/a/38471412/5008962

E.g.

POST /access/sdk/anonymous HTTP/2.0
:authority: example.zendesk.com

{}

in https://pygments.org/demo/#try

results in a bad image

grafik

Also reproduced locally with:

$ pygmentize -V       
Pygments version 2.4.2, (c) 2006-2019 by Georg Brandl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions