Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-21 06:47:02 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2019-06-21 06:47:02 +0300
commitb325a1de2b0ec5c897788781026096db60e640f4 (patch)
treeeb0c6c01843e504179b5d77ad5c2234a1d4be26a /sphinx/highlighting.py
parent0fb832baa54a791bbca0be620bad47b6c69b680c (diff)
parentfd5b3c47b6a6a5f30506092cbe469d2772016f63 (diff)
Merge branch '2.0'
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 45a1298b9..16de39edc 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -116,7 +116,8 @@ class PygmentsBridge:
lexer = lexers['none']
if lang in lexers:
- lexer = lexers[lang]
+ # just return custom lexers here (without installing raiseonerror filter)
+ return lexers[lang]
elif lang in lexer_classes:
lexer = lexer_classes[lang](**opts)
else: