summaryrefslogtreecommitdiff
path: root/pygments/lexers/agile.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-04-05 09:04:33 +0200
committerGeorg Brandl <georg@python.org>2013-04-05 09:04:33 +0200
commite3a78c5d8d322c10d456ff29ab8d6f08a0a061e3 (patch)
treeaf39e371f14b29b3508c75f5af9c3cbdbfd4e05d /pygments/lexers/agile.py
parent325a7f391af3e449a8ee20f24403da45f3149211 (diff)
parent391833e144e961937abe20adfe6b67b1b14ea993 (diff)
downloadpygments-e3a78c5d8d322c10d456ff29ab8d6f08a0a061e3.tar.gz
Merged in gentoo90/pygments-main (pull request #167)
Minor fixes for RPMSpec and NSIS lexers
Diffstat (limited to 'pygments/lexers/agile.py')
-rw-r--r--pygments/lexers/agile.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 8bcb1d46..3c1525d0 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -234,7 +234,14 @@ class Python3Lexer(RegexLexer):
r'TypeError|UnboundLocalError|UnicodeDecodeError|'
r'UnicodeEncodeError|UnicodeError|UnicodeTranslateError|'
r'UnicodeWarning|UserWarning|ValueError|VMSError|Warning|'
- r'WindowsError|ZeroDivisionError)\b', Name.Exception),
+ r'WindowsError|ZeroDivisionError|'
+ # new builtin exceptions from PEP 3151
+ r'BlockingIOError|ChildProcessError|ConnectionError|'
+ r'BrokenPipeError|ConnectionAbortedError|ConnectionRefusedError|'
+ r'ConnectionResetError|FileExistsError|FileNotFoundError|'
+ r'InterruptedError|IsADirectoryError|NotADirectoryError|'
+ r'PermissionError|ProcessLookupError|TimeoutError)\b',
+ Name.Exception),
]
tokens['numbers'] = [
(r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),