summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-12-03 15:25:15 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-12-03 15:25:15 +0900
commit12660e44b5a763f19352a53c3fd4d641ccc6b0e6 (patch)
tree49ca4e663a1ec7978ce06020e698cacc3141019d /sphinx/highlighting.py
parentb799249c775472e3d26f7854ea0bc62ce33326d9 (diff)
downloadsphinx-git-12660e44b5a763f19352a53c3fd4d641ccc6b0e6.tar.gz
Fix #3185: Add new warning type ``misc.highlighting_failure``
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 9594b5336..4b4ba87da 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -143,7 +143,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)