summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
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)