1. Carl Meyer
  2. pygments-main

Commits

Tim Hatch  committed 3e7b004

Make sure that TreetopLexer will terminate.

  • Participants
  • Parent commits eb783bc
  • Branches default

Comments (0)

Files changed (1)

File pygments/lexers/parsers.py

View file
  • Ignore whitespace
         '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),