diff options
author | gbrandl <devnull@localhost> | 2007-05-02 10:28:31 +0200 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-05-02 10:28:31 +0200 |
commit | f3d177b9bf49adf0432d040bce5ea637e41f6751 (patch) | |
tree | 7616a8676f0aaf8f03431ffed0d28ed111fd32cd | |
parent | dc74c67bc559322bea64ea432da115b3d620322c (diff) | |
download | pygments-f3d177b9bf49adf0432d040bce5ea637e41f6751.tar.gz |
[svn] Speed up nested comment parsing in D lexer.
-rw-r--r-- | pygments/lexers/compiled.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index 2cfd4ff7..e3286bf6 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -283,7 +283,7 @@ class DLexer(RegexLexer): (r'[a-zA-Z_]\w*', Name), ], 'nestedcomment': [ - (r'[^+/]', Comment), + (r'[^+/]+', Comment), (r'/\+', Comment, '#push'), (r'\+/', Comment, '#pop'), (r'[+/]', Comment), |