summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcocoatomo <cocoatomo77@gmail.com>2017-03-29 01:45:36 +0000
committercocoatomo <cocoatomo77@gmail.com>2017-03-29 01:45:36 +0000
commitb3b591c8fd850469f6dc7afc5232176360bcc3f2 (patch)
treeb77f9cab9b40186a1d43264cb6a3976eeca5e451
parent0db8e281af377923115b894703b2b8beb8f1e9d5 (diff)
downloadpygments-b3b591c8fd850469f6dc7afc5232176360bcc3f2.tar.gz
Insert exception names added in Python version 3.5 and 3.6.
-rw-r--r--pygments/lexers/python.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py
index 390eafe8..1ac176cd 100644
--- a/pygments/lexers/python.py
+++ b/pygments/lexers/python.py
@@ -124,10 +124,10 @@ class PythonLexer(RegexLexer):
'Exception', 'FloatingPointError', 'FutureWarning', 'GeneratorExit',
'IOError', 'ImportError', 'ImportWarning', 'IndentationError',
'IndexError', 'KeyError', 'KeyboardInterrupt', 'LookupError',
- 'MemoryError', 'NameError', 'NotImplemented', 'NotImplementedError',
+ 'MemoryError', 'ModuleNotFoundError', 'NameError', 'NotImplemented', 'NotImplementedError',
'OSError', 'OverflowError', 'OverflowWarning', 'PendingDeprecationWarning',
- 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StandardError',
- 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError',
+ 'RecursionError', 'ReferenceError', 'RuntimeError', 'RuntimeWarning', 'StandardError',
+ 'StopIteration', 'StopAsyncIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError',
'SystemExit', 'TabError', 'TypeError', 'UnboundLocalError',
'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError',
'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning',