Commits

Rob Hoelz committed c1f98be

Don't consume final character in token-sym-brackets state

Comments (0)

Files changed (1)

pygments/lexers/agile.py

         ],
         'token-sym-brackets' : [
             (r'(?P<delimiter>(?P<first_char>[' + ''.join(PERL6_BRACKETS.keys()) + '])(?P=first_char)*)', brackets_callback(Name), ('#pop', 'pre-token')),
-            (r'.', Name, ('#pop', 'pre-token')),
+            (r'', Name, ('#pop', 'pre-token')),
         ],
         # the tokens state rules are defined after the class body, for reasons
         # explained below.