summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-05-02 10:28:31 +0200
committergbrandl <devnull@localhost>2007-05-02 10:28:31 +0200
commitf3d177b9bf49adf0432d040bce5ea637e41f6751 (patch)
tree7616a8676f0aaf8f03431ffed0d28ed111fd32cd
parentdc74c67bc559322bea64ea432da115b3d620322c (diff)
downloadpygments-f3d177b9bf49adf0432d040bce5ea637e41f6751.tar.gz
[svn] Speed up nested comment parsing in D lexer.
-rw-r--r--pygments/lexers/compiled.py2
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),