diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py index 8e1debace6..993a9359e0 100644 --- a/pygments/lexers/python.py +++ b/pygments/lexers/python.py @@ -176,7 +176,7 @@ def innerstring_rules(ttype): 'InterruptedError', 'IsADirectoryError', 'NotADirectoryError', 'PermissionError', 'ProcessLookupError', 'TimeoutError', # others new in Python 3 - 'StopAsyncIteration'), + 'StopAsyncIteration', 'ModuleNotFoundError', 'RecursionError'), prefix=r'(?