summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2012-11-12 13:58:05 -0800
committerTim Hatch <tim@timhatch.com>2012-11-12 13:58:05 -0800
commit3bc72c68f04ab818f450ce057e1fb249139b8a21 (patch)
tree3a9fe4dbce8971e2c94c3c59c95946f3427b1af1
parent5a138b415f212bc91bf8d9b99ef366618e251559 (diff)
downloadpygments-3bc72c68f04ab818f450ce057e1fb249139b8a21.tar.gz
Make sure that TreetopLexer will terminate.
-rw-r--r--pygments/lexers/parsers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/parsers.py b/pygments/lexers/parsers.py
index 70e07dc5..e6f963e7 100644
--- a/pygments/lexers/parsers.py
+++ b/pygments/lexers/parsers.py
@@ -744,12 +744,12 @@ class TreetopBaseLexer(RegexLexer):
'inline_module': [
(r'{', Other, 'ruby'),
(r'}', Punctuation, '#pop'),
- (r'[^{}]*', Other),
+ (r'[^{}]+', Other),
],
'ruby': [
(r'{', Other, '#push'),
(r'}', Other, '#pop'),
- (r'[^{}]*', Other),
+ (r'[^{}]+', Other),
],
'space': [
(r'[ \t\n\r]+', Whitespace),