diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-12-03 15:25:15 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2016-12-03 15:25:15 +0900 |
commit | 12660e44b5a763f19352a53c3fd4d641ccc6b0e6 (patch) | |
tree | 49ca4e663a1ec7978ce06020e698cacc3141019d /sphinx/highlighting.py | |
parent | b799249c775472e3d26f7854ea0bc62ce33326d9 (diff) | |
download | sphinx-git-12660e44b5a763f19352a53c3fd4d641ccc6b0e6.tar.gz |
Fix #3185: Add new warning type ``misc.highlighting_failure``
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r-- | sphinx/highlighting.py | 3 |
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) |