summaryrefslogtreecommitdiff
path: root/scripts/check_sources.py
diff options
context:
space:
mode:
authorAndrew Balmos <andrew@balmos.org>2014-10-09 11:11:34 -0400
committerAndrew Balmos <andrew@balmos.org>2014-10-09 11:11:34 -0400
commitececf9767b5cc2a5ae633f05e0ad8e09e1d3ace2 (patch)
treef0d07801609d0d1e8d5bdb8c8796e3cb461162b2 /scripts/check_sources.py
parent87781e3aa6748b035a822a3a8fdf2cedd53d478b (diff)
downloadpygments-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