summaryrefslogtreecommitdiff
path: root/pygments/lexers/python.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/python.py')
-rw-r--r--pygments/lexers/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py
index 3caf2725..259d1a9c 100644
--- a/pygments/lexers/python.py
+++ b/pygments/lexers/python.py
@@ -699,7 +699,7 @@ class DgLexer(RegexLexer):
(r"(?<!\.)(Exception|GeneratorExit|KeyboardInterrupt|StopIteration|"
r"SystemExit)(?!['\w])", Name.Exception),
- (r"(?<![\.\w])(except|finally|for|if|import|not|otherwise|raise|"
+ (r"(?<![\w.])(except|finally|for|if|import|not|otherwise|raise|"
r"subclass|while|with|yield)(?!['\w])", Keyword.Reserved),
(r"[A-Z_]+'*(?!['\w])", Name),