summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2016-12-05 23:14:25 +0900
committershimizukawa <shimizukawa@gmail.com>2016-12-05 23:14:25 +0900
commit0a7d039df59d15e56b74d7c6bdb72d2454f31cc1 (patch)
treebe59b0e16f7254482c563bbadfa121b751f55811 /sphinx/highlighting.py
parenta265670b79e737a0c88ea76dbac5485c19f6e350 (diff)
parent9f3a95e1da6c8a026df0b197e9d941f963341c38 (diff)
downloadsphinx-git-0a7d039df59d15e56b74d7c6bdb72d2454f31cc1.tar.gz
Merge branch '1.5-release' into master
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r--sphinx/highlighting.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py
index 543e1485a..a3e36486f 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -144,7 +144,8 @@ class PygmentsBridge(object):
pass # automatic highlighting failed.
elif warn:
warn('Could not lex literal_block as "%s". '
- 'Highlighting skipped.' % lang)
+ 'Highlighting skipped.' % lang,
+ type='misc', subtype='higlighting_failure')
else:
raise exc
hlsource = highlight(source, lexers['none'], formatter)