summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-06-30 11:12:33 +0200
committerGeorg Brandl <georg@python.org>2009-06-30 11:12:33 +0200
commitc5c514bef80f17619b88d5d14eae17a77ad8dc11 (patch)
treefcdd4b8db1352ebb68cc16885ab4d3218c94f2a0
parent1004389e172c1c74d4590fb5dbb2e77217ff7d9b (diff)
downloadpygments-c5c514bef80f17619b88d5d14eae17a77ad8dc11.tar.gz
Support WindowsError and VMSError.
-rw-r--r--pygments/lexers/agile.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 932d7edd..26898e39 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -102,8 +102,8 @@ class PythonLexer(RegexLexer):
r'SyntaxError|SyntaxWarning|SystemError|SystemExit|TabError|'
r'TypeError|UnboundLocalError|UnicodeDecodeError|'
r'UnicodeEncodeError|UnicodeError|UnicodeTranslateError|'
- r'UnicodeWarning|UserWarning|ValueError|Warning|ZeroDivisionError'
- r')\b', Name.Exception),
+ r'UnicodeWarning|UserWarning|ValueError|VMSError|Warning|'
+ r'WindowsError|ZeroDivisionError)\b', Name.Exception),
],
'numbers': [
(r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),
@@ -223,8 +223,8 @@ class Python3Lexer(RegexLexer):
r'SyntaxError|SyntaxWarning|SystemError|SystemExit|TabError|'
r'TypeError|UnboundLocalError|UnicodeDecodeError|'
r'UnicodeEncodeError|UnicodeError|UnicodeTranslateError|'
- r'UnicodeWarning|UserWarning|ValueError|Warning|ZeroDivisionError'
- r')\b', Name.Exception),
+ r'UnicodeWarning|UserWarning|ValueError|VMSError|Warning|'
+ r'WindowsError|ZeroDivisionError)\b', Name.Exception),
]
tokens['numbers'] = [
(r'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?', Number.Float),