diff options
author | Tim Hatch <tim@timhatch.com> | 2012-11-12 13:58:05 -0800 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2012-11-12 13:58:05 -0800 |
commit | 3bc72c68f04ab818f450ce057e1fb249139b8a21 (patch) | |
tree | 3a9fe4dbce8971e2c94c3c59c95946f3427b1af1 /pygments/lexers/parsers.py | |
parent | 5a138b415f212bc91bf8d9b99ef366618e251559 (diff) | |
download | pygments-3bc72c68f04ab818f450ce057e1fb249139b8a21.tar.gz |
Make sure that TreetopLexer will terminate.
Diffstat (limited to 'pygments/lexers/parsers.py')
-rw-r--r-- | pygments/lexers/parsers.py | 4 |
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), |