-
Notifications
You must be signed in to change notification settings - Fork 630
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
HTTP lexer fails on HTTP/2.0 (HTTP/2 works) #1520
Comments
Ohhh no, I now just see it's not (only) the header where it fails, it misses HTTP/2 support altogether, because this works:
It only highlights the colon:
But this totally fails:
|
Oh sorry, just see support has been added in v2.6.1 for this, Sry. |
Though this does not explain why it does not work on https://pygments.org/demo/#try Also could there be a bug? ah… only |
Okay, opened a PR now: #1521 |
Aaand, as I just notice, the colon issue is still present. Thus opening this as a new issue: #1523 |
HTTP/2 defines pseudo-headers with colons:
https://stackoverflow.com/a/38471412/5008962
E.g.
in https://pygments.org/demo/#try
results in a bad image
Also reproduced locally with:
The text was updated successfully, but these errors were encountered: