diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-21 06:47:02 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-06-21 06:47:02 +0300 |
commit | b325a1de2b0ec5c897788781026096db60e640f4 (patch) | |
tree | eb0c6c01843e504179b5d77ad5c2234a1d4be26a /sphinx/highlighting.py | |
parent | 0fb832baa54a791bbca0be620bad47b6c69b680c (diff) | |
parent | fd5b3c47b6a6a5f30506092cbe469d2772016f63 (diff) |
Merge branch '2.0'
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 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: |