diff options
author | Georg Brandl <georg@python.org> | 2014-11-06 12:10:16 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-11-06 12:10:16 +0100 |
commit | 272429a2c5fc178f256a347c9d7642c6667b9a67 (patch) | |
tree | 470639542d3fdf82e1f1338cac5b8e0f1a617635 /pygments/lexers/python.py | |
parent | 8b85d2a63069f341498a5feeb1874c11641b8dbc (diff) | |
download | pygments-272429a2c5fc178f256a347c9d7642c6667b9a67.tar.gz |
Simplify charclasses in a few more modules
Diffstat (limited to 'pygments/lexers/python.py')
-rw-r--r-- | pygments/lexers/python.py | 2 |
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), |