diff options
author | Andrew Balmos <andrew@balmos.org> | 2014-10-09 11:11:34 -0400 |
---|---|---|
committer | Andrew Balmos <andrew@balmos.org> | 2014-10-09 11:11:34 -0400 |
commit | ececf9767b5cc2a5ae633f05e0ad8e09e1d3ace2 (patch) | |
tree | f0d07801609d0d1e8d5bdb8c8796e3cb461162b2 /scripts/check_sources.py | |
parent | 87781e3aa6748b035a822a3a8fdf2cedd53d478b (diff) | |
download | pygments-ececf9767b5cc2a5ae633f05e0ad8e09e1d3ace2.tar.gz |
Also checks mediatype suffix for lexer in HttpLexer
The HttpLexer will highlight the body if the Content-Type header is set to a
mediatype that pygments understands. However, some mediatypes have a custom
subtype but a standard and known suffix. Therefore, pygments should highlight
body by the exact media type first and then by the suffix if there was no
match.
For example:
application/vnd.custom+json
currently does not result in the body being highlighted even though pygments is
capable
application/json
Diffstat (limited to 'scripts/check_sources.py')
0 files changed, 0 insertions, 0 deletions