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/d.py | |
parent | 8b85d2a63069f341498a5feeb1874c11641b8dbc (diff) | |
download | pygments-272429a2c5fc178f256a347c9d7642c6667b9a67.tar.gz |
Simplify charclasses in a few more modules
Diffstat (limited to 'pygments/lexers/d.py')
-rw-r--r-- | pygments/lexers/d.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/d.py b/pygments/lexers/d.py index f5d0230e..efd97beb 100644 --- a/pygments/lexers/d.py +++ b/pygments/lexers/d.py @@ -147,12 +147,12 @@ class DLexer(RegexLexer): (r'\]', String, '#pop'), ], 'delimited_parenthesis': [ - (r'[^\(\)]+', String), + (r'[^()]+', String), (r'\(', String, 'delimited_inside_parenthesis'), (r'\)"', String, '#pop'), ], 'delimited_inside_parenthesis': [ - (r'[^\(\)]+', String), + (r'[^()]+', String), (r'\(', String, '#push'), (r'\)', String, '#pop'), ], |